Order statuses
Order statuses track an order's progress from creation to completion. They help managers organize their work with orders and let customers see the current state of their order.
Each order repository has its own set of statuses, so you can add statuses specific to a particular group of products.
Status modes
At the top of the "Order Statuses" section is the "Order Status Mode Settings" block, where you choose one of two modes:
- Basic: the default mode. It uses a single set of statuses linked to the payment account. The order status changes linearly based on payment events. This mode is enough for most scenarios.
- Advanced: flexible configuration along three independent axes: Order status (the main order status), Fulfillment (assembly, shipping, delivery), and Payment. Each axis has its own set of statuses, maps of automatic transitions by trigger, and custom triggers.
To change the mode, select an option in the "Order Status Mode Settings" block and confirm in the pop-up window.
When you switch to advanced mode, make sure to assign a default status for the Order status axis. The order lifecycle starts from this status. Until it is set, the data is considered invalid and you can't save the repository.
After the switch, statuses created in basic mode move to the Payment axis. You need to create statuses for the Order status axis from scratch. Until you do, the section shows the warning "No default status set for the 'order' axis".
Creating a status
To create an order status, open the orders section in the left menu. Select the order repository where you want to create the status and click the edit icon . Go to the "Order Statuses" section.
In the new status block, fill in:
- Status name: a non-unique string that describes what the status means, for example "In Delivery" or "Completed". This is what the manager and the user see in the order status section.
- Marker: a unique string used in your application's code. Choose the marker so that it doesn't cause conflicts in your application.
Click the "Add" button. If all data is valid, the status is saved automatically and added to the list.
Editing a status
To edit an existing order status, open the orders section in the left menu. Select the order repository where you want to edit the status and click the edit icon . Go to the "Order Statuses" section.
Select the status in the list and click the edit icon . You can change the status name (Name), its marker (Marker), and the Default status, Final cancellation, and Final Success settings.
If your application already uses the status, change the marker only if you are sure it won't break the application.
Default value
You can make one of the statuses the default. A status marked this way is set whenever no other status is set.
To make a status the default, open its settings by clicking the edit icon and select the Default status checkbox. The default status is automatically assigned to an order when the order is created.
An order repository can have only one status with this setting. In the list, this status has a special marker.
Final cancellation
Select the Final cancellation checkbox if the status means the order is finally canceled. When an order moves to this status, it is canceled and any bonuses applied to it are returned. This setting is usually enabled for statuses that correspond to the expired and canceled payment statuses.
Final Success
Select the Final Success checkbox if the status means the order was completed successfully. Orders in this status count toward the customer's LTV, the total amount of all their paid orders.
Deleting a status
To delete an order status, open the orders section in the left menu. Select the order repository where you want to delete the status and click the edit icon . Go to the "Order Statuses" section.
Find the status in the list and click the delete icon . Confirm in the pop-up window. The status is removed from the list.
You can't delete a status that is assigned to an order or used in a status map. Such statuses have no delete icon.
Advanced mode
Advanced mode is for complex order processing scenarios where a single linear set of statuses isn't enough. It splits statuses into three independent axes and lets you configure automatic transitions between statuses based on triggers.
To enable advanced mode, select Advanced in the "Order Status Mode Settings" block and confirm the switch.
Three status axes
In advanced mode, each order has three independent status axes:
- Order status: the main business status of the order.
- Fulfillment: order fulfillment (assembly, shipping, delivery).
- Payment: the payment status.
Each status belongs to exactly one axis. The seller manages the Order status and Fulfillment axes (manually or through an integration). The system manages the Payment axis automatically based on payment events.
You can't delete a status that is used in a transition map or assigned to an order.
Creating a status in advanced mode
You create a status the same way as in basic mode, but the form has an extra field for the axis the status belongs to (Order status, Fulfillment, or Payment). The status list also gets an "Axis" column that shows each status's axis.
Status maps
In advanced mode, the "Order Statuses" → "Status mapping" tab appears. A status map automatically changes the status on the Order status or Fulfillment axis when a trigger fires. For example, on the payment.paid trigger, the Order status axis moves to "Paid".
The map settings are split into sub-tabs by axis (Order status and Fulfillment). Triggers are grouped by category (order, payment, and refund events). For each trigger, specify the target status the order should move to. The initial status is the default status of the corresponding axis.
When you finish configuring the map, click "Save".
You can change the statuses on the Order status and Fulfillment axes manually or through an integration. Only the system changes the Payment axis, based on payment events.
Custom triggers
On the status map tab, you can create your own (custom) triggers of the form custom.{name}. These triggers can be fired only through an API integration and are available for the Order status and Fulfillment axes. Use them to define status transitions for non-standard business events in your application.