Re: gettingresponse code message- "message": "Expected input credential was not prese

Solved! Go to solution

gettingresponse code message- "message": "Expected input credential was not present",

i am using https://sandbox.api.visa.com/visadirect/fundstransfer/v1/pullfundstransactions api .my request header and body are:-

Authorization: Basic SjM1TFY1WjQ5VjAyRkw4T1EzQ0YyMWE4T2d0NVF1dS05Q05HOGM2S285bzFSM0hadzo0SUlDUUk2amhEMURBdzJuNjJmcTRQNWV1QktRWGNHSThZWUZkNEg=
ex-correlation-id: XIHS5RGMNE7A_SC
Content-Type: application/json
Accept: application/json
Host: sandbox.api.visa.com

BODY-{"acquirerCountryCode":"840","acquiringBin":"408999","amount":"120","businessApplicationId":"AA","cardAcceptor":{"address":{"country":"USA","county":"081","state":"CA","zipCode":"94404"},"idCode":"ABCD1234ABCD123","name":"Visa Inc. USA-Foster City","terminalId":"ABCD1234"},"cavv":"0700100038238906000013405823891061668252","foreignExchangeFeeTransaction":"11.99","localTransactionDateTime":"2020-06-24T11:38:21","retrievalReferenceNumber":"330000550000","senderCardExpiryDate":"2025-01","senderCurrencyCode":"USD","senderPrimaryAccountNumber":"4895142232120006","surcharge":"11.99","systemsTraceAuditNumber":"838185","nationalReimbursementFee":"11.22","cpsAuthorizationCharacteristicsIndicator":"Y","addressVerificationData":{"street":"XYZ St","postalCode":"12345"},"settlementServiceIndicator":"9","colombiaNationalServiceData":{"countryCodeNationalService":"170","nationalReimbursementFee":"20.00","nationalNetMiscAmountType":"A","nationalNetReimbursementFeeBaseAmount":"20.00","nationalNetMiscAmount":"10.00","addValueTaxReturn":"10.00","taxAmountConsumption":"10.00","addValueTaxAmount":"10.00","costTransactionIndicator":"0","emvTransactionIndicator":"1","nationalChargebackReason":"11"},"riskAssessmentData":{"delegatedAuthenticationIndicator":true,"lowValueExemptionIndicator":true,"traExemptionIndicator":true,"trustedMerchantExemptionIndicator":true,"scpExemptionIndicator":true},"visaMerchantIdentifier":"73625198"}

while hitting this request i get an responsestatus as 

{
    "responseStatus": {
        "status"400,
        "code""9124",
        "severity""ERROR",
        "message""Expected input credential was not present",
        "info"""
    }
}
please help me resolving this issue
5 REPLIES 5
SLi
Visa Developer Support Specialist
Visa Developer Support Specialist

Re: gettingresponse code message- "message": "Expected input credential was not prese

Hi @granular-smart,

 

The error "Expected input credential was not present" usually occurs when the credentials used are invalid. Can you please confirm if you are using valid credentials?

 

Visa Direct uses Two Way SSL for authentication. Please test the connectivity and credentials by following the Two-Way SSL (Mutual Authentication) guide: https://developer.visa.com/pages/working-with-visa-apis/two-way-ssl 

 

I was able to get successful results using the below working payload:

 

End Point https://sandbox.api.visa.com/visadirect/fundstransfer/v1/pullfundstransactions
Method POST
Request
{
"surcharge": "11.99",
"amount": "100",
"localTransactionDateTime": "2020-06-24T11:07:21",
"cpsAuthorizationCharacteristicsIndicator": "Y",
"colombiaNationalServiceData": {
"addValueTaxReturn": "10.00",
"taxAmountConsumption": "10.00",
"nationalNetReimbursementFeeBaseAmount": "20.00",
"addValueTaxAmount": "10.00",
"nationalNetMiscAmount": "10.00",
"countryCodeNationalService": "170",
"nationalChargebackReason": "11",
"emvTransactionIndicator": "1",
"nationalNetMiscAmountType": "A",
"nationalReimbursementFee": "20.00",
"costTransactionIndicator": "0"
},
"cardAcceptor": {
"address": {
"country": "USA",
"zipCode": "94404",
"county": "081",
"state": "CA"
},
"idCode": "ABCD1234ABCD123",
"name": "Visa Inc. USA-Foster City",
"terminalId": "ABCD1234"
},
"acquirerCountryCode": "840",
"acquiringBin": "408999",
"retrievalReferenceNumber": "330000550000",
"senderCurrencyCode": "USD",
"addressVerificationData": {
"street": "XYZ St",
"postalCode": "12345"
},
"cavv": "0700100038238906000013405823891061668252",
"systemsTraceAuditNumber": "451001",
"businessApplicationId": "AA",
"senderPrimaryAccountNumber": "4895142232120006",
"settlementServiceIndicator": "9",
"foreignExchangeFeeTransaction": "11.99",
"senderCardExpiryDate": "2020-03",
"nationalReimbursementFee": "11.22"
}

 

