Headers
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.
"{\"date\": \"2023-01-01T00:00:00.000Z\", \"channel\": 12, \"account\": \"1234abcd5678efgh9ijklmno\",\"stage\":\"production\"}"
Path Parameters
Order draft ID
"d7e78a21-bee3-4448-bf1c-d5b5461dbda2"
Response
OK
Order draft response
Cart ID
"b8a64b52-dab4-8137-8d6a-f2c2337abc1"
Total amount for the order
60
Total amount for the order without discounts
60
Total tax applied on the order
60
Total discount applied on the order
60
Currency code
"USD"
Time order draft was created
"2022-02-18T15:12:40.974580"
Order number
123123123
Order type (WEB, CSC, MOBILE_APP, POS)
"WEB"
Order sub type (Android/IOS/International)
"Android"
Customer details
Cart metadata
{ "approver": "620d8896058edb0009385311" }
Customer account ID
"5f689caa4216e7000750d1ef"
Total number of items in the cart
3
Total number of unique line items in the cart
2
Cart configuration
Fees associated with a specific cart or an individual line item of a cart
Total fees applied on the order
60
Exception details error object