Order
Represents a placed order, exposing order details, totals, items, discounts, shipping, and payment information.
Type Definition
type Order {
id: String
orderNumber: String
referenceNumber: String
createdAt: String
orderStatus: String
financialStatus: String
isFulfilled: Boolean
isShipped: Boolean
isCancelled: Boolean
customer: Customer
discounts: [CartDiscount]
tags: [String]
subtotalPrice: Float
totalPrice: Float
currency: String
totalNetPrice: Float
totalTax: Float
taxLines: [CartTaxLine]
customerNote: String
paymentMethods: [CartPaymentMethod]
paymentFee: Float
shippingMethods: [CartShippingMethod]
shippingPrice: Float
lines: [CartLineItem]
physicalLines: [CartLineItem]
lineCount: Int
shippingAddress: Address
billingAddress: Address
metafields: [Metafield]!
metafield: Metafield
}Fields
Relationships
The Order type represents a placed order containing comprehensive order information. It relates to the Customer type for customer details associated with the order. Order discounts are represented through the CartDiscount type, while tax information is provided by CartTaxLine. Payment details are accessible via the CartPaymentMethod type, and shipping information is provided through the CartShippingMethod type. Line items in the order are represented by CartLineItem objects. The order’s shipping and billing addresses are represented by the Address type. Additional custom data can be stored using Metafield objects.
Example
query {
order {
id
orderNumber
referenceNumber
createdAt
orderStatus
financialStatus
isFulfilled
isShipped
isCancelled
totalPrice
currency
subtotalPrice
totalTax
shippingPrice
lineCount
customer {
id
firstName
lastName
}
lines {
id
quantity
}
shippingAddress {
id
city
country
}
billingAddress {
id
city
country
}
}
}Implements
This type does not implement any interfaces.