Statuses and Order flow
The Order provides a central place to collect information about a customer order. It contains line items, adjustments, payments, addresses, return authorizations, and shipments.
Whenever information about the order is updated, the order states get updated automatically.
In the OMS, each order is associated with Statuses and States- Below is an overview of them.
Each shipment is assigned a state attribute. Depending on its state, different actions can be performed on shipments. There are four possible states:
The shipment has backorder inventory units, and the order is not paid for.
The shipment has no backorder inventory units, and the order is paid for.
Suppose an order has multiple shipments, which could be caused by a lack of inventory or numerous stock locations. If only one of the various shipments has shipped, the order will be in a “partial” state until the remaining shipments are shipped.
The shipment has left the stock location.
All of its shipments will be canceled when an order is canceled. When this happens, all items in the shipment will be restocked. If an order is "resumed," the shipment will also be resumed.
Inventory needs to be updated for the product(s) for the order to be shipped.
A perfect order will have the statuses of Paid - Ready - Complete
Before an order is marked as Complete, orders go through a number of other states. By default, the following states are available:
A customer has placed product(s) in the cart but has not proceed with the checkout
The customer has begun checkout and has not yet provided their billing and/or shipping addresses. OR there is an issue with the address provided
The customer needs to choose from available shipping options.
The customer needs to provide payment information.
The customer needs to confirm that the input checkout information is correct.
The customer has submitted their order.
Typically, an order has one or multiple payments associated with it. Because of this, the order object has a payment_state attribute that tracks against all of the payments associated with the order.
For example, if your customer has $20 on store credit but their order comes to $40, they need to use two payment methods in order to pay for the order: Store Credit payment method and one of the other available payment methods.
This state indicates that a payment on the order is required. The order's payment_total value is less than its total value.
This state indicates that the order has been paid for in excess The order's payment_total value is greater than its total value.
The payment was rejected by the payment service provider.
The order is not yet complete.
The payment is being processed by the payment service provider. This is a temporary state intended to prevent the double-submission of a payment.
The payment service provider has processed the payment, but the payment is not yet captured.
This state indicates that the order has been paid for in full and no credited is owed.
The payment is invalid and needs to be reattempted.
This state indicates that the order has been canceled. No credit is owed, no balance is due, and the order has not been paid for.
The payment is completed.
If you have any questions or need help, please get in touch with us at firstname.lastname@example.org.