Visa Developer Community

Highlighted
Regular Visitor

Merchant Locator API test returns 404

Hello

I am trying to run the Merchant Locator API test using the Sample code but I get a 404 not found error

org.springframework.web.client.HttpClientErrorException: 404 Not Found

 

Below the Request header and body + Response

 

header request
{
Accept=[application/json],
Content-Type=[application/json],
Authorization=[Basic MEdVVDZPV0tGWkZMSDNNRzhUVUUyMXlMZUVnSEdQYzMxTWJIMEY1dnFENml3SVVPVTpHYjIwN25a],
User-Agent=[VDP_SampleCode_Java]
}

body request
{
"responseAttrList": ["GNLOCATOR"],
"header": {
"messageDateTime": "2020-02-24T08:50:16.744Z",
"startIndex": 0,
"requestMessageId": "Request_001"
},
"searchAttrList": {
"Distance": 2,
"merchantName": "Starbucks",
"longitude": "-121.929163",
"latitude": "37.363922",
"merchantCountryCode": 840,
"DistanceUnit": "M"
},
"searchOptions": {
"matchScore": true,
"maxRecords": 5,
"matchIndicators": true
}
}


response

HttpResponseProxy{HTTP/1.1 404 Not Found [Server: nginx, Content-Length: 0, X-SERVED-BY: l55c016, X-CORRELATION-ID: 1582534974_199_1173423284_l55c016_VDP_WS, X-Backside-Transport: FAIL FAIL,FAIL FAIL, Cache-Control: no-cache, no-store, must-revalidate, Pragma: no-cache, X-Download-Options: noopen, Expires: -1, X-Global-Transaction-ID: 69536f0d5e53913ec37f5661, X-APP-STATUS: 404, X-Frame-Options: SAMEORIGIN, X-XSS-Protection: 1; mode=block, X-Content-Type-Options: nosniff, Strict-Transport-Security: max-age=2592000;includeSubdomains, Date: Mon, 24 Feb 2020 09:02:54 GMT, Connection: close] [Content-Length: 0,Chunked: false]}

 

Any idea?

 

I am behind a Corporate proxy

 

Thanks

Tags (3)
4 REPLIES 4
Highlighted
Visa Dev Moderator

Re: Merchant Locator API test returns 404

Hey @fabrizioa

 

I've created case INC9131627 for the engineering team to investigate the issue. We're currently working to resolve your issue and someone will get back to you soon.

 

 



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

Thanks,
Diana

Highlighted
Regular Visitor

Re: Merchant Locator API test returns 404

Hello Diana

 

is there any update on this? I tried this out again but looks like I get the same error

 

Thanks

Fabrizio

Highlighted
Visa Dev Moderator

Re: Merchant Locator API test returns 404

Hey @fabrizioa

 

Thanks for following up on this. Today, I've reached out to our engineering team for an update and I'm waiting to hear back from them. I'll let you know once I have an update. Feel free to reach out to us at any time if you have questions or need help with anything else.

 



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

Thanks,
Diana

Highlighted
Visa Dev Moderator

Re: Merchant Locator API test returns 404

Hey @fabrizioa,

 

We're getting a successful response using the below request. Please test using request below and let us know if the issue persists. I'm happy to help you with any other questions you may have or if you need further assistance. 🙂

 

Request:
{
"header": {
"messageDateTime": "2020-02-24T08:50:16.744",
"requestMessageId":"cdisimteOCE",
"businessApplicationId":"RTM"

},
"searchAttrList": {
"merchantName" : "Starbucks",

"merchantCountryCode":"840",
"longitude": "-121.929163",
"latitude": "37.363922",
"merchantState": "PR",

"distance": "2",
"distanceUnit":"M"
},
"responseAttrList": [
"GNLOCATOR"
],
"searchOptions": {
"maxRecords": "5",
"matchIndicators": "true",
"wildCard": ["merchantName"],
"matchScore": "true"

}
}

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

 



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

Thanks,
Diana