Currency Exchange

The Currency Exchange Object

Property
Type
Description
from
String
Origin currency code (ISO-4217)
to
String
Destination currency code (ISO-4217)
rate
Decimal
Ratio of conversion from from currency to to currency.
get
https://api.dlocal.com/currency-exchanges?
from={from}&to={to}
Get an Exchange Rate
At the moment, the only acceptable value for the from parameter is USD, whereas the toparameter can include any local currency.

Example request

1
curl -X GET \
2
-H 'X-Date: 2018-02-20T15:44:42.310Z' \
3
-H 'X-Login: sak223k2wdksdl2' \
4
-H 'X-Trans-Key: fm12O7G9' \
5
-H 'X-Version: 2.1' \
6
-H 'User-Agent: MerchantTest / 1.0 ' \
7
-H 'Authorization: V2-HMAC-SHA256, Signature: 1bd227f9d892a7f4581b998c21e353b1686a6bdad5940e7bb6aa596c96e0a6ec' \
8
https://api.dlocal.com/currency-exchanges?from=USD&to=BRL
Copied!
Last modified 1yr ago