GET
/
v2
/
order-drafts
/
{id}

Headers

x-site-context
string
required

The x-site-context header is a JSON object that contains information about the source you wish to pull from. The mandatory account is the 24 character identifier found in Copilot. The channel (Sales channel ID), stage (environment name), and date attributes can be used to further narrow the scope of your data source.

Path Parameters

id
string
required

Order draft ID

Response

200 - application/json

Order draft response

cartId
string
required

Cart ID

createdAt
string
required

Time order draft was created

currency
string
required

Currency code

items
object[]
required
orderDiscount
number
required

Total discount applied on the order

orderStatus
object
required
orderSubTotal
number
required

Total amount for the order without discounts

orderTotal
number
required

Total amount for the order

shipInfo
object[]
required
taxTotal
number
required

Total tax applied on the order

accountId
string | null

Customer account ID

attributes
object | null

Cart metadata

configuration
object

Cart configuration

customer
object

Customer details

error
object

error object

fees
object[] | null

Fees associated with a specific cart or an individual line item of a cart

orderNumber
string | null

Order number

orderSubType
string | null

Order sub type (Android/IOS/International)

orderTotalFees
number | null

Total fees applied on the order

orderType
string | null

Order type (WEB, CSC, MOBILE_APP, POS)

payments
object[] | null
totalItems
integer | null

Total number of items in the cart

totalUniqueItems
integer | null

Total number of unique line items in the cart