400 BAD REQUEST [message: "Expected input credential was not present"]

nikhilp
Helper

400 BAD REQUEST [message: "Expected input credential was not present"]

Hi, someone can help me with transaction query API?

Thx in advance.

 

Mvisa_Issue.png

 

 

 

 

 

 

 

 

RESPONSE:

{"responseStatus": {
"severity": "ERROR",
"code": "9124",
"message": "Expected input credential was not present",
"status": 400,
"info": ""
}}

RESPONSE HEADER:
Status Code: 400 Bad Request
Server : nginx
Content-Type : application/json;charset=UTF-8
Content-Length : 130
X-SERVED-BY : l73c016
X-CORRELATION-ID : 1582720606_502_1339918320_l73c016_VDP_WS
x-vdp-normalized-url : /visadirect/v1/transactionquery
X-APP-STATUS : 400
x-vdp-authn-api-visa-id : QURY.100
X-Frame-Options : SAMEORIGIN
X-XSS-Protection : 1; mode=block
X-Content-Type-Options : nosniff
Strict-Transport-Security : max-age=2592000;includeSubdomains
Cache-Control : no-cache, no-store, must-revalidate
Pragma : no-cache
Expires : -1
Date : Wed, 26 Feb 2020 12:36:46 GMT
Connection : keep-alive

 

 

2 REPLIES 2
API_Managers
Visa Developer Support Specialist

Re: 400 BAD REQUEST [message: "Expected input credential was not present"]

Hey @nikhilp

 

I'm happy to help you resolve the issue. Can you please make sure that you are using the correct Mutual SSL Certificates? For your Public Key, please use the cert.pem certificate. I ran a test today on VDC Playground and I received a successful test result. I have included my endpoint, response, response header and screenshot below for you to use as a reference.

If you are not behind a VPN, then you do not have to enable the Proxy.

 

You can find the guide on Getting Started with VDC Playground from this blog post here - https://developer.visa.com/pages/visa-developer-center-playground

 

Method: Get
EndPoint: https://sandbox.api.visa.com/visadirect/v1/transactionquery?acquiringBIN=408999&stan=351480&rrn=2219...

 

 

Response:

[{"accountNumberMasked":"495703xxxxxx0462","acquiringBin":"408999","actionCode":"00","amount":"1","approvalCode":"21324K","cardAcceptor.idCode":"VMT200911026070","cardAcceptor.name":"ABC XYZ","feeProgramIndicator":"","responseCode":"5","retrievalReferenceNumber":"221917871070","statusCode":"COMPLETED","systemsTraceAuditNumber":"351480","transactionCurrencyCode":"840","transactionDate":"17-01-2020","transactionIdentifier":"114304643585460","transactionTime":"02:54:30","transactionType":"CRED VOUCHER"},{"accountNumberMasked":"495703xxxxxx0462","acquiringBin":"408999","actionCode":"00","amount":"1","approvalCode":"21324K","cardAcceptor.idCode":"VMT200911026070","cardAcceptor.name":"ABC XYZ","feeProgramIndicator":"","responseCode":"5","retrievalReferenceNumber":"221917871070","statusCode":"COMPLETED","systemsTraceAuditNumber":"351480","transactionCurrencyCode":"840","transactionDate":"17-01-2020","transactionIdentifier":"234673543706686","transactionTime":"02:56:09","transactionType":"CRED VOUCHER"},{"accountNumberMasked":"495703xxxxxx0462","acquiringBin":"408999","actionCode":"00","amount":"1","approvalCode":"21324K","cardAcceptor.idCode":"VMT200911026070","cardAcceptor.name":"ABC XYZ","feeProgramIndicator":"","responseCode":"5","retrievalReferenceNumber":"221917871070","statusCode":"COMPLETED","systemsTraceAuditNumber":"351480","transactionCurrencyCode":"840","transactionDate":"17-01-2020","transactionIdentifier":"110309199920586","transactionTime":"02:56:16","transactionType":"CRED VOUCHER"},{"accountNumberMasked":"495703xxxxxx0462","acquiringBin":"408999","actionCode":"00","amount":"1","approvalCode":"21324K","cardAcceptor.idCode":"VMT200911026070","cardAcceptor.name":"ABC XYZ","feeProgramIndicator":"","responseCode":"5","retrievalReferenceNumber":"221917871070","statusCode":"COMPLETED","systemsTraceAuditNumber":"351480","transactionCurrencyCode":"840","transactionDate":"17-01-2020","transactionIdentifier":"614478362500785","transactionTime":"02:58:41","transactionType":"CRED VOUCHER"},{"accountNumberMasked":"495703xxxxxx0462","acquiringBin":"408999","actionCode":"00","amount":"0.1","approvalCode":"21324K","cardAcceptor.idCode":"VMT200911026070","cardAcceptor.name":"ABC XYZ","feeProgramIndicator":"","responseCode":"5","retrievalReferenceNumber":"221917871070","statusCode":"COMPLETED","systemsTraceAuditNumber":"351480","transactionCurrencyCode":"840","transactionDate":"17-01-2020","transactionIdentifier":"584315225531010","transactionTime":"03:05:39","transactionType":"CRED VOUCHER"}]

 

 

Response Header:

Status Code: 200 OK
Server : nginx
Content-Type : application/json;charset=UTF-8
Content-Length : 2528
X-SERVED-BY : l55c013
X-CORRELATION-ID : 1582740598_940_2034749985_l55c013_VDP_WS
X-APP-STATUS : 200
X-APP-STATUS : 200
X-Backside-Transport : OK OK,OK OK
Cache-Control : private ,no-cache, no-store, must-revalidate ,no-cache, no-store, must-revalidate
Expires : Thu, 01 Jan 1970 00:00:00 GMT ,-1 ,-1
X-Pagination : false
X-Count : 5
X-Global-Transaction-ID : 1adcbd165e56b477786f1821
X-Frame-Options : SAMEORIGIN
X-XSS-Protection : 1; mode=block
X-Content-Type-Options : nosniff
Strict-Transport-Security : max-age=2592000;includeSubdomains
Pragma : no-cache
Content-Language : en-US
Date : Wed, 26 Feb 2020 18:10:01 GMT
Connection : keep-alive

 

VD TransactionQuery API.png

 




Thanks,

Diana



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: 400 BAD REQUEST [message: "Expected input credential was not present"]

Hey @nikhilp

 

Is the issue resolved? Can you please share your test results with us? I'm happy to help if you need it.

 




Thanks,

Diana



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.