Cancel order
Requests cancellation of an order. A 201 response means the cancellation request was received — not necessarily that the order is cancelled yet.
Check the cancellationStatus in the response:
- orders that can be cancelled immediately (for example, those not yet dispatched) come back
canceledright away - others come back
pendingand are reviewed asynchronously before being approved or denied
For requests that return pending, listen for the order.cancellationrequest.created and order.cancellationrequest.updated events to learn the outcome — see Order Cancellation Requests events.
/{id}/cancelAuthorizationBearer token · headerrequiredAPI token from the SIBI developer dashboard (developer.sibipro.com), sent as Authorization: Bearer <token>.
cancel:ordersidstringrequiredThe ID of the order to cancel
application/jsonreasonstringrequiredReason for the cancellation
Cancellation requested. The response reflects the current cancellationStatus: usually pending (queued for asynchronous review), but already canceled for orders that are cancelled immediately.
cancellationStatusstringStatus of the cancellation request. pending: the request is awaiting review. approved or canceled: the order has been cancelled. denied: the request was rejected and the order continues processing.
approveddeniedpendingcanceledcancellationReasonstringReason for the cancellation request
requestedAtstring<date-time>requiredTimestamp when the cancellation was requested
Bad request - Invalid input data
codestringrequiredError code indicating the type of error
messagestringrequiredHuman-readable error message explaining what went wrong
detailsobject[]Detailed validation errors when applicable
Show propertiesHide properties
objectfieldstringrequirederrorstringrequiredUnauthorized - Missing or invalid authentication
codestringrequiredError code indicating the type of error
messagestringrequiredHuman-readable error message explaining what went wrong
detailsobject[]Detailed validation errors when applicable
Show propertiesHide properties
objectfieldstringrequirederrorstringrequiredForbidden - the token was minted for the other environment, is not a Public REST API token, or does not carry the scope this operation requires
codestringrequiredError code indicating the type of error
messagestringrequiredHuman-readable error message explaining what went wrong
detailsobject[]Detailed validation errors when applicable
Show propertiesHide properties
objectfieldstringrequirederrorstringrequiredInternal server error
codestringrequiredError code indicating the type of error
messagestringrequiredHuman-readable error message explaining what went wrong
detailsobject[]Detailed validation errors when applicable
Show propertiesHide properties
objectfieldstringrequirederrorstringrequired