create_draft_order
Create a Shopify draft order by specifying line items, customer email or phone, notes, and tags. Simplify order management by building draft orders programmatically through the GraphQL Admin API.
Instructions
Create a new draft order
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": {
"lineItems": "<lineItems>"
},
"name": "create_draft_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Draft order note | |
| tags | No | Draft order tags | |
| No | Customer email | ||
| phone | No | Customer phone | |
| lineItems | Yes | Line items for the draft order |