SalesOrders
Cancels a sales order (the app's Cancel page): delivered goods come back, transfers are cancelled.
Requires ManageSalesOrders and an Idempotency-Key header. Body optional: { "reason": "Customer changed their mind" }. Same code path as the app's Cancel page: units already delivered by completed transfers are returned to inventory, live transfers are cancelled and their reserved stock released, the order's lines are removed, and the order and its payment status become Cancelled with the history entry "Order cancelled by … (was …) (via API key '…')". Cancelled is terminal; Complete and Cancelled orders are refused.
post/api/v1/sales-orders/{id}/cancel
Request
- Base URL: https://app.flexonthejob.com
- URL: https://app.flexonthejob.com/api/v1/sales-orders/{id}/cancel
- Auth: HTTP bearer
Path parameters
idinteger required
Sales-order id. Example: 318.
Request body
Response
Cancelled; itemsReturned and transfersCancelled say what was undone.
Changes
No recorded changes to this operation across all 1 revision of this API.