Merchant Locator API showing 404 error

SOLVED
Highlighted

Merchant Locator API showing 404 error

I am using visa merchant locator API. While sending the request, I replaced merchantName field in the json request with merchant category code but i got 404 error in response.

 

My request:


{
"header": {
"messageDateTime": "2020-06-23T07:02:13.903",
"requestMessageId": "Request_001",
"startIndex": "0"
},
"searchAttrList": {
"MerchantCategoryCode": ["5814"],
"merchantCountryCode": "840",
"latitude": "37.363922",
"longitude": "-121.929163",
"distance": "2",
"distanceUnit": "KM"
},
"responseAttrList": [
"GNLOCATOR"
],
"searchOptions": {
"maxRecords": "5",
"matchIndicators": "true",
"matchScore": "true"
}
}


 

4 REPLIES 4
Highlighted
Visa Dev Moderator
Visa Dev Moderator

Re: Merchant Locator API showing 404 error

Hi @kunalanand241,

Please try  "merchantCategoryCode": ["5814"], with the lower case "m" and let me know if you can get a successful response.


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.
Highlighted

Re: Merchant Locator API showing 404 error

Yup that worked for me but the developer team should have a look at the API reference guide where the response attribute key for category is mentioned as MerchantCategoryCode and due to which i got the issue.it should be fixed.

Highlighted
Visa Dev Moderator
Visa Dev Moderator

Re: Merchant Locator API showing 404 error

Hi @kunalanand241

Thank you for reporting the API doc error. I'll let our internal team know so that this error can be corrected in a future release.


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.
Highlighted
Newbie

Re: Merchant Locator API showing 404 error

Thanks for the solution and expecting it in the future update