I'm trying to get started with the Visa Card Eligibility Service API. I'm trying to register the iFRAME: https://developer.visa.com/capabilities/vces/reference#vces__visa_card_eligibility_iframe__v1__regis... with the following CURL request:
curl -vvv -X POST -H 'Accept: application/json' -u user_id:password \ --data '{"vendorUniqueId": "<vendor_id>", "correlationId": "dfsdfasdsdf", "requestTimeStamp": "05/12/2018 12:03:0 AM", "extendedData": ""}' https://sandbox.api.visa.com/visacardeligibilityservices/v1/registeriframe/token
With the above I get the following response:
{"responseStatus":{"code":"9124","severity":"ERROR","message":"Expected input credential was not present","info":"","status":400}}⏎
Why is this happening?
Thanks
Solved! Go to Solution
Hi @dpatterson2008,
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. This can usually occur when your certificates are not sent.
• Keystore is not setup. Certificates are not in the keystore
○ For java keystore (jks) run keytool command and verify all the certificates have been imported on the keystore
○ keytool -list -v -keystore keystore.jks
○ For a p12 execute the following openssl command:
○ openssl pkcs12 -info -in keyStore.p12
• In SOAPUI check File->Settings->SSL Settings and make sure the KeyStore and KeyStore Password are populated in Soap UI
• Check SSL Info Tab in SOAP UI Response and verify you have a Local Certificate 1 , Local Certificate 2 followed by Peer Certificate 1 and Peer Certificate 2
In addition to that, 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 (refer to screenshot below).
· Check request header and make sure Authorization: Basic has been populated with the base64 encoded username and password (refer to screenshot below):
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 the issue persists, please provide more information on the error you have received for further investigation. Please send the response request of the error received, screenshot and the Correlation ID. Please let us know if you have other questions.
Below are the steps to get the Correlation ID using a Google Chrome browser.
1>Open Chrome menu.
2>Click on More tools then Developer tools.
3>Check the box to Preserve Log for the Network Tab.
4>Then try to click on the add API link.
5>You can find the Correlation ID in the network log for add API call.
Hi Diana, i have the same problem. I tried running on SOAPUI Postman and I could not.
}
"responseStatus": {
"code": "9124",
"severity": "ERROR",
"info": "",
"status": 400,
"message": "Expected input credential was not present"
}
}
Hi @marcelobastos,
Can you please confirm if you've followed the steps I provided above on how to resolve this problem? If you've tried the steps above and if the issue persists, please send the response request of the error received, screenshot of the error and the Correlation ID.
Below are the steps to get the Correlation ID using a Google Chrome browser.
1>Open Chrome menu.
2>Click on More tools then Developer tools.
3>Check the box to Preserve Log for the Network Tab.
4>Then try to click on the add API link.
5>You can find the Correlation ID in the network log for add API call.
Hi @marcelobastos,
Thanks for your patience. For Postman, have you setup the certificates as shown in the attached screenshot?
Hi @marcelobastos,
I will take a look and get back to you soon.
Hello @marcelobastos,
You are calling Redeem API with a request payload from validate API. Please refer to the below link to get the appropriate request body for Redeem API Request and try again.
Please see below screen shot.