Hello,
I am having an issue running the sample request for the Merchant Locator API. I am using the sample request below:
Hi @seijak,
Our tech team is investigating this issue, I'll get back with an update as soon as I have one. Can you please share the x-correlation-id of the error? Thanks.
The example that can be run from the Visa API website displays the following return message:
Generated Response
500 Internal Server Error
Header
server: nginx
date: Mon, 23 Nov 2020 15:26:14 GMT
content-type: application/json;charset=UTF-8
content-length: 94
connection: close
x-served-by: l73c012
x-correlation-id: 1606145164_247_1185707704_l73c012_VDP_WS
x-app-status: 500
x-frame-options: SAMEORIGIN
x-xss-protection: 1; mode=block
x-content-type-options: nosniff
strict-transport-security: max-age=2592000;includeSubdomains
cache-control: no-cache, no-store, must-revalidate
pragma: no-cache
expires: -1
x-cnection: close
Hi @seijak,
I'm happy to share that we have resolved the "500 Internal Server Error" issue. Can you please retry calling the Merchant Locator API request and let us know how it goes.
We are unable to replicate the "Request Data Invalid ('BusinessApplicationId'/'cdisiAutoGenId' not Available)" issue. Please share the x-correlation-id when you get this response.
Thanks.
Thank you. Your site appears to be working now. As for the Postman request... the following is X-CORRELATION-ID that is returned:
1606243707_779_730978306_l73c015_VDP_WS
Please let me know if this lends to any indication as to the return response.
Thank you
Hi @seijak,
Can you please clarify. Are your still getting this response "Request Data Invalid ('BusinessApplicationId'/'cdisiAutoGenId' not Available)" in Postman?
Thanks.
That is correct. I am still receiving that response using the example request when I run Postman.
I once again ran the test request in Postman (same as previously posted) and now the response is different today:
The X-CORRELATION-ID is 1606740937_517_734092730_l73c013_VDP_WS for reference.
Hi @seijak,
There seems to be an intermittent latency issue with the product backend. Our network team is still investigating why this is happening. However, the API is currently working as expected. Please continue to report the issue and provide the correlation ID when you see it happen. Thanks.
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": "2020-11-30T16:52:54.086"
},
"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 180 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": "68VDP94081520201201005935191",
"endIndex": "0",
"requestMessageId": "Request_001",
"messageDateTime": "2020-12-01T00:59:35.191"
},
"status": {
"statusDescription": "Success",
"statusCode": "CDI000"
}
}}
Response Header
Status Code: 200 OK
Server : nginx
Date : Tue, 01 Dec 2020 00:59:36 GMT
Content-Type : application/json;charset=UTF-8
Content-Length : 1166
Connection : keep-alive
X-SERVED-BY : l55c013
X-CORRELATION-ID : 1606784374_904_990121085_l55c013_VDP_WS
X-Backside-Transport : OK OK,OK OK
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 : 69536f0d5fc59577cfb77bdf
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
Hi @seijak,
For this issue "Request Data Invalid ('BusinessApplicationId'/'cdisiAutoGenId' not Available)" , our tech team let me know that there could be a configuration issue in your project. Please share your project name and we'll take a look. As a workaround, please create a new project and retry.