Response
{
"transmissionDateTime": "2020-06-24T17:24:39.000Z",
"approvalCode": "98765X",
"cavvResultCode": "8",
"settlementFlags": {
"settlementServiceFlag": "9",
"givUpdatedFlag": "false",
"settlementResponsibilityFlag": "true",
"givPreviouslyUpdatedFlag": "true"
},
"cpsAuthorizationCharacteristicsIndicator": "3333",
"transactionIdentifier": 159238227176517,
"actionCode": "00",
"responseCode": "5"
}

 

Hope this helps, please let me know if you have any other questions.

 


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.

Re: gettingresponse code message- "message": "Expected input credential was not prese

could you please explain me the fields that are used fund transfer and refund api .what are these fields means from where i get this fields value in terms of sender user and payee user with one example for whole process i.e from pull to push to refund api.
1)https://sandbox.api.visa.com/visadirect/fundstransfer/v1/pullfundstransactions
a)"cardAcceptor": {
"address": {
"country": "USA",
"county": "081",
"state": "CA",
"zipCode": "94404"
},
"idCode": "ABCD1234ABCD123",
"name": "Visa Inc. USA-Foster City",
"terminalId": "ABCD1234"
},
b)cavv
c)retrievalReferenceNumber
d)visaMerchantIdentifier
e)"addressVerificationData": {
"street": "XYZ St",
"postalCode": "12345"
},
e)cpsAuthorizationCharacteristicsIndicator
f)acquirerCountryCode
g)acquiringBin
2)https://sandbox.api.visa.com/visadirect/fundstransfer/v1/pushfundstransactiona)"cardAcceptor": {
"address": {
"country": "USA",
"county": "081",
"state": "CA",
"zipCode": "94404"
},
"idCode": "ABCD1234ABCD123",
"name": "Visa Inc. USA-Foster City",
"terminalId": "ABCD1234"
},
b)cavv
c)retrievalReferenceNumber
d)visaMerchantIdentifier
e)"addressVerificationData": {
"street": "XYZ St",
"postalCode": "12345"
},
e)cpsAuthorizationCharacteristicsIndicator
f)acquirerCountryCode
g)acquiringBin
h) "settlementServiceIndicator": "9"
3)https://sandbox.api.visa.com/visadirect/mvisa/v1/mr
a)"merchantCategoryCode": "6012",
b)"acquirerCountryCode": "101",
"transactionFeeAmt": "2.00",
"acquiringBin": "830",
"amount": 123.45,
"cardAcceptor": {
"address": {
"city": "Test",
"country": "USA",
"county": "San Mateo",
"state": "CA",
"zipCode": "94404"
},
"idCode": "CA-IDCode-77765",
"name": "Visa Inc. USA-Foster City",
"terminalId": "TID-9999"
},
c)"merchantVerificationValue": {
"mvvVisaAssigned": "41394644363445313243",
"mvvAcquirerAssigned": "41394644363445313243"
},
d)recipientPrimaryAccountNumber-to whom merchant refund money?
e)systemsTraceAuditNumber
f)retrievalReferenceNumber-which retrievalreference is used here -retrievalreference provided during AFT i.e pull transaction from whom the amount is credited to merchant?
g)feeProgramIndicator
h)transactionIdentifier -which transaction identifier used here that sender get as response of pullfundtransaction api?

Re: gettingresponse code message- "message": "Expected input credential was not prese

got the exact issue all credentials are correct there is an issue from iis server setting that i did for resolving this issue.

https://stackoverflow.com/questions/17840825/cryptographicexception-was-unhandled-system-cannot-find...

SLi
Visa Developer Support Specialist
Visa Developer Support Specialist

Re: gettingresponse code message- "message": "Expected input credential was not prese

Glad to hear that you have resolved the issue and thanks for sharing the link to the IIS setting.

Please navigate to the below Visa Direct API reference page for details on each attribute parameter and value:

https://developer.visa.com/capabilities/visa_direct/reference

 

 


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

Re: gettingresponse code message- "message": "Expected input credential was not prese

This Problem Appear when i Using Java code and java keytools 

MahmoudOmar