Workflow Map

State machine definitions for all major business workflows

Order Workflow

— Customer purchase lifecycle from cart to closed
Created
Pending Payment
Paid
Allocating Stock
Fulfilling
Shipped
Delivered
Closed
Created
Customer submits order
Pending Payment
Awaiting payment confirmation
Paid
Payment confirmed and recorded
Allocating Stock
Warehouse reserves inventory
Fulfilling
Order being packed and prepared
Shipped
Dispatched to customer or dealer
Delivered
Customer confirmed receipt
Closed
Order complete and archived

State Transitions

FromToTriggerCondition
createdpending_paymentAuto on submitalways
pending_paymentpaidPayment webhookpayment confirmed
pending_paymentcreatedPayment failedretry
paidallocatingAuto on paymentstock available
allocatingfulfillingWarehouse confirmreservation success
fulfillingshippedDispatch scandispatch created
shippeddeliveredDelivery confirmPOD received
deliveredclosedAuto after 7dno dispute