Re: Enhanced Foreign Exchange API returns error 'The remote server returned an error: (403) Forbidde

Solved! Go to solution
bistra
Regular Visitor

Enhanced Foreign Exchange API returns error 'The remote server returned an error: (403) Forbidden.'

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

5 REPLIES 5
API_Products
Visa Developer Support Specialist

Re: Enhanced Foreign Exchange API returns error 'The remote server returned an error: (403) Forbidde

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:

  • You are using a project and the credential for the project which includes the API being accessed.
  • Create a project and receive sandbox credentials for the API’s being called.
  • Add the API being called (if not already included) to the project with credentials that are being used.

 

 




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.

bistra
Regular Visitor

Re: Enhanced Foreign Exchange API returns error 'The remote server returned an error: (403) Forbidde

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

ricardo_visa
Community Scholar

Re: Enhanced Foreign Exchange API returns error 'The remote server returned an error: (403) Forbidde

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...




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

Re: Enhanced Foreign Exchange API returns error 'The remote server returned an error: (403) Forbidde

Hi @ricardo_visa ,

Hope you are well and healthy!

 

Thank you very much for the information!

 

Have a nice day,

Bistra

ricardo_visa
Community Scholar

Re: Enhanced Foreign Exchange API returns error 'The remote server returned an error: (403) Forbidde

Happy to help! Let me know if you have any additional questions 🙂 




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