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.

Currency Exchange Quote

GET {{api_environment_url}}/api/fx/currency-exchange/:type

This endpoint allows you to get FX quotes.

Path Parameters

NameTypeDescription

type*

string

Mandatory. Add the transaction type: payin or payout

Query Parameters

NameTypeDescription

sourceCurrency*

string

Mandatory. The currency that you use to fund a currency conversion

quoteCurrency*

string

Mandatory. The quote currency which is the second currency appearing in a currency pair quotation

accountNumber*

string

Mandatory. The Localpayment account which you are working with

Headers

NameTypeDescription

Authorization*

string

Mandatory. Bearer JWT token in format Bearer eyJ0... . For more information about authentication, please refer to Authentication

[
    {
        "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c",
        "transactionType": "payin",
        "accountNumber": "032.840.00000001",
        "sourceCurrency": "USD",
        "createdOn": "2021-06-01T13:48:00.441+00:00",
        "expiredOn": "2021-06-01T13:49:00.441+00:00",
        "quotes": [
            {
                "paymentMethodCode": "1004",
                "rate": 94.721048,
                "quoteCurrency": "ARS"
            },
            {
                "paymentMethodCode": "1008",
                "rate": 94.721048,
                "quoteCurrency": "ARS"
            }
        ]
    }
]      

Example: Currency Exchange Quote for PAYINS

curl --location  \
--request GET '{{api_environment_url}}/api/fx/currency-exchange/payin?sourceCurrency=USD&quoteCurrency=ARS&accountNumber=032.840.00000001' \
--header 'Authorization: Bearer {{token}}'

Example: Currency Exchange Quote for PAYOUTS

curl --location  \
--request GET '{{api_environment_url}}/api/fx/currency-exchange/payout?sourceCurrency=USD&quoteCurrency=ARS&accountNumber=032.840.00000017' \
--header 'Authorization: Bearer {{token}}'

Last updated