Visa Developer Community

PullFundsTransactions POST [Expected input credentials were not present]

I am using the exact same request is there on API reference Page. https://developer.visa.com/capabilities/visa_direct/reference

 

POST URL: https://sandbox.api.visa.com/visadirect/fundstransfer/v1/pullfundstransactions

 

Header :

Accept: application/json,application/octet-stream

Authorization: {base64 encoded userid:password}

 

In place of 'base64 encoded userid:password' i am using 'Authorization' generated in raw request during connection to Two-Way SSL. Right now i have juts tested the hello world thing. It works just fine . so i dont think there is any problem in mu username or password or my certificates. I think i need help regarding the correct input format of Authorizaion in the request header.

 

BODY: 

{

  • "acquirerCountryCode": "840",
  • "acquiringBin": "408999",
  • "amount": "124.02",
  • "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": "2019-08-11T20:06:52",
  • "retrievalReferenceNumber": "330000550000",
  • "senderCardExpiryDate": "2015-10",
  • "senderCurrencyCode": "USD",
  • "senderPrimaryAccountNumber": "4895142232120006",
  • "surcharge": "11.99",
  • "systemsTraceAuditNumber": "451001",
  • "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"
    }

}

 

Response :

 

{"responseStatus": {
"status": 401,
"code": "9123",
"severity": "ERROR",
"message": "Expected input credentials were not present",
"info": ""
}}

 

 

Thank You.

 

 

7 REPLIES 7
Visa Dev Moderator
Visa Dev Moderator

Re: PullFundsTransactions POST [Expected input credentials were not present]

Hi @malviyaash18,

 

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/vdpguide#twoway_ssl_mutual_authentication    

          

If you continue to get this issue, please provide us screenshots of your SoapUI setup so we can further investigate the issue.

 

Please also refer to this community forum post link for additional troubleshooting steps that we have provided: https://community.developer.visa.com/t5/General/Always-getting-quot-Expected-input-credential-was-no...

 


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: PullFundsTransactions POST [Expected input credentials were not present]

Screenshot (8).png

Tags (1)

Re: PullFundsTransactions POST [Expected input credentials were not present]

Capture.PNGCa1pture.PNG

Visa Dev Moderator
Visa Dev Moderator

Re: PullFundsTransactions POST [Expected input credentials were not present]

Hi @malviyaash18,

 

Thanks for sharing the screenshots, it's very helpful. The SoapUI setup looks correct. The Funds Transfer API has an option to turn on MLE. Can you please confirm whether you have MLE turn on or off for this API? Also, when you first created your project, did you upload your own CSR or did you have it auto-generated. Thanks.


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

Re: PullFundsTransactions POST [Expected input credentials were not present]

MLE is turned on. I have use the auto-generated CSR.

Visa Dev Moderator
Visa Dev Moderator

Re: PullFundsTransactions POST [Expected input credentials were not present]

Hi @malviyaash18,

 

Ok, if MLE for the Funds Transfer API is turned on, then you'll need to encrypt the payload with your MLE credentials, otherwise you will get the token validation error.


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: PullFundsTransactions POST [Expected input credentials were not present]

Okay Thanks a lot.