id as fx_quote_id on a transfer to apply the locked rate. A quote is only valid for a limited window; use it before it expires or request a new one.
The FX Quote object
The converted amount, in the smallest unit of the destination currency, after
rate is applied.Example FX quote object
valid_for reflects how long the specific quote you requested remains valid. It varies per quote and per currency pair; don’t treat it as a fixed constant.Create an FX quote
POST /fx-quotes
Requests a quote to convert an amount from one currency into another, locking in a rate for a limited window. Returns 201 Created.
Request parameters
The currency to convert from, as an uppercase code, e.g.
USD. Fiat currencies use ISO 4217 codes, and the stablecoins are USC, UST and RLD. Lowercase codes and currencies the API doesn’t support return 422 error_validation_value_not_supported. It must differ from to_currency.The currency to convert to, in the same format as
from_currency, e.g. GHS. A quote for the same currency on both sides returns 422 error_fx_currency_pair_unsupported.The amount to convert, in the smallest unit of
from_currency. Minimum 1. Conditionally required: pass either amount_from or amount_to. Sending both returns 400 error_validation_invalid_format, and sending neither returns 400 error_validation_required_field_missing.The amount to receive, in the smallest unit of
to_currency. Minimum 1. Conditionally required: pass either amount_from or amount_to, as described above.The ID of the account you intend to debit on the resulting transfer. Used to look up any corridor-specific margin for the account; omit for an indicative quote not tied to a specific account. The account must belong to the entity and hold
from_currency: otherwise the request returns 404 error_resolution_account_not_found. A value that isn’t a valid ID returns 422 error_validation_invalid_format.Defaults to the authenticating entity when omitted. Required when acting on a child entity. An unknown ID returns
404 error_resource_not_found. See Managing child entities for details.Request
Response
Returns the created FX Quote object withquote.status: "active". rate is the effective rate after the margin, to 6 decimal places, and amount_to is rounded down. A stablecoin has 2 decimal places like fiat currencies, so a USD amount of 10000 converts to 10000 USC.
201 Created
Errors
The request can also return the shared
403 and 429 errors. See Errors for the standard error object.
Example error responses:
Get an FX quote
GET /fx-quotes/{quote_id}
Retrieves a single FX quote, including its current status and remaining validity. Returns 200 OK. Authenticate with a secret API key; a publishable key or no key returns 401 error_auth_credentials_invalid.
Path parameters
The FX quote ID, a 26-character ULID. The format isn’t validated: an ID that is malformed, doesn’t exist, was deleted, or belongs to another entity returns
404 error_resource_not_found.Query parameters
Defaults to the authenticating entity when omitted. Required when acting on a child entity. An unknown ID returns
404 error_resource_not_found, and a quote is only returned for the entity that owns it. See Managing child entities for details.Request
Response
Returns the FX Quote object indata. quote.status is computed when you read the quote. Once a quote is applied to a payment, it becomes used and quote.used_at/quote.used_in_payment_id are populated. Once expires_at passes without the quote being used, it becomes expired and quote.valid_for is 0. Expired quotes stay retrievable. Confirming a capital order consumes its quote even when the debit fails: the quote becomes used and used_in_payment_id points at the failed transfer, so request a new quote for the new reservation.
Errors
The request can also return the shared
403 and 429 errors. See Errors for the standard error object.
Example error responses:

