Documentation V3
Search…
⌃K

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 set to expire from 1 minute up to 60 minutes. The expiration operates to request a payins within that time range, once the payin was created with the Exchange Rate Token then the quoted FX will appear in the payin and also the payins will have it's own expiration time, not related with the Exchange Rate Token expiration.
It is important to you verify that you have the authentication token. However, if you do not have the auth token yet, you can get it from here
get
https://api.stage.localpayment.com
/api/fx/currency-exchange/:type
Currency Exange Quote

Example: Currency Exchange Quote for PAYINS

cURL request
Example response
curl --location --request GET 'https://api.stage.localpayment.com/api/fx/currency-exchange/payin?sourceCurrency=USD&quoteCurrency=ARS&accountNumber=032.840.00000001' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNjQ5MzU1NjMzLCJqdGkiOiJlZWUyZDIwODJkNzY0ZTEwOWJmNDQzNDU5ZWZkZDE0OSIsInVzZXJfaWQiOjMwLCJzdXBlcnVzZXIiOnRydWUsImlzX3N0YWZmIjpmYWxzZSwicm9sZXMiOlsiQUxMIl0sImNvdW50cmllcyI6WyJBTEwiXSwiY29tcGFueSI6IjAwMDEiLCJjbGllbnRfY29kZSI6IjAwMDEifQ.mHTZa5fMIi13GFoWJdoq7m87DtnY5VMopUUXVPjZriE'
{
"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"
}
]
}

Example: Currency Exchange Quote for PAYINS

cURL request
Example response
curl --location --request GET 'https://api.stage.localpayment.com/api/fx/currency-exchange/payout?sourceCurrency=USD&quoteCurrency=ARS&accountNumber=032.840.00000017' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNjc1MTczMDI0LCJqdGkiOiIzZTVmOGEyNjAxZDM0ZmI1YWM4NzA2NmE1YmRiOGEzMSIsInVzZXJfaWQiOjM4MSwic3VwZXJ1c2VyIjp0cnVlLCJpc19zdGFmZiI6ZmFsc2UsInJvbGVzIjpbIkFMTCJdLCJjb3VudHJpZXMiOlsiQUxMIl0sImNvbXBhbnkiOiIwMDgwIiwiY2xpZW50X2NvZGUiOiIwMDgwIn0.G3bs3cwUOs5PqZumc8qzbgk5Cmi3rrdJKGXlGRLhVvo'
{
"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"
}
]
}