Orders
Endpoints
GET /api/v1/orders
GET /api/v1/ordersAuthorizations
X-API-KeystringRequired
Scoped API key. Scopes: read, commerce, admin.
Query parameters
limitinteger · min: 1 · max: 100OptionalDefault:
Max items to return (1–100, default 20)
20offsetintegerOptionalDefault:
Number of items to skip (default 0)
0sortstringOptional
Field to sort by
sortDirstring · enumOptionalDefault:
Sort direction
ascPossible values: statusstringOptional
Filter by status
Responses
200
Paginated list of orders
401
API key missing or invalid
application/json
get/orders
No content
POST /api/v1/orders
POST /api/v1/ordersAuthorizations
X-API-KeystringRequired
Scoped API key. Scopes: read, commerce, admin.
Header parameters
Idempotency-KeystringOptional
Idempotency key to safely retry without creating duplicates
Body
cartIdstringOptional
When set, the order is built from this cart and its offer discount is enforced against the tenant's discount_cap policy
contactIdstringOptional
organizationIdstringOptional
itemsarrayOptional
totalCentsintegerOptional
currencystringOptional
Responses
201
Order created
No content
400
Validation error
application/json
403
Policy violation (e.g. discount exceeds the tenant cap)
application/json
404
Cart not found
application/json
post/orders
No content
GET /api/v1/orders/{id}
GET /api/v1/orders/{id}PATCH /api/v1/orders/{id}
PATCH /api/v1/orders/{id}Authorizations
X-API-KeystringRequired
Scoped API key. Scopes: read, commerce, admin.
Path parameters
idstringRequired
Body
statusstringOptional
itemsarrayOptional
totalCentsintegerOptional
Responses
200
Order updated
No content
patch/orders/{id}
200
Order updated
No content
Last updated
Was this helpful?
