Skip to main content

Cancel Order

POST 

/api/orders/cancelorder/:id

Tier: Public — stable, supported for third-party integration.

Cancels an order, and raises OrderStateChanged on success.

Allowed from any non-terminal state (Open, Allocating, Allocated, Dispatched, Receiving, Received); refused from Completed or Cancelled. Item-state reverts depend on the state cancellation occurs from — e.g. non-error allocated items return to Present when cancelling from Allocating/Allocated, and dispatched items become Missing when cancelling from Dispatched. See Enums.OrderStateType for the full lifecycle.

Request

Responses

Returns the cancelled Orders.OrderDetailDto (state Cancelled).