Getting Started - Visa Card Eligibility Service - Error Expected input credential was not present

Solved! Go to solution
dpatterson2008
Regular Visitor

Getting Started - Visa Card Eligibility Service - Error Expected input credential was not present

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

20 REPLIES 20
API_Managers
Visa Developer Support Specialist

Re: Getting Started - Visa Card Eligibility Service - Error Expected input credential was not presen

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

authenticate pre-emptively.jpg


· Check request header and make sure Authorization: Basic has been populated with the base64 encoded username and password (refer to screenshot below):

check authorization.jpg

 

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.

 




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.

marcelobastos
Regular Contributor

Re: Getting Started - Visa Card Eligibility Service - Error Expected input credential was not presen

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"
}

 


}

API_Managers
Visa Developer Support Specialist

Re: Getting Started - Visa Card Eligibility Service - Error Expected input credential was not presen

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.

 

 

 




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.

marcelobastos
Regular Contributor

Re: Getting Started - Visa Card Eligibility Service - Error Expected input credential was not presen

Hi @Diana

 

In attachmente follow my print screen with the correlation ID line.

API_Managers
Visa Developer Support Specialist

Re: Getting Started - Visa Card Eligibility Service - Error Expected input credential was not presen

Hi @marcelobastos,

 

Thanks for your patience. For Postman, have you setup the certificates as shown in the attached screenshot?

postman_cert_setup.png




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.

marcelobastos
Regular Contributor

Re: Getting Started - Visa Card Eligibility Service - Error Expected input credential was not presen

@Diana

 

So i still ha a problem. Now i'm sending a new printscreen for you. 1. Code on post. 2. Settinsgs post according you print. 

Regrds

Acioli

API_Managers
Visa Developer Support Specialist

Re: Getting Started - Visa Card Eligibility Service - Error Expected input credential was not presen

Hi @marcelobastos,

 

I  will take a look and get back to you soon.

 




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.

API_Managers
Visa Developer Support Specialist

Re: Getting Started - Visa Card Eligibility Service - Error Expected input credential was not presen

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.

 

https://developer.visa.com/capabilities/vces/reference#vces__visa_card_eligibility_service__v1__rede...

 

Please see below screen shot.

vces.png




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.

marcelobastos
Regular Contributor

Re: Getting Started - Visa Card Eligibility Service - Error Expected input credential was not presen

Dear Diana,

 

I still have a post config problem. In attachment follow my print screen for your analysis. I'd like to know where i put my code requests! Can you help-me?