Order Object
Description
Represents a customer order with items, billing, shipping, and payment information.
Declaration
type Order {
_id: ID!
id: String!
configRef: ID
created: Date
origin: String!
status: String!
totals: CheckoutTotals!
buyer: User
billing: CheckoutBilling!
shipping: CheckoutShipping!
items: [CheckoutLineItem!]!
messages: [Message!]
paymentUrl: String
}
Fields
| Name | Type | Description |
|---|---|---|
_id | ID! | Internal database identifier. |
id | String! | Order identifier string. |
configRef | ID | Configuration reference for the shop. |
created | Date | Date when the order was created. |
origin | String! | Origin of the order (e.g., "Online"). |
status | String! | Current status of the order. |
totals | CheckoutTotals! | Order totals including subtotals, taxes, and shipping. |
buyer | User | Buyer information. |
billing | CheckoutBilling! | Billing information and payment details. |
shipping | CheckoutShipping! | Shipping information and method. |
items | [CheckoutLineItem!]! | Items included in the order. |
messages | [Message!] | Messages in the order conversation thread. |
paymentUrl | String | URL for payment processing if payment is pending. |