Visa Developer Community


Getting issue in parsing Card Inquiry API

Hello Team,


While accessing "DPS Card and Account Services" - Api Name: "Card Inquiry API" getting the below response in soapUI


"resource": {"debitCards": [ {
"primaryAccountNumber": "4514780950765519",
"sequenceOnCard": "1",
"expirationDate": {
"mm": "01",
"yy": "99"
"activationStatus": "ACTIVE",
"cardStatus": "OK",
"shouldCaptureCard": true,
"cardholderName": {
"firstName": "John",
"lastName": "Doe",
"middleName": null,
"title": null,
"suffix": null
"cardholderAddress": {
"addressLine1": "123 N Street",
"addressLine2": null,
"addressLine3": null,
"city": "SomeTown",
"postalCode": "90210",
"region": "CA",
"country": "840"
"clientUnqiueId": null
"processingTimeInMs": 31,
"receivedTimestamp": "2020-06-17 03:56:56.744",
"errors": []


But while running the testcase in java "postdebitCardInquiryTest" getting the below error:


public void postdebitCardInquiryTest() throws IOException {

String jsonPayload = transformPayload("{\"directDebitAccountNumber\": \"4514789507655016\", \"routingNumber\": \"59831111113\"}");
ObjectMapper mapper = new ObjectMapper();

DebitCardInquirypostPayload body = mapper.readValue(jsonPayload, DebitCardInquirypostPayload.class);

DebitCardInquirypostResponse response = api.postdebitCardInquiry(body);


org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Can not deserialize instance of out of START_ARRAY token; nested exception is com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of out of START_ARRAY token
at [Source:; line: 1, column: 27] (through reference chain:["resource"]->["debitCards"])


Kindly assist for the same.



Visa Dev Moderator

Re: Getting issue in parsing Card Inquiry API

Hey @SameekshyaM,


I'm happy to help you resolve the issue. I've logged INC9613286 for the engineering team to review the issue and I'll provide you with an update soon, once I hear back from them. Please do let us know if there's anything else you need help with and someone will be ready to assist.


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