getting Request Data Invalid (\'BusinessApplicationId\'/\'cdisiAutoGenId\' not Available) error

soroushm
Regular Visitor

getting Request Data Invalid (\'BusinessApplicationId\'/\'cdisiAutoGenId\' not Available) error

Hi,
When I am trying to run the code below in Python, I get "Request Data Invalid (\'BusinessApplicationId\'/\'cdisiAutoGenId\' not Available)" error. I do not get this error when I use API reference webpage.

 

url = 'https://sandbox.api.visa.com/merchantlocator/v1/locator'

payload = json.loads('''
{
"searchOptions": {
"matchScore": "true",
"maxRecords": "5",
"matchIndicators": "true"
},
"header": {
"startIndex": "0",
"requestMessageId": "Request_001",
"messageDateTime": "2021-07-09T00:54:54.903"
},
"searchAttrList": {
"distanceUnit": "M",
"distance": "2",
"merchantCountryCode": "840",
"latitude": "37.80",
"longitude": "-122.43",
"merchantName": "Starbucks"
},
"responseAttrList": [
"GNLOCATOR"
]
}''')

timeout = 10

response = requests.post(url,
cert=(cert, key),
auth=(userID, password),
json=payload,
timeout=timeout
)

These are are the header and body responses:

{'Server': 'nginx', 'Date': 'Fri, 09 Jul 2021 00:56:06 GMT', 'Content-Type': 'application/json;charset=UTF-8', 'Content-Length': '353', 'Connection': 'keep-alive', 'X-SERVED-BY': 'l55c015', 'X-CORRELATION-ID': '1625792165_941_1522710990_l55c015_VDP_WS', 'X-Backside-Transport': 'OK OK,OK OK', 'X-OPNET-Transaction-Trace': 'a2_182d0bc1-9e8b-471d-b437-91ded99c79db', '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': '69536f0d60e79ea639f40b8d', 'X-APP-STATUS': '200', 'X-Frame-Options': 'SAMEORIGIN', 'X-XSS-Protection': '1; mode=block, 1; mode=block', 'X-Content-Type-Options': 'nosniff, nosniff', 'Strict-Transport-Security': 'max-age=2592000;includeSubdomains, max-age=31536000;includeSubdomains;always'}


b'{"merchantLocatorServiceResponse":{"header":{"messageDateTime":"2021-07-09T00:56:06.201","requestMessageId":"Request_001","responseMessageId":"68VDP82438920210709005606201","numRecordsMatched":0,"numRecordsReturned":0},"status":{"statusCode":"CDI071","statusDescription":"Request Data Invalid (\'BusinessApplicationId\'/\'cdisiAutoGenId\' not Available)"}}}'

Thanks!

2 REPLIES 2
SLi
Visa Developer Support Specialist
Visa Developer Support Specialist

Re: getting Request Data Invalid (\'BusinessApplicationId\'/\'cdisiAutoGenId\' not Available) error

Hi @soroushm,

 

We are taking a look and will get back with an update soon.


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.
SLi
Visa Developer Support Specialist
Visa Developer Support Specialist

Re: getting Request Data Invalid (\'BusinessApplicationId\'/\'cdisiAutoGenId\' not Available) error

Hi @soroushm,

 

Can you please send an email to developer@visa.com and provide the project name. We'll need to take a look at your project configuration for Merchant Locator. Thanks.


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.