madna
Dabbler

Merchant Locator

Request:

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

{
    "searchOptions": {
        "matchScore""true",
        "maxRecords""5",
        "matchIndicators""true"
    },
    "header": {
        "startIndex""0",
        "requestMessageId""Request_001",
        "messageDateTime""2021-03-12T18:08:54.903"
    },
    "searchAttrList": {
        "distanceUnit""M",
        "distance""2",
        "merchantCountryCode""840",
        "latitude""37.363922",
        "longitude""-121.929163",
        "merchantName""Starbucks"
    },
    "responseAttrList": [
        "GNLOCATOR"
    ]
}
 
 
Response: 
{
    "merchantLocatorServiceResponse": {
        "header": {
            "messageDateTime""2021-03-12T18:15:46.948",
            "requestMessageId""Request_001",
            "responseMessageId""68VDP34118520210312181546948",
            "numRecordsMatched"0,
            "numRecordsReturned"0
        },
        "status": {
            "statusCode""CDI071",
            "statusDescription""Request Data Invalid ('BusinessApplicationId'/'cdisiAutoGenId' not Available)"
        }
    }
}
 
Response Header:
 
{
    "merchantLocatorServiceResponse": {
        "header": {
            "messageDateTime""2021-03-12T18:15:46.948",
            "requestMessageId""Request_001",
            "responseMessageId""68VDP34118520210312181546948",
            "numRecordsMatched"0,
            "numRecordsReturned"0
        },
        "status": {
            "statusCode""CDI071",
            "statusDescription""Request Data Invalid ('BusinessApplicationId'/'cdisiAutoGenId' not Available)"
        }
    }
}
 
 
 
for locator sand box API receiving above issue. help to check.
 
2 REPLIES 2
madna
Dabbler

Re: Merchant Locator

X-CORRELATION-ID1615573497_032_790265736_l73c014_VDP_WS

SLi
Visa Developer Support Specialist
Visa Developer Support Specialist

Re: Merchant Locator

Hi @madna,

 

This error  "statusDescription""Request Data Invalid ('BusinessApplicationId'/'cdisiAutoGenId' not Available)" indicates that the cdisiAutoGenId is missing from your project. Can you please clear your browser cache and cookies, then create a new project and retry? 

 

I just tried on my end and I received a successful response, as below:

 

End Point https://sandbox.api.visa.com/merchantlocator/v1/locator
Method POST
Request
{
"searchOptions": {
"matchScore": "true",
"maxRecords": "5",
"matchIndicators": "true"
},
"header": {
"startIndex": "0",
"requestMessageId": "Request_001",
"messageDateTime": "2021-03-12T19:01:47.193"
},
"searchAttrList": {
"distanceUnit": "M",
"distance": "2",
"merchantCountryCode": "840",
"latitude": "37.363922",
"longitude": "-121.929163",
"merchantName": "Starbucks"
},
"responseAttrList": ["GNLOCATOR"]
}

Response
{"merchantLocatorServiceResponse": {
"response": [{
"matchScore": "8.369075",
"matchIndicators": {
"merchantCountryCode": "Y",
"merchantName": "Y"
},
"responseValues": {
"visaEnterpriseName": "STARBUCKS CORPORATION",
"lastTranDateRange": "In last 90 days",
"merchantCity": "SAN JOSE",
"merchantCountryCode": "840",
"distance": "0.4 m",
"locationAddressLongitude": "-121.921986",
"paymentAcceptanceMethod": ["F2F"],
"merchantCategoryCodeDesc": ["FAST FOOD RESTAURANTS"],
"firstTranDateRange": "In more than 365 days",
"merchantState": "CA",
"terminalType": [
"SWIPE",
"CHIP",
"PAYWAVE"
],
"visaStoreName": "STARBUCKS",
"visaMerchantId": "29992901",
"primaryMerchantCategoryCode": "5814",
"locationAddressLatitude": "37.363363",
"merchantPostalCode": "95110-1216",
"merchantCategoryCode": ["5814"],
"visaStoreId": "177066014",
"merchantStreetAddress": "1661 AIRPORT BLVD # 3E",
"visaMerchantName": "STARBUCKS",
"merchantUrl": ["STARBUCKS.COM"]
}
}],
"header": {
"numRecordsReturned": 1,
"numRecordsMatched": 1,
"startIndex": "0",
"responseMessageId": "68VDP28154820210312190230701",
"endIndex": "0",
"requestMessageId": "Request_001",
"messageDateTime": "2021-03-12T19:02:30.701"
},
"status": {
"statusDescription": "Success",
"statusCode": "CDI000"
}
}}

 

Response Header
Status Code: 200 OK
Server : nginx
Date : Fri, 12 Mar 2021 19:02:33 GMT
Content-Type : application/json;charset=UTF-8
Content-Length : 1165
Connection : keep-alive
X-SERVED-BY : l55c014
X-CORRELATION-ID : 1615575750_424_862475907_l55c014_VDP_WS
X-Backside-Transport : OK OK,OK OK
X-OPNET-Transaction-Trace : a2_739901a6-66e4-477b-b8ea-d7341d17d34a
Cache-Control : no-cache, no-store, must-revalidate,no-cache, no-store, max-age=0 ,no-cache, no-store, must-revalidate
Pragma : no-cache,no-cache ,no-cache
X-Download-Options : noopen
Expires : -1,Thu, 01 Jan 1970 00:00:00 GMT ,-1
Content-Language : en-US
X-Global-Transaction-ID : 69536f0d604bbac66c07987d
X-APP-STATUS : 200
X-Frame-Options : SAMEORIGIN
X-XSS-Protection : 1; mode=block
X-Content-Type-Options : nosniff
Strict-Transport-Security : max-age=2592000;includeSubdomains
X-XSS-Protection : 1; mode=block
X-Content-Type-Options : nosniff
Strict-Transport-Security : max-age=15768000;includeSubdomains;always

 

 

 


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.