shopify_create_draft_order
Create a draft order in Shopify by specifying line items with quantity and variant ID or custom title and price. Optionally include customer email, ID, note, tags, or addresses.
Instructions
Create a draft order. Required: lineItems (non-empty). Each line item needs quantity, plus either variantId (existing variant) or title+originalUnitPrice (custom item). Optional: email, customerId, note, tags, shippingAddress, billingAddress, useCustomerDefaultAddress.
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": "shopify_create_draft_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lineItems | Yes | ||
| No | |||
| customerId | No | ||
| note | No | ||
| tags | No | ||
| shippingAddress | No | ||
| billingAddress | No | ||
| useCustomerDefaultAddress | No |