Skip to main content
GET
TypeScript

Autorisaties

Authorization
string
header
vereist

An Account API key, an App API key, an account access token, an account-scoped user token, or a user OAuth token. Prepend the key or token with Bearer, for example Bearer ***************************. See Auth & API keys for how to get each one.

Scopes

crypto_wallet:swap
crypto_wallet:manage
payout:transfer_funds
payout:withdraw_funds

Headers

Api-Version-Date
string

Pins the request to a dated API version.

Voorbeeld:

"2026-11-17"

Padparameters

id
string
vereist

Swap ID returned from POST /swaps.

Respons

swap status retrieved

account_id
string
vereist

Account that owns the swap: a business ID prefixed biz_, or the user ID for a personal account.

Voorbeeld:

"biz_xxxxxxxxxxxxxx"

amount
string | null
vereist

The from_token amount the swap was created to spend, as a decimal string. A swap created with all reports the wallet balance it read. Null for a fiat pair.

Voorbeeld:

"0.052341"

id
string
vereist

Swap ID.

Voorbeeld:

"vault-swap-cwal_xxxxxxxxxxxxxx"

object
enum<string>
vereist
Beschikbare opties:
swap
Voorbeeld:

"swap"

status
enum<string>
vereist

Current swap status. complete and failed are terminal.

Beschikbare opties:
queued,
working,
complete,
failed
Voorbeeld:

"failed"

tx_hashes
string[]
vereist

On-chain transaction hashes produced by the swap.

user_id
string | null
vereist

User whose personal account owns the swap, prefixed user_. Null for a business account.

Voorbeeld:

null

error
string | null

Latest error returned for a failed swap.

Voorbeeld:

"Swap reverted: quoted price moved beyond the slippage tolerance"