Skip to main content

Create Order

POST/orders
Creates a new order for a customer. If the order total is greater than zero, a checkout link is returned for payment. If the order is free, it is completed immediately.

Authentication

Headers

Request Body

Example Request — Existing Customer

Example Request — New Customer

Success Response — Paid Order

HTTP 201 Created
Redirect the customer to checkout_url to complete payment.

Success Response — Free Order

HTTP 201 Created
Free orders are completed immediately with no checkout step.

Idempotency

Duplicate requests within 5 minutes return the existing checkout or order instead of creating a new one. The response includes "duplicate": true:

Error Responses

Common Error Messages