quote_id from POST /api/v1/conversions/quotes to lock the rate before executing.
Execute a conversion
Authorization: Bearer <token>)
Request
The currency to convert from. Example:
USD.The currency to convert to. Example:
NGN.The amount in
from_currency to convert.A quote ID from
POST /api/v1/conversions/quotes. The conversion executes at the rate locked in the quote.Response
Unique identifier for this conversion.
Conversion status. Typically
COMPLETED for synchronous conversions.Source currency.
Destination currency.
Amount debited in
from_currency.Amount credited in
to_currency.Rate applied to the conversion.
ISO 8601 timestamp when the conversion was executed.
The quote ID used, if one was provided. Maps to
reference_id internally.Additional details about the conversion, including
settlement_status and swapped_before_settlement.Error codes
| Status | Description |
|---|---|
400 Bad Request | Unsupported currency pair, insufficient balance, or expired quote |
422 Unprocessable Entity | Validation error on one or more fields |
Example
List conversions
Query parameters
Number of results per page. Min
1, max 100. Defaults to 50.Number of results to skip. Defaults to
0.Filter by source currency.
Filter by destination currency.
Filter by conversion status.
ISO 8601 start date for filtering by
created_at.ISO 8601 end date for filtering by
created_at.Response
Total number of conversions matching the filters.
Page size used for this response.
Offset used for this response.
Array of conversion objects. Each item has the same shape as the execute conversion response.
Example
Get a conversion
Path parameters
The
conversion_id returned when the conversion was created.