β Documentation
Order status
Quick reference for how order statuses work and which changes you can make in the Orders screen. If you try an invalid change, youβll see an error like βInvalid status transition from X to Yβ.
What each status means
- PENDING π β Order just placed; not confirmed yet.
- CONFIRMED β β Order has been confirmed.
- PROCESSING π¦ β Order is being prepared or packed.
- SHIPPED π β Order has been shipped.
- DELIVERED β β Order has been delivered. (Final state.)
- CANCELLED β β Order was cancelled. (Final state.)
You can cancel an order from PENDING, CONFIRMED, PROCESSING, or SHIPPED. Once an order is DELIVERED or CANCELLED, you canβt change it to anything else.
Normal flow π
Typical path an order follows:
PENDING β CONFIRMED β PROCESSING β SHIPPED β DELIVERED
You can also move forward in bigger steps (e.g. PENDING β SHIPPED) when it makes sense. Staying on the same status (e.g. PENDING β PENDING) is always allowed.
Allowed changes (valid transitions) β
From any status you can keep it the same. From the statuses below you can also move to the ones listed.
- PENDING β CONFIRMED, PROCESSING, SHIPPED, or CANCELLED
- CONFIRMED β PROCESSING, SHIPPED, or CANCELLED
- PROCESSING β SHIPPED or CANCELLED
- SHIPPED β DELIVERED or CANCELLED
- DELIVERED β no further changes π
- CANCELLED β no further changes π
Disallowed changes (invalid transitions) β οΈ
These changes will show an error if you try them:
- PENDING β Cannot jump straight to DELIVERED.
- CONFIRMED β Cannot go back to PENDING or jump to DELIVERED.
- PROCESSING β Cannot go back to PENDING or CONFIRMED, or jump to DELIVERED.
- SHIPPED β Cannot go back to PENDING, CONFIRMED, or PROCESSING.
- DELIVERED β Cannot change to any other status (terminal).
- CANCELLED β Cannot change to any other status (terminal).
Once an order is DELIVERED or CANCELLED, the only βtransitionβ allowed is leaving it as-is.