Skip to main content

The Grand Order State Machine

Understanding the order state machine is the single most important skill for QA and Customer Support. Every order follows strict transition rules. An order cannot jump arbitrarily between statuses.


1. Complete Business State Diagram​


2. Order Status Matrix: Meaning, UI Badge & Inventory Effect​

StatusWhat it Means in Plain EnglishUI Badge in AdminPhysical Stock EffectReserved Stock EffectAllowed Actions
DRAFTOrder being drafted manually by phone or B2B sales agent. Not yet live.Gray DraftUnchanged0Edit items, Add customer, Finalize
PENDINGOrder received from Shopify/Amazon. Awaiting auto-confirm or manual validation.Yellow PendingUnchanged+Reserved (if blockOversell=true)Confirm, Put on Hold, Cancel, Edit Address
ON_HOLDOrder frozen due to risk check, unverified address, or lack of stock.Red On HoldUnchangedMaintained or ReleasedClear Hold, Edit Address, Cancel
CONFIRMEDValidated order ready for warehouse fulfillment.Blue ConfirmedUnchanged+ReservedChange Warehouse, Cancel, Priority Bump
PROCESSINGOrder sent to warehouse floor; included in candidate fulfillment pool.Indigo ProcessingUnchanged+ReservedGenerate Pick Wave, Hold
PICKINGWarehouse picker has physically added item to a pick cart/tote.Purple PickingUnchanged+ReservedComplete Pick, Mark Shortage
PACKEDItems scanned, boxed, and sealed at packing station.Orange PackedUnchanged+ReservedGenerate Shipping Label, Unpack
MANIFESTEDShipping label (AWB) generated and parcel added to courier manifest.Teal Manifested-Physical-ReservedCourier Handover Scan, Void Label
SHIPPEDCourier truck has left the warehouse dock. In transit to customer.Navy ShippedDeducted0Track Courier, Trigger NDR
DELIVEREDBuyer received parcel. Order complete.Green DeliveredDeducted0Initiate RMA / Return
CANCELLEDOrder terminated.Slate CancelledUnchangedReleased (-Reserved)None (Terminal state)
RTO_IN_TRANSITDelivery failed after courier attempts; traveling back to warehouse.Rose RTO In-TransitDeducted0Track Return AWB
RTO_DELIVEREDReturned package arrived at warehouse receiving bay.Fuchsia RTO DeliveredDeducted0Perform QC Inspection

3. Critical Business Rules for QA & Support​

  1. The Cancellation Boundary:
    • Orders in PENDING, ON_HOLD, or CONFIRMED can be cancelled with one click.
    • If an order is already MANIFESTED or SHIPPED, direct cancellation is blocked. Support must instruct the warehouse to physically stop the parcel or contact courier dispatch to issue a delivery abort.
  2. Channel Status Push:
    • When an order reaches SHIPPED in PointNXT, the courier name and tracking number are instantly pushed back to Shopify/Amazon, triggering the marketplace customer shipping email.
  3. Inventory Release on Cancellation:
    • Whenever an order transitions to CANCELLED, PointNXT releases any reserved stock immediately. The central inventory engine then recalculates available stock and pushes the new higher quantity to all other sales channels.

4. End-to-End Order-to-Cash Sequence Diagram​

The following sequence diagram illustrates the complete chronological path of an order across systems, from initial customer checkout to final delivery: