Skip to main content
POST
Cancel an order

Authorizations

Authorization
string
header
required

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

Path Parameters

order_number
string
required

order number

Body

application/json
cancellation_reason
string
required

The reason for cancelling the order. Recorded on the order for reporting and customer communication.

refund_mode
enum<string>
required

How the refund is issued. Use original-payment-mode to refund back to the customer's original payment instrument, or bank-transfer to refund to a saved customer bank account.

Available options:
original-payment-mode,
bank-transfer
bank_account_id
string | null

The customer bank account to credit. Required when refund_mode is bank-transfer; omit or set to null for original-payment-mode.

Response

200 - application/json

OK

message
string
success
boolean
content
object