Re: Merchant Locator always returns "No matching records found"

Harmoney
Regular Visitor

Merchant Locator always returns "No matching records found"

Hi Community,

I tried to make a Merchant Locator service call, but always got "No matching records found".  The request was actually taken from the sample code at https://developer.visa.com/guides/vdpguide#sample_code_first_app. Everything are the same, even the latitude and longitude, only changed the distance from "2" to "100".

 

Below are my request and response:

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

 

Request Body : {
    "header": {
        "messageDateTime": "2016-10-20T17:46:04.882",
        "requestMessageId": "2016-10-20T17:46:04.882",
        "startIndex": "0"
    },  
    "searchAttrList": {
        "merchantName": "Starbucks",
        "merchantCountryCode": "840",
        "latitude": "37.363922",
        "longitude": "-121.929163",
        "distance": "100",
        "distanceUnit": "M"
    },  
    "responseAttrList": [
        "GNLOCATOR"
    ],  
    "searchOptions": {
        "maxRecords": "5",
        "matchIndicators": "true",
        "matchScore": "true"
    }   
}
Response Body: {
    "merchantLocatorServiceResponse": {
        "header": {
            "startIndex": "0",
            "numRecordsMatched": 0,
            "numRecordsReturned": 0,
            "requestMessageId": "2016-10-20T17:46:04.882",
            "messageDateTime": "2016-10-20T17:46:05.398",
            "responseMessageId": "68VDP4524720161020174605398",
            "endIndex": "0"
        },
        "status": {
            "statusDescription": "No matching records found",
            "statusCode": "CDI092"
        }
    }
}

 

Together We Shop Better!!!
2 REPLIES 2
ricardo_visa
Community Scholar

Re: Merchant Locator always returns "No matching records found"

Hi Harmoney,

 

Taking a look into this. You'll hear back soon. Thank you!

 

-Ricardo




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

Re: Merchant Locator always returns "No matching records found"

Hi ,

 

To add on after i found this thread from google,  It seems like the query always return no records found for any query other than the example given .

 

Please help .

 

Thanks