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
string
Unique identifier for the FX quote.
string
Source currency code, ISO 4217, uppercase.
string
Destination currency code, ISO 4217, uppercase.
number
The amount converted, in the smallest unit of the source currency.
number
The converted amount, in the smallest unit of the destination currency, after
rate is applied.number
The exchange rate applied to the conversion.
object
Validity and usage details for this quote.
number
Unix timestamp in milliseconds when the quote was created.
number
Unix timestamp in milliseconds when the quote was last updated.
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.
Request parameters
string
required
The currency to convert from. ISO 4217 format, e.g.
USD.string
required
The currency to convert to. ISO 4217 format, e.g.
GHS.number
The amount to convert, in the smallest unit of
from_currency. Minimum 100. Conditionally required: pass either amount_from or amount_to, not both.number
The amount to receive, in the smallest unit of
to_currency. Conditionally required: pass either amount_from or amount_to, not both.string
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.
string
Defaults to the authenticating entity when omitted. Required when acting on a child entity. See Managing child entities for details.
Request
Response
Returns the created FX Quote object withquote.status: "active".
Errors
Get an FX quote
GET /fx-quotes/{quote_id}
Retrieves a single FX quote, including its current status and remaining validity.
Path parameters
string
required
The FX quote ID.
Query parameters
string
Defaults to the authenticating entity when omitted. Required when acting on a child entity. See Managing child entities for details.
Request
Response
Returns the FX Quote object. Once a quote is applied to a transfer,quote.status becomes used and quote.used_at/quote.used_in_payment_id are populated.
