Re: Merchant Locator API showing 404 error

Solved! Go to solution
kunalanand241
Helper

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"
}
}


 

5 REPLIES 5
SLi
Visa Developer Support Specialist
Visa Developer Support Specialist

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.
kunalanand241
Helper

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.

SLi
Visa Developer Support Specialist
Visa Developer Support Specialist

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

Re: Merchant Locator API showing 404 error

Thanks for the solution and expecting it in the future update

thomaskin
Newbie

Re: Merchant Locator API showing 404 error

thank you.. so much..