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"
}
}
Solved! Go to Solution
Hi @kunalanand241,
Please try "merchantCategoryCode": ["5814"], with the lower case "m" and let me know if you can get a successful response.
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.
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.
Thanks for the solution and expecting it in the future update
thank you.. so much..