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
- Base URLhttp://localhost:8000/api/admin
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
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.