This operation is to get the VISA treasury FX rates for a given “from” and “to” currency pair.
curl --request POST \
--url https://integration-api-cat2./%7B{environment}%7D.ext.%7B{realm}%7D.cia.enfuce.com/exchange-rate/v1/visa/fx \
--header 'Content-Type: application/json' \
--data '{
"fromAmount": 1,
"fromCurrency": "EUR",
"toCurrency": "EUR"
}'
{
"fromAmount": 123,
"fromCurrency": "EUR",
"toCurrency": "EUR",
"toAmountWithVisaRate": 123,
"toAmountWithAdditionalFee": 123,
"fxRateVisa": 123,
"fxRateWithAdditionalFee": 123,
"visaRateLastUpdatedTimestamp": "2023-11-07T05:31:56Z",
"benchmarks": [
{
"benchmarkSystem": "<string>",
"toAmountWithBenchmarkRate": 123,
"markupWithAdditionalFee": 123,
"benchmarkFxRate": 123,
"benchmarkRateLastUpdatedTimestamp": "2023-11-07T05:31:56Z"
}
]
}
The audit user to log the request
The body is of type object
.
The response is of type object
.
Was this page helpful?
curl --request POST \
--url https://integration-api-cat2./%7B{environment}%7D.ext.%7B{realm}%7D.cia.enfuce.com/exchange-rate/v1/visa/fx \
--header 'Content-Type: application/json' \
--data '{
"fromAmount": 1,
"fromCurrency": "EUR",
"toCurrency": "EUR"
}'
{
"fromAmount": 123,
"fromCurrency": "EUR",
"toCurrency": "EUR",
"toAmountWithVisaRate": 123,
"toAmountWithAdditionalFee": 123,
"fxRateVisa": 123,
"fxRateWithAdditionalFee": 123,
"visaRateLastUpdatedTimestamp": "2023-11-07T05:31:56Z",
"benchmarks": [
{
"benchmarkSystem": "<string>",
"toAmountWithBenchmarkRate": 123,
"markupWithAdditionalFee": 123,
"benchmarkFxRate": 123,
"benchmarkRateLastUpdatedTimestamp": "2023-11-07T05:31:56Z"
}
]
}