Order - Finite State Diagram
States:
created
pending
paid
canceled
partial
fulfilled
returned
Transitions:
Transition | Start state | End state | Description |
---|---|---|---|
1 | created | pending | The client sends a Pay an Order request to Rapyd. |
2 | pending | paid | The payment is approved and funds are transferred. |
3 | paid | fulfilled | All of the products are delivered to the customer. |
4 | pending | canceled | The order is canceled before payment is received. |
5 | paid | partial | Some of the products are delivered to the customer. |
6 | partial | fulfilled | All of the products are delivered to the customer. |
7 | partial | returned | A partial return is processed against the order. |
8 | fulfilled | returned | A full return is processed against the order. |
9 | returned | canceled | All products are returned and the order is canceled. |