Skip to main content
PUT
cURL
Cancels a previously created on-ramp, off-ramp, or cross-ramp transaction. Cancellation is only allowed if the transaction has not yet received funds.

Important Notes

  • Only transactions in a cancellable state can be cancelled: PENDING_PAYMENT (on-ramp and off-ramp), COMPLETED_CRYPTO_RECEIVAL (off-ramp), and WAITING_INVOICE or PENDING_FUNDS (cross-ramp). Cancelling a cross-ramp also cancels its child orders and sends CANCELLED_CROSS_RAMP.
  • Completed or locked transactions cannot be cancelled.
  • The transaction must belong to the authenticated partner account.
  • This operation is idempotent — calling it multiple times on a cancelled transaction will not cause errors.

Use Cases

  • Abort abandoned payments: Cancel stuck or forgotten transaction flows.
  • Back-office controls: Let support teams reverse pending transactions before execution.
  • Automatic timeout flows: Cancel after inactivity via cron jobs or watchdog logic.

Error Codes

These are the errors this endpoint returns most often. Branch on code, not message, and handle codes you don’t recognize by their HTTP status. See Error Codes for the complete list.

Common Errors

Endpoint-Specific Errors

Authorizations

partner-api-key
string
header
required

API key for the affiliated partner performing the request.

Path Parameters

id
string
required

Transaction identifier

Example:

"8374f327-38bd-4b0b-b8a7-2524599eb903"

Response

Transaction cancelled successfully. Returns the updated transaction details.

success
boolean
Example:

true

data
object