States

Order have a state which can be used to determine the current state of the order. The state is also used within Core-commerce to check if an order still can be changed.

  • 0: Open (default, when completed is 'true')
  • 1: Confirmed (default, when completed is 'false')
  • 2: Canceled
  • 3: Accepted

By calling the 'Orders_Accept' endpoint, the state can be changed to 'Accepted' and connected activation codes state is then updated to 'Confirmed'. This will only be done when the current order state is not 'Canceled'. Also the 'order-state-changed' webhook is triggered.By calling the 'Orders_Cancel' endpoint, the state can be changed to 'Canceled' and connected activation codes state is then updated to 'Canceled'. This will only be done when the current order state is not 'Accepted'. Also the 'order-state-changed' webhook is triggered.

Canceled state

For Orders with the state 'Canceled', the following can't be updated:

  • Returns
  • Refunds
  • Shipments
  • Payments