Skip to navigation

Cancel device order

View as MarkdownOpen in Claude

Cancels a device order that’s still Placed, meaning it isn’t paid yet. For any other status, this endpoint returns 409.

To cancel an order that’s already paid, contact Payabli. Payabli reverses the charge before it cancels a paid order. If Payabli can’t reverse the charge, the order stays Paid.

This endpoint requires the deviceorder_update permission.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

OR
requestTokenstring

Long-lived API token sent in the requestToken header. See API token authentication.

Path parameters

orderNumberstringRequired
The order number.

Request

This endpoint expects an object.
reasonstringOptional<=500 characters
An optional reason for canceling the order.

Response

Success
responseTextstring

Success when the request succeeds.

responseDataobject
A device order.
responseCodeintegerOptional

Code for the response. Learn more in API Response Codes.

pageIdentifierstringOptional
Auxiliary validation used internally by payment pages and components.
roomIdlongOptional

Field not in use on this endpoint. It always returns 0.

isSuccessbooleanOptional

Boolean indicating whether the operation was successful. A true value indicates success. A false value indicates failure.

Errors

401
Unauthorized Error
404
Not Found Error
409
Conflict Error
500
Internal Server Error