Cancel Order
This endpoint allows you to cancel an existing order. Cancellation is typically allowed only if the order is still in a pending state and has not yet been processed for shipping.
Path Parameters
| Parameter | Type | Description |
|---|---|---|
| id | string | The unique system ID of the order you wish to cancel. |
PUT
https://api-fulfillment.bosta.co/api/v1/orders/:id/cancelCancel an order by its ID. Check the warnings array for any non-blocking issues.
Responses
200Order cancelled successfully
400Cancellation Failed
Response Breakdown
- success: Boolean string indicating the overall result.
- data.status: Confirms the new status of the order (
CANCELLED). - data.warnings: An array of strings containing non-critical information or edge cases encountered during cancellation.