Visa Developer Community

Highlighted

VISA Travel Predict API Inaccessible from Postman and Python

Hello,

 

I am trying to access the VISA Travel Predict API – (https://developer.visa.com/capabilities/visa-travel-predict) for one of our Projects. I have already set up the Two-Way SSL for accessing the API by following the instructions on - https://developer.visa.com/pages/working-with-visa-apis/two-way-ssl.

 

I created a helloWorld endpoint as explained in the tutorial and I am getting the expected output.

However, I am not able to access the scorerange endpoint of the API through Postman and neither from a script that I have written. I have added the private key and certificate in postman and I am using the basic authentication with the username and password that are available in the app.

 

I have also written a similar Python code as was mentioned in the tutorial. But even that does not work. Below is the error.

 

requests.exceptions.ConnectionError: ('Connection aborted.', PermissionError(13, 'Permission denied'))

HelloWorld_Success.jpgPostman_Error.jpg

Could you please let me know where I am making a mistake?

1 REPLY 1
Highlighted
Visa Dev Moderator
Visa Dev Moderator

Re: VISA Travel Predict API Inaccessible from Postman and Python

Hi @animeshpaul91,

 

The error 400 - 9124 usually means that the client certificates are not sent. Please check the following in Postman:

Settings => Certificates: add your client certificates

Settings => General Tab: SSL Certificate Verification is ON

 

Please refer to the below thread for details on Postman setup. All details including screenshot is posted here.

https://community.developer.visa.com/t5/Use-Cases/APIs-for-payment-gateway-9124-error/m-p/10448#M113

 

Hope this helps, please reach out if you need further assistance.


Best,
Stacey

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