POST
/
otc-exchanges
/
{id}
/
cancel
Cancel a pre-debit OTC order
curl --request POST \
  --url https://api.balansas.com/functions/v1/customer-api/otc-exchanges/{id}/cancel \
  --header 'x-api-key: <api-key>'
{
  "data": {
    "orderId": "770e8400-e29b-41d4-a716-446655440002",
    "status": "debit_pending"
  }
}

Authorizations

x-api-key
string
header
required

Customer API key. Send as x-api-key: sk_... or Authorization: Bearer sk_.... Write operations also require an X-CSRF-Token header (64-char hex).

Response

Success

data
object
required