Create order draft
Create an order draft for a given cart. During the order draft creation process, payment details are validated before generating the draft. Additionally, it triggers an event if the “ORDER_DRAFT” webhook event is subscribed.
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.
Path Parameters
ID of the cart for which order draft will be generated
Body
Sample request to create order draft
Payment details
Estimated tax object
Order number
Order sequence details
Customer details
Order type (WEB, CSC, MOBILE_APP, POS)
Order sub type (Android/IOS/International)
Response
Order draft response
Cart ID
Total amount for the order
Total amount for the order without discounts
Total tax applied on the order
Total discount applied on the order
Currency code
Time order draft was created
Order number
Order type (WEB, CSC, MOBILE_APP, POS)
Order sub type (Android/IOS/International)
Customer details
Cart metadata
Customer account ID
Total number of items in the cart
Total number of unique line items in the cart
Cart configuration
Fees associated with a specific cart or an individual line item of a cart
Total fees applied on the order
error object
Was this page helpful?