Skip to main content

Order lifecycle

Route: /org/ecom/orders · Permission to move an order: Review and act on customer orders (status transitions)


1. The six states​

An order is always in exactly one of six states. Four are the happy path; two are exits.

StatusBadgeMeans
PLACEDAmberThe customer has ordered. Nothing has happened yet
CONFIRMEDBlueThe store has accepted it
SHIPPEDVioletIt has left
DELIVEREDEmeraldIt arrived
CANCELLEDSlateIt will not be fulfilled
REFUNDEDRoseMoney has gone back

Active — the workbench's default scope — is the first three: PLACED, CONFIRMED, SHIPPED. That is the definition of "still our problem".


2. How an order moves​

Payment status is a separate axis

An order's status and its payment status move independently. A DELIVERED order can still be COD · TO COLLECT, and a PLACED order can already be COD · PAID. The card shows both because neither implies the other.


3. Moving an order​

Status changes are made from the order card and require Review and act on customer orders (status transitions). Without it the order is fully readable and cannot be moved.


4. Field reference​

What each pill scopes to​

PillStatuses
ActivePLACED · CONFIRMED · SHIPPED
Allevery status
DeliveredDELIVERED
CancelledCANCELLED
Refundedorders with a processed refund — not the REFUNDED status alone
The Refunded pill is a refund query, not a status query

It matches orders that have a processed refund attached. A partially refunded order therefore shows under Refunded while its own status may still read DELIVERED.

That is deliberate — you usually want "orders where money went back", not "orders whose label says refunded".


5. The admin contract​

PrerequisiteWithout it
Review and act on customer orders (status transitions)Statuses cannot change
Approve Refund RequestRefunds cannot be completed

6. Downstream​

A status change is visible to the shopper in my orders, and drives what the operations board shows as outstanding.


7. Don't confuse this with…​

ThingWhy it differs
Order statusWhere the order is
Payment statusWhether it is paid
Refund stateIn-flight versus processed
Preorder reviewA request that is not yet an order

8. Troubleshooting​

SymptomCause
Cannot move an orderMissing Review and act on customer orders (status transitions)
A delivered order shows under RefundedIt has a processed refund
A delivered order is unpaidPayment status is independent of status
An order vanished from the listIt left the Active scope