quote_id returned is valid until expires_at. Pass it to POST /api/v1/conversions to execute the conversion at the locked rate.
If you execute a conversion without a quote, the rate applied is the market rate at execution time.
Request
Authorization: Bearer <token>)
The currency to convert from. Example:
USD.The currency to convert to. Example:
NGN.The amount in
from_currency to convert.Response
The locked quote ID. Pass this to
POST /api/v1/conversions to use the rate.Source currency.
Destination currency.
The input amount in
from_currency.The amount you will receive in
to_currency at this rate.The locked rate: units of
to_currency per one unit of from_currency.ISO 8601 timestamp. The quote is valid until this time. Request a new quote after expiry.
Error codes
| Status | Description |
|---|---|
400 Bad Request | Unsupported currency pair or invalid amount |
422 Unprocessable Entity | Validation error on one or more fields |
Example
Quotes expire. If you do not execute the conversion before
expires_at, request a new quote. Passing an expired quote_id to the execute endpoint will result in an error.