Forex API Wrong Values in Response

Solved! Go to solution
NitinN
Regular Visitor

Forex API Wrong Values in Response

Hi folks,

 

I was just trying out the Forex API and I reached the Sandbox test  section in the documentation. I tried a very basic JSON payload request to convert USD to INR:

{
"destinationCurrencyCode": "INR",
"sourceAmount": "1",
"sourceCurrencyCode": "USD"

}

and to my surprise I got the following response:

{
"conversionRate": "64.44000",
"destinationAmount": "64.44"
}

 

Well the current prevailing rate is hovering around 1USD = 74 INR

 

So I didn't go ahead to ADD API as the data didn't seem convincing.

 

Did I do anything wrong in my request?

 

Thanks in advance!

 

- Nitin

 

Lets make a difference!
1 REPLY 1
API_Managers
Visa Developer Support Specialist

Re: Forex API Wrong Values in Response

Hey @NitinN,

 

I'm happy to answer this question. Foreign Exchange Rates API in Sandbox provides simulated data and it doesn't provide real-time data. In production, you'll be able to work with real data. The rate you get in production will be correct. Please let us know if we can help answer any other questions you have.




Thanks,

Tee



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.