Admin Sales: Orders

Cancel an order

Cancels every cancellable item on the order and returns the updated OrderDetail. Gated by the same conditions as the admin UI (open status, qty_to_cancel, sales.orders.cancel permission).

post/orders/{id}/cancel

Request

Path parameters

idinteger required

Order ID

Request body

object required

Response

The updated order detail.

Changes

No recorded changes to this operation across all 8 revisions of this API.