Retrieve a draft order by its ID. You can expand the draft order's relations or select the fields that should be returned using the query parameters.
Request Request Example
JavaScript
Shell
Java
Swift
curl--location-g--request GET '{{BASE_URL}}/admin/draft-orders/'
Response Response Example
200 - Example 1
Request
Authorization
or
or
or
Path Params
id
stringÂ
required
The draft order's ID.
Query Params
fields
stringÂ
fields
optional
Comma-separated fields that should be included in the returned data. if a field is prefixed with + it will be added to the default fields, using - will remove it from the default fields. without prefix it will replace the entire default fields.
Responses
🟢200OK
application/json
OK
Body
The draft order's details.
draft_order
object (AdminDraftOrder)Â
required
The draft order's details.
sales_channel
object (AdminSalesChannel)Â
optional
The sales channel's details.
customer
object (AdminCustomer)Â
optional
The customer's details.
shipping_address
object (AdminOrderAddress)Â
optional
An order address.
billing_address
object (AdminOrderAddress)Â
optional
An order address.
summary
object (BaseOrderSummary)Â
required
The order's summary details.
region
object (AdminRegion)Â
optional
The region's details.
payment_collections
array[object (AdminPaymentCollection) {14}]Â
required
The draft order's payment collections.
fulfillments
array[object (AdminOrderFulfillment) {13}]Â
optional
The draft order's fulfillments.
items
array[object (AdminOrderLineItem) {44}]Â
required
The draft order's items.
shipping_methods
array[object (AdminOrderShippingMethod) {22}]Â
required
The draft order's shipping methods.
status
stringÂ
status
required
The draft order's status.
currency_code
stringÂ
currency_code
required
The draft order's currency code.
Example:
usd
id
stringÂ
id
required
The draft order's ID.
version
numberÂ
version
required
The draft order's version.
region_id
stringÂ
region_id
required
The ID of the region associated with the draft order.
customer_id
stringÂ
customer_id
required
The ID of the customer that the draft order belongs to.
sales_channel_id
stringÂ
sales_channel_id
required
The ID of the sales channel that the draft order is placed in.
email
string <email>
email
required
The customer email associated with the draft order.
display_id
numberÂ
display_id
optional
The draft order's display ID.
transactions
array[object (BaseOrderTransaction) {9}]Â
optional
The draft order's transactions.
metadata
objectÂ
optional
The draft order's metadata, can hold custom key-value pairs.
created_at
string <date-time>
created_at
required
The date the draft order was created.
updated_at
string <date-time>
updated_at
required
The date the draft order was updated.
original_item_total
numberÂ
original_item_total
required
The total of the draft order's items including taxes, excluding promotions.
original_item_subtotal
numberÂ
original_item_subtotal
required
The total of the draft order's items excluding taxes, including promotions.
original_item_tax_total
numberÂ
original_item_tax_total
required
The tax total of the draft order's items excluding promotions.
item_total
numberÂ
item_total
required
The total of the draft order's items including taxes and promotions.
item_subtotal
numberÂ
item_subtotal
required
The total of the draft order's items excluding taxes, including promotions.
item_tax_total
numberÂ
item_tax_total
required
The tax total of the draft order's items including promotions.
original_total
numberÂ
original_total
required
The draft order's total excluding promotions, including taxes.
original_subtotal
numberÂ
original_subtotal
required
The draft order's total excluding taxes, including promotions.
original_tax_total
numberÂ
original_tax_total
required
The draft order's tax total, excluding promotions.
total
numberÂ
total
required
The draft order's total including taxes and promotions.
subtotal
numberÂ
subtotal
required
The draft order's total excluding taxes, including promotions.
tax_total
numberÂ
tax_total
required
The draft order's tax total including promotions.
discount_total
numberÂ
discount_total
required
The draft order's discount or promotions total.
discount_tax_total
numberÂ
discount_tax_total
required
The tax total of draft order's discount or promotion.
gift_card_total
numberÂ
gift_card_total
required
The draft order's gift card total.
gift_card_tax_total
numberÂ
gift_card_tax_total
required
The tax total of the draft order's gift card.
shipping_total
numberÂ
shipping_total
required
The draft order's shipping total including taxes and promotions.
shipping_subtotal
numberÂ
shipping_subtotal
required
The draft order's shipping total excluding taxes, including promotions.
shipping_tax_total
numberÂ
shipping_tax_total
required
The tax total of the draft order's shipping.
original_shipping_total
numberÂ
original_shipping_total
required
The draft order's shipping total including taxes, excluding promotions.
original_shipping_subtotal
numberÂ
original_shipping_subtotal
required
The draft order's shipping total excluding taxes, including promotions.
original_shipping_tax_total
numberÂ
original_shipping_tax_total
required
The tax total of the draft order's shipping excluding promotions.