Getting issue in parsing Card Inquiry API

SameekshyaM
Helper

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:

 

@Test
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 com.visa.developer.sample.card_inquiry_api.model.DebitCards out of START_ARRAY token; nested exception is com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of com.visa.developer.sample.card_inquiry_api.model.DebitCards out of START_ARRAY token
at [Source: java.io.ByteArrayInputStream@7bbc8656; line: 1, column: 27] (through reference chain: com.visa.developer.sample.card_inquiry_api.model.DebitCardInquirypostResponse["resource"]->com.visa.developer.sample.card_inquiry_api.model.Resource["debitCards"])

 

Kindly assist for the same.

 

 

3 REPLIES 3
API_Products
Visa Developer Support Specialist

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.

 




Thanks,

Diana H.



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_Products
Visa Developer Support Specialist

Re: Getting issue in parsing Card Inquiry API

Hey @SameekshyaM,

 

Can you please let us know if this still requires an investigation by our engineering team or is the issue resolved. Thanks 🙂 




Thanks,

Diana H.



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_Products
Visa Developer Support Specialist

Re: Getting issue in parsing Card Inquiry API

Hey @SameekshyaM

We haven't heard from you, hence, we'll close incident INC9613286 as resolved. Please let us know of any questions.




Thanks,

Diana H.



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