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.

Currency Exchange Quote

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

This endpoint allows you to get FX quotes.

Path Parameters

Name
Type
Description

type*

string

Mandatory. Add the transaction type: payin or payout

Query Parameters

Name
Type
Description

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

Name
Type
Description

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

Was this helpful?