Re: totalNumberOfRecords is always null

spectre359
New Contributor

totalNumberOfRecords is always null

Hello, I'm calling the Visa ReadyLink merchant locator API and this field in the response is always null: 

totalNumberOfRecords. It is not present in the documentation but it does come in the response. Is this field actually being used (if yes, then why is it always null) or it's just some left over of old code? 
4 REPLIES 4
jenn_kh
Community Moderator

Re: totalNumberOfRecords is always null

Thank you for your question, @spectre359. An agent will get back to you as soon as possible. In the meantime, if any community member knows the solution, please reply to this thread! -Jenn

API_Products
Visa Developer Support Specialist

Re: totalNumberOfRecords is always null

Hi @spectre359,

 

The error “Empty response received from GMR” should not be an issue, it means VRL locator didn’t find any locations within the searching radius of the input geocodes, because the sandbox environment only has a subset of VRL locations. Please try the following latitude/longitude pair given below and share your test results with us.

 

"geocodes": {

"latitude": 40.128698,

"longitude": -79.439673

},

 




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.

spectre359
New Contributor

Re: totalNumberOfRecords is always null

Hi @API_Products  these coordinates indeed returned a list of locations, but the field totalNumberOfRecords is still null. So this does not answer my original question. To be more clear, this is part of the response and wsResponseHeaderV2 has a filed called totalNumberOfRecords that is null. I wanted to use this field for pagination purposes, but it is always null.

{
    "responseData": {
        ...
    "wsStatus": {
        "statusCode""CDI000",
        "statusDesc""Visa Locator Svc-Success"
    },
    "wsResponseHeaderV2": {
        "requestMessageId""VRL_Test_msg_id",
        "responseMessageId""65VRL3242120220419042525641",
        "responseTs"1650342326081,
        "totalNumberOfRecords"null
    }
}
API_Products
Visa Developer Support Specialist

Re: totalNumberOfRecords is always null

Hi @spectre359,

 

We have limited data to test in the sandbox for this API. Null response is not an error, this is expected due to lack of data in the sandbox environment.




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.