Marketplace API / Types
Order
ObjectA purchase, in progress or completed.
type Order implements NodeFields
| Field | Type | Description |
|---|---|---|
appliedCredits | Money! | Store credits that the buyer spent on the order. Zero when the buyer spent none. |
createdAt | DateTime! | When this order was created. |
discounts | [OrderDiscount!]! | Discounts that reduced what the buyer paid, oldest first. Empty when none applied. |
id | ID! | A globally unique ID. Treat this value as an opaque string. |
items | OrderItemConnection! | The items of the order, oldest first, as recorded at purchase. Paging is limited to the first 1,000 items.Arguments: after: String — Returns the items after this cursor.first: Int — The number of items to return, 1 to 100. The default is 20. |
livemode | Boolean! | False when no real money moved: this storefront was in test mode when the order was placed. |
offPlatformPaymentInstructions | OffPlatformPaymentDetails | How the buyer settles an unpaid off-platform order directly with the seller. Null whenever nothing is owed through this channel: orders paid on-platform, off-platform orders that have moved past confirmation (paid, shipped, cancelled, refunded), and sellers with no configured payout handle. Treat null as "show no payment instructions" rather than as an error. |
paymentCard | OrderPaymentCard | The card that paid for the order. Null when the buyer did not pay by card, when the order has no record of the card, and for a caller who is not the buyer. |
paymentMethod | OrderPaymentMethod! | How the buyer paid. |
receiptId | String! | Human-readable receipt number shown to the buyer. |
refunds | [OrderRefund!]! | Refunds of the order, oldest first. Empty when the order has no refund. status is REFUNDED only after a full refund of a paid order: a cancelled order keeps CANCELLED. |
seller | User | The seller of the order. Null when the seller has no public profile. |
shippingAddress | PostalAddress | Where the order ships. Null when the order has no shipment, for example a digital order, when no complete address is stored, and for a caller who is not the buyer. |
shippingFee | Money! | Shipping fee that the buyer paid at checkout, before discounts. |
status | OrderStatus | Where the order is between payment and delivery. Null for an earlier order whose status is none of the OrderStatus values. |
subtotal | Money! | Price of the items at checkout, before shipping, tax and discounts. |
tax | Money! | Sales tax charged at checkout. |
totalCharged | Money! | The amount charged to the buyer's payment method at checkout: subtotal, shippingFee and tax, less discounts and appliedCredits. A refund does not change it. |