curl --request GET \
--url 'https://app.amplopay.com/api/v1/gateway/utils/exchange-rates?from=USD&to=BRL&amount=100' \
--header 'x-public-key: SUA_CHAVE_PUBLICA_AQUI' \
--header 'x-secret-key: SUA_CHAVE_PRIVADA_AQUI'
Endpoints
Utilities
Auxiliary API endpoints
GET
/
gateway
/
utils
/
exchange-rates
curl --request GET \
--url 'https://app.amplopay.com/api/v1/gateway/utils/exchange-rates?from=USD&to=BRL&amount=100' \
--header 'x-public-key: SUA_CHAVE_PUBLICA_AQUI' \
--header 'x-secret-key: SUA_CHAVE_PRIVADA_AQUI'
Exchange rates
Queries or calculates the exchange rate between currencies.Query parameters
string
required
Source currency.
string
required
Target currency.
number
Amount to convert.
Request example
curl --request GET \
--url 'https://app.amplopay.com/api/v1/gateway/utils/exchange-rates?from=USD&to=BRL&amount=100' \
--header 'x-public-key: SUA_CHAVE_PUBLICA_AQUI' \
--header 'x-secret-key: SUA_CHAVE_PRIVADA_AQUI'
Query example
from=USD&to=BRL&amount=100
Was this page helpful?

