Create Order
Orders
Create Order
Create a new order
POST
Create Order
Create Order
Creates a new order programmatically. This is useful for importing orders from external systems or creating orders on behalf of customers.Request
Body Parameters
Customer email address
Customer phone number
Existing customer ID (if not provided, a customer may be created)
Array of line items for the order
Shipping address for the order
Billing address (defaults to shipping address if not provided)
Payment status:
pending, paid, partially_paidArray of discount codes to apply
Shipping method details
Order notes
Array of tags for the order
Whether to send order confirmation email
Whether to send shipping notification emails
Inventory handling:
bypass, decrement_ignoring_policy, decrement_obeying_policyResponse
Whether the request succeeded
The created order object (same structure as Get Order response)
Example Response
Error Codes
| Code | Description |
|---|---|
UNAUTHORIZED | Invalid or missing access token |
FORBIDDEN | App doesn’t have write_orders scope |
VALIDATION_ERROR | Invalid request body |
INSUFFICIENT_INVENTORY | Not enough inventory for one or more items |
INVALID_DISCOUNT | Discount code is invalid or expired |