create-draft-order
Build draft orders for phone, chat, invoice, or wholesale sales, including custom line items, discounts, and customer association.
Instructions
Create a draft order for phone/chat sales, invoicing, or wholesale. Supports custom line items, discounts, and customer association.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Note for the draft order | |
| tags | No | Tags for the draft order | |
| No | Customer email | ||
| phone | No | Customer phone | |
| poNumber | No | Purchase order number | |
| lineItems | Yes | Line items (max 499). Use variantId for existing products or title+price for custom items. | |
| taxExempt | No | Whether the draft order is tax exempt | |
| customerId | No | Customer GID to associate with the draft order, e.g. gid://shopify/Customer/123 | |
| billingAddress | No | ||
| appliedDiscount | No | Order-level discount | |
| shippingAddress | No | ||
| useCustomerDefaultAddress | No | Use customer's default address |