create_draft_order
Create a draft order in Shopify with line items, customer details, and shipping addresses to manage pre-orders or quotes.
Instructions
Create a new draft order. Provide line items (variant-based or custom), an optional customer, and shipping/billing addresses.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"line_items": "<line_items>"
},
"name": "create_draft_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line_items | Yes | Line items for the draft order. | |
| customer_id | No | Associate with an existing customer ID. | |
| No | Customer email for the draft order. | ||
| note | No | Note for the draft order. | |
| tags | No | Comma-separated tags. | |
| shipping_address | No | Shipping address. | |
| use_customer_default_address | No | Use the customer's default address. | |
| tax_exempt | No | Whether the draft order is tax-exempt. |