Creates a new order for a customer in the admin dashboard.
Requires the stores.orders.create permission.
paymentMethod field using one of the supported payment method codes. See the Payment Methods reference for the complete list of available options.
Your API key goes here
The ID of the store the order will be created in.
The form containing the order details.
Form to create an order on the dashboard
The list of products that the user wishes to purchase, including only the ID and quantity. The actual product details will be resolved later.
1 - 10 elementsThe specific payment method ID to use for this order
1 - 256The email address of the customer placing the order
256Whether to send a receipt email to the customer after the order is completed. Defaults to true.
The coupon code that the customer is applying to the order
32The URL to redirect the customer to after payment completion. If not provided, the store's default return URL will be used.
2048Custom key-value metadata to attach to the order for your own tracking purposes. Maximum of 20 keys, each key max 40 characters, each value max 500 characters.
The IP address of the customer placing the order
45The browser user agent of the customer placing the order, you can get this from the request headers or using JavaScript
512The 2-digit country code (ISO 3166-1 alpha-2) of the customer placing the order
2The object was successfully created.
Represents a default generic response for API endpoints.
Indicates whether the operation or response was successful.
A descriptive message providing additional context or information about the response.
The error code (if there was an error) to use when referencing the error
An order made by a customer to a merchant for a product they are selling