Create Order
Creates a new order for a customer in the admin dashboard.
Requires the stores.orders.create permission.
Payment Methods
When creating an order, specify thepaymentMethod field using one of the supported payment method codes. See the Payment Methods reference for the complete list of available options.
Redirecting to Checkout
After successfully creating an order, redirect the customer to the hosted checkout page to complete payment:Example
Authorizations
Your API key goes here
Path Parameters
The ID of the store the order will be created in.
Body
The form containing the order details.
Form to create an order on the dashboard. Supply either Komerza.Common.Forms.Orders.CreateDashboardOrderForm.Cost for a product-less invoice, or Komerza.Common.Forms.Orders.LineItemsForm.Items for a standard product order.
Hides the base Komerza.Common.Forms.Orders.LineItemsForm.Items to remove the [Required] / [Length] constraints, since items are optional when Komerza.Common.Forms.Orders.CreateDashboardOrderForm.Cost is provided.
The 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.
An arbitrary total to charge the customer, without referencing any products.
When set, Items is ignored and the order is created with no line items.
0.01 <= x <= 1000000The coupon code that the customer is applying to the order
32The affiliate code (store affiliate link) to apply to this order.
256The 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
2Response
The 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