Use Foreing Exchange Rates API

jibanezg
Regular Visitor

Use Foreing Exchange Rates API

We are making use of the Foreing Exchange Rates API as we thought it behaved just like the functionality it offers from its website at "https://www.visaeurope.com/making-payments/exchange-rates".

The fact is that we are getting very strange results.

If my target currency is EUR and USD origin, the result obtained in the service query is not real. Please tell us how to use your API correctly.

 

Request
{
"destinationCurrencyCode": "EUR",
"markUpRate": "3",
"sourceAmount": "100",
"sourceCurrencyCode": "USD"
}

Response

{
"conversionRate": "0.7701",
"destinationAmount": "74.69",
"markUpRateApplied": "3.0",
"originalDestnAmtBeforeMarkUp": "77.01"
}

 

It has no logic result.

 

Thanks

2 REPLIES 2
jibanezg
Regular Visitor

Re: Use Foreing Exchange Rates API

Is it possible that I always return those values because we are in Sandbox?

 

I hope when promo works

LakshanFernando
Community Moderator

Re: Use Foreing Exchange Rates API

Hi,

Your understanding is correct that Sandbox does not output real/upto date exchange rates.

In production environment you can expect up to date actual and correct rates.

 

Best

Lakshan