Solved! Go to Solution
Hi @martinresch1602,
The cdisiAutoGenId is not something you need to provide in the HTTP header. Can you please share some additional information so we can investigate further. How are you testing the API (by code or using a tool)? Thanks.
Response Header that includes the x-correlation-id
Hi VISA Developer team,
I am using Postman to call.
1) Endpoint URL: https://sandbox.api.visa.com/merchantsearch/v2/search
2) x-correlation-id - 1606231964_007_1239862392_l73c012_VDP_WS
Thx
Martin
Hi @martinresch1602,
Thanks for the quick response. I see that you are calling the "v2" endpoint. I am not sure if this is working in sandbox yet, I will check with our product team and get back. In the meantime, please test with the "v1" endpoint.
https://sandbox.api.visa.com/merchantsearch/v1/search
Hi VISA developer team,
now I am sending that payload and receive the following to the v1 API. x-correlation-id is 1606247407_431_270590851_l73c018_VDP_WS
URL called - https://sandbox.api.visa.com/merchantsearch/v1/search
Request:
Regards
Martin
Hi @martinresch1602,
I am getting a success response on my end. Please make sure you are not sending cdisiAutoGenId in the header in Postman.
End Point https://sandbox.api.visa.com/merchantsearch/v1/search
Method POST
Request
{
"searchOptions": {
"matchScore": "true",
"maxRecords": "10",
"matchIndicators": "true",
"proximity": ["merchantName"],
"wildCard": ["merchantName"]
},
"header": {
"startIndex": "0",
"requestMessageId": "VCO_GMR_001",
"messageDateTime": "2020-11-24T19:45:12.000"
},
"searchAttrList": {
"merchantPhoneNumber": "4153440351",
"merchantCity": "San Francisco",
"merchantCountryCode": "840",
"merchantPostalCode": "94107",
"paymentAcceptanceMethod": "F2F",
"visaStoreId": "161688518",
"merchantStreetAddress": "280 King St",
"merchantState": "CA",
"merchantName": "starbucks ",
"terminalType": "SWIPE"
},
"responseAttrList": ["GNSTANDARD"]
}
Response
{"merchantSearchServiceResponse": {
"response": [{
"matchScore": "51.930405",
"matchIndicators": {
"merchantPhoneNumber": "Y",
"merchantCity": "Y",
"merchantCountryCode": "Y",
"merchantPostalCode": "Y",
"visaStoreId": "Y",
"merchantStreetAddress": "Y",
"merchantState": "Y",
"merchantName": "Y"
},
"responseValues": {
"visaEnterpriseName": "STARBUCKS CORPORATION",
"merchantPhoneNumber": [{
"number": "4153440351",
"type": "O"
}],
"lastTranDateRange": "In last 180 days",
"merchantCity": "SAN FRANCISCO",
"merchantCountryCode": "840",
"paymentAcceptanceMethod": ["F2F"],
"merchantCategoryCodeDesc": ["FAST FOOD RESTAURANTS"],
"spMrchFlag": "",
"firstTranDateRange": "In more than 365 days",
"merchantState": "CA",
"terminalType": [
"SWIPE",
"CHIP",
"PAYWAVE"
],
"visaMerchantId": "29992901",
"visaStoreName": "STARBUCKS",
"primaryMerchantCategoryCode": "5814",
"merchantPostalCode": "94107-1702",
"merchantCategoryCode": ["5814"],
"visaStoreId": "161688518",
"merchantStreetAddress": "280 KING ST",
"visaMerchantName": "STARBUCKS",
"merchantUrl": ["www.starbucks.com"]
}
}],
"header": {
"numRecordsReturned": 1,
"startIndex": "0",
"numRecordsMatched": 1,
"responseMessageId": "64VDP34090920201126013552660",
"endIndex": "0",
"requestMessageId": "VCO_GMR_001",
"messageDateTime": "2020-11-26T01:35:52.660"
},
"status": {
"statusDescription": "Success",
"statusCode": "CDI000"
}
}}
Response Header
Status Code: 200 OK
Server : nginx
Date : Thu, 26 Nov 2020 01:35:54 GMT
Content-Type : application/json;charset=UTF-8
Content-Length : 1277
Connection : keep-alive
X-SERVED-BY : l55c018
X-CORRELATION-ID : 1606354552_340_1881353558_l55c018_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 : 69536f0d5fbf0678cb80c81f
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 Stacey,
I did reply on the email and addressed it to developer@visa.com with my postman collection attached. Maybe I am using something wrong or it has to do with my user credentials.
Regards
Martin
Hi - what is the status here? - Regards Martin
Hi @martinresch1602,
As communicated via email, the "Request Data Invalid ('BusinessApplicationId'/'cdisiAutoGenId' not Available)" error was caused by a corrupted project setup. The workaround was to create a new project.
Thank you for working with us patiently to diagnose the problem!