Cancel Order Item
An order item can be cancelled only at the purchase stage.
info
Cancellation is only possible in the purchase purchase stage, in the idle or rejected state.
Otherwise the request returns a 422 error:
draft,created— the item is still being processed, retry the cancellation later;purchase/started— a purchase specialist has already started the purchase;- the item has already been purchased (
purchase/finishedand later stages).
You can refer to API reference HERE
After cancellation the item moves to the cancelled / finished status. A cancellation reason can be passed in the
request; it is stored in the status. Cancelling an already cancelled item changes nothing and returns the current order.