Create draft order
create_draft_orderCreate draft orders for phone, email, or B2B sales using variant IDs or SKUs and optional custom pricing; convert to real orders later.
Instructions
Creates a draft order on behalf of a customer (phone or e-mail orders, B2B). Items by variant_id or SKU (of published products), optionally with a custom unit price. Shipping options are listed by get_store_info. Turn the draft into a real order with convert_draft_order.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | Customer e-mail (required unless customer_id is given) | ||
| items | Yes | ||
| region_id | No | Defaults to the only region | |
| customer_id | No | ||
| promo_codes | No | ||
| billing_address | No | Postal address | |
| notify_customer | No | ||
| shipping_amount | No | Custom shipping price; defaults to the option's price | |
| shipping_address | No | Postal address | |
| shipping_option_id | No |