Re: Sandbox - Merchant Locator not working - Need HELP

walydeveloper
Occasional Visitor

Sandbox - Merchant Locator not working - Need HELP

Hello, I am trying to use the Merchant Locator. When I try with the same data specified on the API explorer reference it works. But when i try different merchant name or change parameters it says "No matching records found". See the request response below:

 

Request:-

https://sandbox.api.visa.com/merchantlocator/v1/locator

{
"searchOptions": {
"matchScore": "false",
"maxRecords": "5",
"matchIndicators": "false"
},
"header": {
"startIndex": "0",
"requestMessageId": "Request_001WALY0205",
"messageDateTime": "2022-04-12T22:41:17.903"
},
"searchAttrList": {
"distanceUnit": "M",
"distance": "15",
"merchantCountryCode": "840",
"latitude": "33.82635",
"longitude": "-118.35563",
"merchantName": "target"
},
"responseAttrList": [
"GNLOCATOR"
]
}
Response:-
{
"merchantLocatorServiceResponse": {
"header": {
"messageDateTime": "2021-12-09T19:11:55.427",
"requestMessageId": "Request_001WALY0205",
"responseMessageId": "68VDP50580620211209191155427",
"numRecordsMatched": 0,
"numRecordsReturned": 0,
"startIndex": "0",
"endIndex": "0"
},
"status": {
"statusCode": "CDI092",
"statusDescription": "No matching records found"
}
}
}
4 REPLIES 4
jenn_kh
Community Moderator

Re: Sandbox - Merchant Locator not working - Need HELP

Thank you for reaching out, @walydeveloper! An agent is looking for a solution for you and will get back to you shortly. If any community members know of a solution, please feel free to respond here. - Jenn

SLi
Visa Developer Support Specialist
Visa Developer Support Specialist

Re: Sandbox - Merchant Locator not working - Need HELP

Hi @walydeveloper,

 

The sandbox environment is designed to provide a general view and guide of the endpoint request and response structure. The data in the sandbox is preconfigured and covers a small set of possible requests. For the Merchant Locator endpoint https://sandbox.api.visa.com/merchantlocator/v1/locator, the supported test data can be found on the "Test Data" tab of your project.

TestDataTab.png

 


Best,
Stacey

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

Re: Sandbox - Merchant Locator not working - Need HELP

@Stacy 

 

Thanks for your reply. When I check the test data I only see one record. Is there a possibility of having more data so we can understand better and the response.Screen Shot 2021-12-10 at 1.56.20 PM.png

SLi
Visa Developer Support Specialist
Visa Developer Support Specialist

Re: Sandbox - Merchant Locator not working - Need HELP

Hi @walydeveloper,

 

It looks like there is only one test scenario provided for now. I will share your feedback of having more test data with the product team for future enhancement.

 


Best,
Stacey

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