AdminPostDraftOrdersReq
constructor
Properties
billing_address
string | AddressPayloadThe Address to be used for billing purposes.
customer_id
stringThe ID of the customer this draft order is associated with.
discounts
Discount[]The discounts to add to the draft order
discounts
Discount[]email
stringRequiredThe email of the customer of the draft order
items
Item[]The draft order's line items.
items
Item[]metadata
Record<string, unknown>The optional key-value map with additional details about the Draft Order.
Default: {}
no_notification_order
booleanAn optional flag passed to the resulting order that indicates whether the customer should receive notifications about order updates.
region_id
stringRequiredThe ID of the region for the draft order
shipping_address
string | AddressPayloadThe Address to be used for shipping purposes.
The shipping methods for the draft order
status
stringThe status of the draft order. The draft order's default status is
open
. It's changed to completed
when its payment is marked as paid.Was this section helpful?