Quote

Allows to get an exchange quote and a token that can be used for a subsequent transaction of the same type.

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.

Bulk 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: currencyExchange

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

quoteAccountNumber*

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

{
  "exchangeRateToken": "af5606b0-1ce7-48f8-ad8a-734934c601ec",
  "transactionType": "CurrencyExchange",
  "accountNumber": "111.111.11111111",
  "sourceCurrency": "EUR",
  "creationDate": "2023-03-22T13:40:09.9995054+00:00",
  "expirationDate": "2023-03-22T13:41:09.9995054+00:00",
  "quotes": [
    {
      "paymentMethodCode": null,
      "rate": 0.862450,
      "quoteCurrency": "USD"
    }
  ]
}

Example

curl --location '{{api_environment_url}/api/fx/currency-exchange/currencyExchange?sourceCurrency=EUR&quoteCurrency=USD&accountNumber=111.111.11111111&quoteAccountNumber=000.000.00000000' \
--header 'Authorization: Bearer {{token}}'

Last updated