Hello,
I am trying to connect to Enhanced Foreign Exchange API, but received an error:
'The remote server returned an error: (403) Forbidden.'
I have included Foreign Exchange Rates API to my project on the Visa dashboard and successfully connected to the rates method from Foreign Exchange Rates API
But receive (403) Forbidden for the both methods from the Extended FX API:
https://sandbox.api.visa.com/fx/rates?... (GET)
https://sandbox.api.visa.com/fx/rates/markup (POST)
Please advise me how to resolve this issue?
Have a nice day,
Bistra
Solved! Go to Solution
Hey @bistra,
Please refer to the Visa Developer Error Codes page for the cause and resolution of the error here - https://developer.visa.com/pages/visa-developer-error-codes
To resolve the issue, I've copied and pasted the cause and resolution for you below.
HTTP STATUS | HTTP CODE | CAUSE/RESOLUTION |
FORBIDDEN |
403 |
The 403 (Forbidden) HTTP Status code indicates that this project does not have permission to access the requested resource. This can happen if you are trying to invoke API request for a resource that is not part of your project e.g. if you have created a project with Visa Direct Product but are trying to use the same credentials to access Visa Consumer Transaction Controls. Check for the following:
|
Hi Diana,
What API should be added in case I want to access Enhanced Foreign Exchange Rate API?
I have included Foreign Exchange Rate API to my project on the Visa sandbox as described on the Visa help page
https://developer.visa.com/capabilities/foreign_exchange
Because it includes both:
-Foreign Exchange Rates API
-Enhanced Foreign Exchange API
Thanks & Regards,
Bistra
Hi @bistra - that specific API is restricted. But to get access email developer@visa.com with the request for that API and they'll get on it.
If you don't hear any response, feel free to let me know and I will escalate.
Also, refer to this tutorial which walks you through those steps: https://community.developer.visa.com/t5/Developer-Tools/Tutorial-How-to-Connect-to-the-Visa-Enhanced...
Hi @ricardo_visa ,
Hope you are well and healthy!
Thank you very much for the information!
Have a nice day,
Bistra
Happy to help! Let me know if you have any additional questions 🙂