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
Solved! Go to Solution
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.
got the exact issue all credentials are correct there is an issue from iis server setting that i did for resolving this issue.
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
This Problem Appear when i Using Java code and java keytools