Comment on page
Currency Exchange Quote
Get a response with the FX rate and the time duration plus a token. You will be able to send it in the payment request in order to trace and assure the FX rate.
The FX rate is updated every 60 seconds by default. If you need a different configuration, please request a custom frecuency to our team.
The exchange rate token can be configured to have a lifetime of between 1 minute and up to 1 day. The expiration is to request a transaction within that time range, once the transaction has been created with the exchange rate token, the quoted FX will appear in the payment and also the payments will have their own, unrelated expiration time with the expiration of the exchange rate token.
get
{{api_environment_url}}
/api/fx/currency-exchange/:type
Currency Exchange Quote
Request
Status Ok
curl --location \
--request GET '{{api_environment_url}}/api/fx/currency-exchange/payin?sourceCurrency=USD"eCurrency=ARS&accountNumber=032.840.00000001' \
--header 'Authorization: Bearer {{token}}'
{
"exchangeRateToken": "ba60cbfe-5faa-41d5-991e-5ffe5e63e43c",
"transactionType": "PayIn",
"accountNumber": "074.840.00000001",
"sourceCurrency": "USD",
"creationDate": "2022-04-07T18:16:43.6498861+00:00",
"expirationDate": "2022-04-07T18:46:43.6498861+00:00",
"quotes": [
{
"paymentMethodCode": "1314",
"rate": 4.8191,
"quoteCurrency": "BRL"
}
]
}
Request
Status Ok
curl --location \
--request GET '{{api_environment_url}}/api/fx/currency-exchange/payout?sourceCurrency=USD"eCurrency=ARS&accountNumber=032.840.00000017' \
--header 'Authorization: Bearer {{token}}'
{
"exchangeRateToken": "14b23df8-f87f-4495-b6ee-7db71a17bfcd",
"transactionType": "PayOut",
"accountNumber": "032.840.00000017",
"sourceCurrency": "USD",
"creationDate": "2023-01-31T13:48:17.3005611+00:00",
"expirationDate": "2023-01-31T16:00:17.3005611+00:00",
"quotes": [
{
"paymentMethodCode": "0010",
"rate": 178.9960128,
"quoteCurrency": "ARS"
}
]
}
Last modified 5mo ago