Get currency exchange
The exchange_rates
endpoint allows you to get the exchange of any currency compared against USD.
You need to specify a country ISO code and optionally an amount in USD.
If no amount is specified, 1 USD will be assumed.
Please find all the country codes in the Countries Specifications section.
Country ISO code in whose local currency the amount will be converted to. Please find all the country codes in the Countries Specifications section.
BR
Amount to convert in USD. If none is specified, 1
will be assumed.
1
Example: 10
Media type of the body sent to the API.
application/json
ISO8601 Datetime with Timezone (e.g., 2023-05-20T15:30:00Z or 2023-05-20T12:30:00-03:00).
2024-05-23T10:30:00-03:00
Merchant X-Login API Key.
Bearer token for authentication. Example: 'Bearer your_read_only_key_here'
Unique idempotency key for ensuring that the same request is not processed more than once.
Currency exchange correctly returned.
The country specified was incorrect.
Invalid credentials error.
GET /v3/exchange_rates HTTP/1.1
Host: api-stg.directa24.com
Content-Type: application/json
X-Date: 2025-08-29T19:03:13.811Z
X-Login: text
Authorization: text
Accept: */*
{
"fx_rate": 5.8829,
"currency": "BRL",
"converted_amount": 58.829
}
Last updated
Was this helpful?