The order lifecycle follows its successive states: pending payment, paid, in preparation, shipped, delivered, then possibly cancelled, refunded or returned. Each change of state triggers actions such as an email to the customer, a stock adjustment or an invoice.