CustomerOrderList
Interface
One page of the signed-in buyer's order history on this site, newest first, returned by CustomersService.orders.
Property | Type | Optional | Description |
|---|---|---|---|
|
| No | The buyer's orders on this page, newest first. Empty when the buyer has no order or the page is past the last one. |
|
| No | Position of this page in the full history. |
CustomerOrderListMeta
Interface
Pagination metadata of a CustomerOrderList. Orders are listed newest first. All values are integers; page numbering starts at 1.
Property | Type | Optional | Description |
|---|---|---|---|
|
| No | 1-based index of the page returned: the |
|
| No | 1-based index of the first page. Always 1. |
|
| No | 1-based index of the last page. Equals 1 when the buyer has no order. |
|
| No | Maximum number of orders on one page: the |
|
| No | Total number of the buyer's orders on this site, across all pages. Always 0 or more. |
CustomerOrderListParams
Interface
Pagination accepted by CustomersService.orders. Both keys are optional.
Property | Type | Optional | Description |
|---|---|---|---|
|
| Yes | Number of orders per page, an integer from 1 to 100. Defaults to 20. A<br>value outside that range is refused with HTTP 422. |
|
| Yes | 1-based page number, an integer of 1 or more. Defaults to 1. A page past<br>the last one returns an empty |
EmbeddedOrderPayment
Interface
In-page payment details for the full order total, returned for card placement with
paymentFlow: 'embedded'. Load the payment provider's browser library with
providerPublishableKey for the account providerAccountId, then mount its payment form
with clientSecret. After paying, the buyer lands on your /checkout/payment/return page;
confirm there with CheckoutService.refreshPayment.
Property | Type | Optional | Description |
|---|---|---|---|
|
| No | Full immutable order total in minor currency units; the server derives this value. |
|
| No | Signed, expiring guest capability bound to this payment and site. Pass it to<br>CheckoutService.refreshPayment on return. Keep it on your server, out of URLs<br>and logs. |
|
| No | Secret that mounts the payment form for this checkout only. Hand it to the buyer's<br>browser, and keep it out of URLs and logs. |
|
| No | ISO 4217 currency of the order and checkout (e.g. |
|
| No |
|
|
| No | Opaque payment reference ( |
|
| No | The merchant's payment account the form is loaded for. |
|
| No | The payment provider's publishable key, public by design, to load its browser library with. |
EmbeddedPlaceOrderInput
Interface
What CheckoutService.placeOrder takes for a card order paid with a payment form in
your own page: a PlaceOrderInput with paymentFlow: 'embedded'.
Extends: Omit<PlaceOrderInput, "paymentFlow">
Property | Type | Optional | Description |
|---|---|---|---|
|
| No | The buyer's acceptance of the terms of sale, ticked by the buyer. Without it: HTTP 422<br> |
|
| Yes | Optional delivery or collection address snapshot. |
|
| Yes | Guest cart token to send instead of the token held by CartService.<br>Omit it for the usual |
|
| Yes | Optional contact snapshot captured on the order. |
|
| Yes | Confirmation email. A guest checkout without it is refused with HTTP 422, |
|
| Yes | The total in cents the buyer was shown, usually Cart.totalCents. When the<br>recomputed total differs, checkout is refused with HTTP 422 |
|
| Yes |
|
|
| No | Returns an EmbeddedOrderPayment, to show the payment form in your own page.<br>Without in-page payment configured, refused with HTTP 422 |
|
| Yes | Settlement method selected by the buyer. |
|
| Yes | The |
EmbeddedPlaceOrderResult
Interface
Order confirmation of a card order placed with paymentFlow: 'embedded'.
Extends: Order
Property | Type | Optional | Description |
|---|---|---|---|
|
| Yes | Buyer-provided address snapshot: an empty object when no address was supplied. |
|
| No | ISO 4217 currency code for every amount on this order (e.g. |
|
| Yes | Confirmation email, or |
|
| No | How the order is handed over, as recorded at placement: |
|
| No | Preparation or handover state recorded by the merchant. |
|
| No | Order's opaque wire id (prefixed |
|
| No | Immutable line snapshots copied from the completed cart. Always non-empty. |
|
| No | The order's language tag, frozen at placement: the cart's language, else the checkout<br> |
|
| No | Per-site sequential order number intended for merchant and buyer display. |
|
| Yes | Present when card checkout was created; all existing order fields remain available. |
|
| Yes | Card or offline settlement method selected by the buyer, or |
|
| No | Payment collection state after online capture or merchant confirmation. |
|
| Yes | The frozen shipping charge, or |
|
| No | The shipping charged in cents, fixed at placement and included in Order.totalCents.<br>0 for a pickup order, no shipping offered, or a free option. |
|
| No | Overall lifecycle state derived from payment and fulfillment progress. |
|
| No | Sum of line subtotals in minor currency units (cents), fixed at placement. |
|
| No | The VAT contained in Order.totalCents, in minor currency units (cents), fixed at<br>placement: the sum of the lines' and the shipping line's |
|
| No | Final order total in minor currency units (cents), fixed at placement. |
|
| No | Whether VAT was computed on the order, fixed at placement. |
Order
Interface
Buyer-facing order. CheckoutService.placeOrder returns it as the order
confirmation; CustomersService.orders and CustomersService.order
return it from the signed-in buyer's order history, and
OrdersService.getGuest from a guest order link. A read can return an
order whose status is 'cancelled'.
Property | Type | Optional | Description |
|---|---|---|---|
|
| Yes | Buyer-provided address snapshot: an empty object when no address was supplied. |
|
| No | ISO 4217 currency code for every amount on this order (e.g. |
|
| Yes | Confirmation email, or |
|
| No | How the order is handed over, as recorded at placement: |
|
| No | Preparation or handover state recorded by the merchant. |
|
| No | Order's opaque wire id (prefixed |
|
| No | Immutable line snapshots copied from the completed cart. Always non-empty. |
|
| No | The order's language tag, frozen at placement: the cart's language, else the checkout<br> |
|
| No | Per-site sequential order number intended for merchant and buyer display. |
|
| Yes | Card or offline settlement method selected by the buyer, or |
|
| No | Payment collection state after online capture or merchant confirmation. |
|
| Yes | The frozen shipping charge, or |
|
| No | The shipping charged in cents, fixed at placement and included in Order.totalCents.<br>0 for a pickup order, no shipping offered, or a free option. |
|
| No | Overall lifecycle state derived from payment and fulfillment progress. |
|
| No | Sum of line subtotals in minor currency units (cents), fixed at placement. |
|
| No | The VAT contained in Order.totalCents, in minor currency units (cents), fixed at<br>placement: the sum of the lines' and the shipping line's |
|
| No | Final order total in minor currency units (cents), fixed at placement. |
|
| No | Whether VAT was computed on the order, fixed at placement. |
OrderAddress
Interface
Delivery or collection address copied onto an order as a buyer-provided snapshot.
Property | Type | Optional | Description |
|---|---|---|---|
|
| Yes | Primary street-address line. Max 500 characters. |
|
| Yes | Additional street-address line. Max 500 characters. |
|
| Yes | Optional buyer label for the address (e.g. |
|
| Yes | Locality or city. Max 255 characters. |
|
| Yes | Company or organization name. Max 255 characters. |
|
| Yes | ISO 3166-1 alpha-2 country code (e.g. |
|
| Yes | Recipient's given name. Max 255 characters. |
|
| Yes | Recipient's family name. Max 255 characters. |
|
| Yes | Recipient phone number exactly as supplied by the buyer. Max 50 characters. |
|
| Yes | Postal or ZIP code. Max 50 characters. |
|
| Yes | State, province, or region. Max 255 characters. |
OrderFulfillmentMode
TypeAlias
How an order is handed over to the buyer, sent as PlaceOrderInput.fulfillmentMode.
'delivery' ships the order to the buyer's address; 'pickup' means the buyer
collects it from the merchant.
type OrderFulfillmentMode = "delivery" | "pickup"OrderFulfillmentStatus
TypeAlias
Whether the merchant has prepared or handed over the order.
type OrderFulfillmentStatus = "unfulfilled" | "fulfilled"OrderItem
Interface
One order line, frozen at placement: later catalogue edits never change it. Names
come twice, in the site's default language (title) and in the buyer's language
(buyerTitle, null when identical), so display buyerTitle ?? title.
Property | Type | Optional | Description |
|---|---|---|---|
|
| No | Product title in the buyer's language (Order.locale), captured at<br>placement. |
|
| No | Variant option pairs in the buyer's language, in the order of<br> |
|
| No | Variant title in the buyer's language, captured at placement. |
|
| No | Ordered variant option pairs in the site's default language, captured at placement. Empty when the variant has none. |
|
| No | Number of units ordered. Integer from 1 to 999. |
|
| No | The amount charged for the line in minor currency units (cents), VAT included when VAT was<br>charged. Read it rather than multiplying |
|
| No | The VAT contained in OrderItem.subtotalCents, in minor currency units (cents),<br>frozen at placement. Integer, 0 or more; 0 when no VAT was computed. |
|
| No | The VAT rate applied to the line, in basis points ( |
|
| Yes | Absolute preview-image URL captured at placement, or |
|
| No | Product title in the site's default language, captured when the order was placed. Always non-empty. |
|
| No | Price of one unit in minor currency units (cents) as charged at placement, VAT included<br>when VAT was charged. When VAT was added to prices the merchant entered without it, this<br>can differ slightly from |
|
| No | Purchased variant's opaque wire id (prefixed |
|
| Yes | Merchant stock-keeping unit captured at placement, or |
|
| Yes | Variant title in the site's default language, captured at placement, or |
OrderItemOptionValue
Interface
One option/value pair captured from the purchased variant.
Property | Type | Optional | Description |
|---|---|---|---|
|
| No | Option name as the merchant labelled it when the order was placed (e.g. |
|
| No | Selected option value captured at placement time (e.g. |
OrderPayment
Interface
Hosted-checkout details for the full order total, returned only for card placement.
Property | Type | Optional | Description |
|---|---|---|---|
|
| No | Full immutable order total in minor currency units; the server derives this value. |
|
| No | Signed, expiring guest capability bound to this payment and site. Pass it to<br>CheckoutService.refreshPayment on return. Keep it private and out of URLs<br>and logs; it can be reused until the checkout-bound expiry. |
|
| No | Absolute hosted-checkout URL to send the buyer to. Treat the URL as opaque. |
|
| No | ISO 4217 currency of the order and checkout (e.g. |
|
| Yes |
|
|
| No | Opaque payment reference ( |
OrderPaymentRefreshResult
Interface
Status-only response returned by CheckoutService.refreshPayment; never cached.
Property | Type | Optional | Description |
|---|---|---|---|
|
| No | Current order lifecycle after reconciliation; |
|
| No | Durable payment state, or a non-mutating reconciliation outcome such as |
OrderPaymentStatus
TypeAlias
Whether the order payment was collected online or recorded by the merchant.
type OrderPaymentStatus = "pending" | "paid"OrderShippingLine
Interface
The shipping charge frozen onto an order when it was placed, read from Order.shippingLine. Like the order's lines, it never follows a later change to the shipping option it came from: a renamed, re-priced or deleted option leaves it as it was.
Property | Type | Optional | Description |
|---|---|---|---|
|
| No | The shipping charged, in cents of Order.currency, VAT included when charged.<br>Equals Order.shippingTotalCents; 0 for a free option. |
|
| No | The shipping option's label as the buyer saw it, frozen in the order's<br>language (Order.locale): its translation in that language when one<br>exists, else the label the merchant set. Always non-empty. |
|
| No | The VAT contained in OrderShippingLine.amountCents, in minor currency<br>units (cents), frozen at placement. Integer, 0 or more; 0 when no VAT was computed. |
|
| No | The VAT rate applied to shipping, in basis points ( |
OrderStatus
TypeAlias
The order's overall lifecycle state.
type OrderStatus = "pending" | "confirmed" | "completed" | "cancelled"PaymentFlow
TypeAlias
How a card order is paid: on a hosted payment page ('hosted') or with a payment form in
your own page ('embedded'). Sent as PlaceOrderInput.paymentFlow or
EmbeddedPlaceOrderInput.paymentFlow.
type PaymentFlow = "hosted" | "embedded"PlaceOrderInput
Interface
What the buyer sends to CheckoutService.placeOrder. Besides the codes named on
each field, checkout refuses with HTTP 422 and apiCode CHECKOUT_TAX_DISABLED or
TAX_RATE_UNAVAILABLE when the site's VAT settings cannot price the order.
Property | Type | Optional | Description |
|---|---|---|---|
|
| No | The buyer's acceptance of the terms of sale, ticked by the buyer. Without it: HTTP 422<br> |
|
| Yes | Optional delivery or collection address snapshot. |
|
| Yes | Guest cart token to send instead of the token held by CartService.<br>Omit it for the usual |
|
| Yes | Optional contact snapshot captured on the order. |
|
| Yes | Confirmation email. A guest checkout without it is refused with HTTP 422, |
|
| Yes | The total in cents the buyer was shown, usually Cart.totalCents. When the<br>recomputed total differs, checkout is refused with HTTP 422 |
|
| Yes |
|
|
| Yes | How a card order is paid, ignored for other methods. |
|
| Yes | Settlement method selected by the buyer. |
|
| Yes | The |
PlaceOrderResult
Interface
Order confirmation with optional hosted-checkout details; offline results omit payment.
Extends: Order
Property | Type | Optional | Description |
|---|---|---|---|
|
| Yes | Buyer-provided address snapshot: an empty object when no address was supplied. |
|
| No | ISO 4217 currency code for every amount on this order (e.g. |
|
| Yes | Confirmation email, or |
|
| No | How the order is handed over, as recorded at placement: |
|
| No | Preparation or handover state recorded by the merchant. |
|
| No | Order's opaque wire id (prefixed |
|
| No | Immutable line snapshots copied from the completed cart. Always non-empty. |
|
| No | The order's language tag, frozen at placement: the cart's language, else the checkout<br> |
|
| No | Per-site sequential order number intended for merchant and buyer display. |
|
| Yes | Present when card checkout was created; all existing order fields remain available. |
|
| Yes | Card or offline settlement method selected by the buyer, or |
|
| No | Payment collection state after online capture or merchant confirmation. |
|
| Yes | The frozen shipping charge, or |
|
| No | The shipping charged in cents, fixed at placement and included in Order.totalCents.<br>0 for a pickup order, no shipping offered, or a free option. |
|
| No | Overall lifecycle state derived from payment and fulfillment progress. |
|
| No | Sum of line subtotals in minor currency units (cents), fixed at placement. |
|
| No | The VAT contained in Order.totalCents, in minor currency units (cents), fixed at<br>placement: the sum of the lines' and the shipping line's |
|
| No | Final order total in minor currency units (cents), fixed at placement. |
|
| No | Whether VAT was computed on the order, fixed at placement. |