Skip to main content
POST
Execute a conversion (consume a quote)

Authorizations

Authorization
string
header
required

Enter Auth0 JWT token

Headers

Idempotency-Key
string

A repeat returns the original conversion result.

Zuba-Account-Id
string<uuid>

Optional. Names an owned sub-account (UUID) to convert as: the conversion debits and credits that sub-account's own balance, never the master's, and only a quote minted with the same Zuba-Account-Id can be spent (any other quote returns 400 QUOTE_NOT_FOUND). A sub-account that is not active returns 422 ACCOUNT_NOT_ACTIVE. Omit to convert on the master (tenant) balance, spending any quote of the master and its sub-accounts. Naming an account this key does not own returns 403 not_account_owner.

Body

application/json
quoteId
string
required

Id of the firm convert quote to execute

Example:

"550e8400-e29b-41d4-a716-446655440000"

Response

The executed conversion: completed, or pending while the institution holding both sides of the pair executes it, after which it reads completed, or failed with the source debit returned to the source balance.

createdAt
string
required

Created at (ISO 8601)

fee
string
required

Per-conversion fee charged on the source leg, in feeCurrency, as locked on the quote: the greater of the basis-point charge and the fixed floor from your pricing, "0.0000" when your pricing carries none. Part of the source amount, not added to it.

Example:

"0.0000"

feeCurrency
string
required

Fee currency

Example:

"USD"

id
string
required

Conversion id

Example:

"uuid"

rate
string
required

All-in rate applied: source units per 1 target unit

Example:

"1.09860000"

sourceAmount
string
required

Debited from the source balance

Example:

"500.0000"

sourceCurrency
string
required

Source currency

Example:

"USD"

status
enum<string>
required

pending while the conversion is in flight, with the source amount already debited; completed once the target amount is credited; failed when nothing was converted and the source amount is back on the source balance

Available options:
completed,
failed,
pending
Example:

"completed"

targetAmount
string
required

Credited to the target balance

Example:

"455.1200"

targetCurrency
string
required

Target currency

Example:

"EUR"

accountId
string<uuid>

Owning sub-account; present when the conversion was made in a sub-account context (Zuba-Account-Id header) and booked on that sub-account's balance. Absent = the conversion booked on your master account.