Sifr Wahid Developers

Concepts

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}].

FromMay move to
awaiting_paymentunder_review, in_progress, cancelled
under_reviewin_progress, ready, shipping, delivered, cancelled
in_progressready, shipping, delivered, cancelled
readyshipping, delivered, cancelled
shippingdelivered, return_in_progress
deliveredcompleted, return_in_progress
return_in_progressreturned
completedNone: final
cancelledNone: final
returnedNone: final
  • Forward jumps are allowed, such as under_review straight to delivered; backward moves are not.
  • completed follows delivered.
  • Shipping an order with POST /orders/{id}/shipments moves it to shipping.
  • 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_methodOn an order
codPaid on delivery. An order from your system may use it.
bank_transferWaits in awaiting_payment until the merchant confirms the transfer. An order from your system may use it.
manualAlready paid (payment_status paid). An order from your system may use it.
onlineAn 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.