DraftOrder
ObjectAn administrator-created order that can be edited before it is placed.
Fields
- [DraftOrderShippingOption!]!
availableShippingMethods Configured shipping methods whose zones, predicates, currency, and rates are eligible for this draft order. Returns an empty list until the draft has a shipping address.
- Address
billingAddress The billing address associated with this draft order.
- DateTime!
createdAt The date and time when the resource was created.
- String!
currency The currency associated with this draft order.
- String
customerEmail The customer email associated with this draft order.
- ID
customerId The customer id associated with this draft order.
- [String!]!
discountCodes The discount codes associated with this draft order.
- ID!
id The unique identifier of the resource.
- [DraftOrderLineItem!]!
lineItems The line items associated with this draft order.
- DraftOrderManualDiscount
manualDiscount The manual discount associated with this draft order.
- [MetadataItem!]!
metadata The metadata associated with this draft order.
- [Metafield!]!
metafields The metafields associated with this draft order.
- Order
order The order associated with this draft order.
- Channel
priceChannel The price channel associated with this draft order.
- Address
shippingAddress The shipping address associated with this draft order.
- [DraftOrderShippingLine!]!
shippingLines The shipping lines associated with this draft order.
- DraftOrderStatus!
status The status associated with this draft order.
Possible enum valuesDISCARDEDThe draft was intentionally closed without creating an order.
OPENThe draft can still be reviewed and changed.
PLACEDThe draft has been converted into an order.
- Store
store The store associated with this draft order.
- Money!
subtotal The subtotal associated with this draft order.
- TaxedPrice
taxedPrice The taxed price associated with this draft order.
- Money!
total The total associated with this draft order.
- DateTime
updatedAt The date and time when the resource was last updated.
Queries
Runs the draft order operation.
Runs the draft orders operation.
Mutations
Runs the draft order create operation.
Runs the draft order custom line items add operation.
Runs the draft order custom shipping lines set operation.
Runs the draft order discard operation.
Runs the draft order discount code add operation.
Runs the draft order discount codes remove operation.
Runs the draft order line item pricing reset operation.
Runs the draft order line item pricing set operation.
Runs the draft order line items add operation.
Runs the draft order line items update operation.
Runs the draft order manual discount remove operation.
Runs the draft order manual discount set operation.
Applies an eligible configured shipping method and its current applicable rate to a draft order.
Runs the draft order update operation.