Order and payment statuses
Where an order may go from each status, and what its payment status and method can be.
Order statuses and allowed moves
POST /orders/{id}/status takes only a move this table allows; any other is 422 invalid_transition with from and to. GET /order-statuses answers the same table live, as [{status, next}].
| From | May move to |
|---|---|
awaiting_payment | under_review, in_progress, cancelled |
under_review | in_progress, ready, shipping, delivered, cancelled |
in_progress | ready, shipping, delivered, cancelled |
ready | shipping, delivered, cancelled |
shipping | delivered, return_in_progress |
delivered | completed, return_in_progress |
return_in_progress | returned |
completed | None: final |
cancelled | None: final |
returned | None: final |
- Forward jumps are allowed, such as
under_reviewstraight todelivered; backward moves are not. completedfollowsdelivered.- Shipping an order with
POST /orders/{id}/shipmentsmoves it toshipping. - An order from a marketplace channel cannot be cancelled through the API (409
channel_order_cancel_remote): cancel it on the marketplace. - A status change is sent to webhooks as
order.status.updated.
Payment statuses
payment_status |
|---|
pending |
paid |
refund_due |
refunded |
The webhook events for payments are order.payment.updated and order.refunded: see Webhook events.
Payment methods
payment_method | On an order |
|---|---|
cod | Paid on delivery. An order from your system may use it. |
bank_transfer | Waits in awaiting_payment until the merchant confirms the transfer. An order from your system may use it. |
manual | Already paid (payment_status paid). An order from your system may use it. |
online | An online payment. Never on an order from your system: online card payment is not available there. |
The fields of an order: Get order. Creating one: Create order.