Re: 3 requests - 3 differents responses

devsmarters
Helper

3 requests - 3 differents responses

I completed Started Guide and got all certified to have the correct API return:
{"timestamp": "2018-03-19T20:51:08", "message": "helloworld"}

But when I try to access the 2 apis I requested, I have the following returns:


https://sandbox.api.visa.com/vmorc/offers/v1/all
{"Errors": "Unable to fulfil request"}


https://sandbox.api.visa.com/globalatmlocator/v1/localatms/atmsinquiry
{"responseStatus": {"code": "9004", "severity": "ERROR", "info": "", "status": 405, "message": "Method Not Allowed"}}


I need a lot of quick help!!!

3 REPLIES 3
API_Products
Visa Developer Support Specialist

Re: 3 requests - 3 differents responses

Hello,

 

Thanks for helping the Visa Developer Community every time you post questions and solutions to this forum! 

 

The 'ERROR 400 - 9124 Expected input credential was not present' error usually occurs when the credentials used are invalid. Can you please confirm if you are using valid credentials. Please double check the SSL settings and make sure the keystore has all the necessary certificates imported.

 

Please follow the getting started guide and read the Two-Way SSL (Mutual Authentication) guide: https://developer.visa.com/vdpguide#twoway_ssl_mutual_authentication 

 

If you are using SOAP UI, please make sure to select "Authenticate pre-emptively" under "Auth (Basic)" tab. Also, please double check in the request raw tab that the "Authentication Basic" is present (please refer to picture below). 

 

Troubleshooting 9124 ss.png

 

For the Visa Global ATM Locator testing, have you tried using API Explorer to start testing code? API Explorer lets you choose the Product API, Endpoint and Method to see the Request and Response. Here is the link to API Explorer - https://developer.visa.com/apiexplorer

 

We also have Sample Code for you to use as well. Please navigate to the link below for Sample Code.

 

Getting Started with Visa Developer > Sample Code For Project

https://developer.visa.com/vdpguide#sample_code_for_project 

 

 

Thank you,

Diana




Thanks,

Diana H.



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

rramones
Regular Visitor

Re: 3 requests - 3 differents responses

Hi Diana, what if the credentials work for hello world but not for the real APIs. Isn't hello world meant to test the credentials?

I am using SOAPUI, perhpaps i am getting the header part wrong. I think others are getting this problem too can you show screenshots of how you can work a twoSSL API?

 

1. I tested credentials with hello world

2. I started a new REST project.

3. I entered credentials. and selected pre-emptive option.

4. I added the header Accept: application/json Authorization: {base64 encoded userid:password} as both name and value.

5. i clicked go and then received a 9004 error.

 

It would be awesome if you could show me how i'm being stupid!

 

Screen Shot 2019-06-07 at 09.18.02.png

API_Products
Visa Developer Support Specialist

Re: 3 requests - 3 differents responses

Hi @rramones,

 

To further investigate, please provide the following information:

1. End Point
2. Request Header
3. Request Body
4. Response Header (include the x-correlation-id)
5. Response Body

Using SoapUI, you can find the x-correlation-id in the Raw Tab of the response header.

 




Thanks,

Diana H.



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