create_order
Create new Shopify orders programmatically to import external orders or handle wholesale transactions.
Instructions
Create a new order programmatically. Useful for importing orders from external systems or creating wholesale orders. Requires write_orders scope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Order note | |
| tags | No | Order tags | |
| No | Order email address | ||
| currency | No | Currency code (e.g., 'USD', 'EUR') | |
| lineItems | Yes | Line items for the order | |
| customerId | No | Existing customer ID to associate with order (e.g., 'gid://shopify/Customer/123456789') | |
| sendReceipt | No | Send order receipt email to customer | |
| discountCode | No | Discount code to apply | |
| customerEmail | No | Customer email (to create or upsert customer) | |
| billingAddress | No | Billing address (defaults to shipping if not provided) | |
| financialStatus | No | Financial status of the order | |
| shippingAddress | No | Shipping address | |
| customerLastName | No | Customer last name | |
| customerFirstName | No | Customer first name | |
| fulfillmentStatus | No | Fulfillment status | |
| sendFulfillmentReceipt | No | Send fulfillment receipt email |