> ## Documentation Index
> Fetch the complete documentation index at: https://docs.uplink.build/llms.txt
> Use this file to discover all available pages before exploring further.

# uplink:Order

> A single purchase from a merchant — items, charges, total, payment method, and fulfillment.

**`uplink:Order/v1`** — a single purchase from a merchant: online, digital, in-store pickup, or delivery. Emitted by shopping connectors (Amazon today; Walmart, Target, grocery delivery as they land) so one renderer lists, totals, and dedupes purchases across providers.

Monetary amounts are **human-formatted strings** (e.g. `"$52.15"`) and dates are **provider-formatted strings**, matching the rest of the vocabulary. Consumers doing math or sorting should parse. Identifiers are always strings — order numbers and SKUs overflow numeric types.

## Fields

| Field | Type | Required | Description |
| - | - | - | - |
| `sourceId` | string | ✓ | Provider order identifier, verbatim (`123-4567890-1234567`). Stable for the life of the order; dedupe on it. |
| `merchant` | string | | Merchant or storefront (`Amazon`, `Whole Foods Market`, `Walmart`). Free-form. |
| `orderDate` | string | | Date placed, provider-formatted (`2025-09-19` or `September 19, 2025`). |
| `status` | string | | Provider wording: `delivered`, `shipped`, `cancelled`, `returned`, `pending`. Free-form. |
| `fulfillment` | string | | `shipped`, `digital`, `pickup`, `delivery`, or a provider-specific string. |
| `isRecurring` | boolean | | Generated by a recurring arrangement (Subscribe & Save, auto-delivery, a digital subscription charge). |
| `total` | string | | Grand total charged, formatted with currency. |
| `currency` | string | | ISO 4217 code for every amount on the order (`USD`). Omitted when the provider doesn't expose it. |
| `charges` | array\<object> | | Lines that compose `total`. See below. |
| `items` | array\<object> | | Products purchased. See below. |
| `paymentMethod` | object | | Instrument charged, as shown on the order page. See below. |
| `paymentHistory` | array\<object> | | Charges and refunds settled against this order, most-recent first. See below. |
| `url` | string | | Order detail page on the provider. |

### `charges[]` items

| Field | Type | Required | Description |
| - | - | - | - |
| `description` | string | ✓ | Provider label (`Item(s) Subtotal`, `Estimated tax`, `Driver tip`). |
| `amount` | string | | Formatted with currency. Negative for discounts and refunds as the provider shows them (`-$22.99`). |

### `items[]` items

| Field | Type | Required | Description |
| - | - | - | - |
| `sourceId` | string | | Provider product identifier (ASIN, SKU, UPC), kept as a string. |
| `description` | string | ✓ | Product title as listed on the order. |
| `quantity` | number | | Units purchased. Weighed goods may be fractional. |
| `unitPrice` | string | | Price per unit, formatted with currency. |
| `imageUrl` | string | | Product image. |
| `url` | string | | Product detail page. |
| `returnBy` | string | | Last return date, provider-formatted. Omitted when not returnable. |

### `paymentMethod`

Lighter than [`uplink:PaymentMethod`](https://docs.uplink.build/vocabulary/overview) because order pages rarely say whether the instrument is the account's primary method.

| Field | Type | Required | Description |
| - | - | - | - |
| `description` | string | ✓ | Human-formatted summary (`Visa ending in 1234`, `Amazon gift card`, `Billed through Google Play`). |
| `brand` | string | | Card network or wallet brand. Free-form. |
| `lastFour` | string | | Last four digits when exposed. |

### `paymentHistory[]` items

| Field | Type | Required | Description |
| - | - | - | - |
| `date` | string | | Date the charge or refund settled, provider-formatted. |
| `amount` | string | | Settled amount, formatted with currency. |
| `status` | string | | `paid`, `refunded`, `pending`. Absent means paid. |

## Example

```json theme={null}
{
  "sourceId": "123-4567890-1234567",
  "merchant": "Amazon",
  "orderDate": "September 19, 2025",
  "status": "delivered",
  "fulfillment": "shipped",
  "isRecurring": false,
  "total": "$52.15",
  "currency": "USD",
  "charges": [
    { "description": "Item(s) Subtotal", "amount": "$48.44" },
    { "description": "Shipping & Handling", "amount": "$0.00" },
    { "description": "Estimated tax to be collected", "amount": "$3.71" }
  ],
  "items": [
    {
      "sourceId": "B0C4DLQZ6Y",
      "description": "PUREBURG R-M003 Replacement Filter",
      "quantity": 1,
      "unitPrice": "$48.44",
      "imageUrl": "https://m.media-amazon.com/images/I/61EwD3fqLmL._SS284_.jpg",
      "returnBy": "October 22, 2025"
    }
  ],
  "paymentMethod": { "description": "Visa ending in 1111", "brand": "Visa", "lastFour": "1111" },
  "url": "https://www.amazon.com/your-orders/order-details?orderID=123-4567890-1234567"
}
```

## Emitted by

* `@atomic/amazon` — `orders` on `orderHistory`

## Related

* [`uplink:Subscription`](https://docs.uplink.build/vocabulary/Subscription) — recurring memberships on the same account (Prime, Kindle Unlimited)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.