Issue CDI096 when calling the Merchant Search API

SOLVED
martinresch1602
New Contributor

Issue CDI096 when calling the Merchant Search API

Hello VISA develper team,
 
I tried several times to call the Merchant Search API and I always receive CDI096 no matter if I provide the HTTP header cdisiAutoGenId with an value or not.
I am not sure what is wrong here. I wanted as well to call it with only searching for the merchantCategoryCode with an array and did get the same issue.
 
Can someone help me going forward please?
 
Thx for your support.
Martin
 
Request: 
{
    "searchOptions": {
        "matchScore""true",
        "maxRecords""10",
        "matchIndicators""true"
    },
    "header": {
        "startIndex""0",
        "requestMessageId""Request_001",
        "messageDateTime""2020-11-14T21:07:00.000"
    },
    "searchAttrList": {
        "merchantName""cmu edctn materials cntr",
        "merchantStreetAddress""802 industrial dr",
        "merchantCity""Mount Pleasant",
        "merchantState""MI",
        "merchantPostalCode""48858",
        "merchantCountryCode""840",
        "merchantPhoneNumber""19897747123",
        "merchantUrl""http://www.emc.cmich.edu/",
        "businessRegistrationId""386004447",
        "acquirerCardAcceptorId""424295031886",
        "acquiringBin""476197"
    },
    "responseAttrList": [
        "GNSEARCH"
    ]
}
 
Response:

{
    "merchantSearchServiceResponse": {
        "header": {
            "messageDateTime""2020-11-24T15:23:18.018",
            "requestMessageId""Request_001",
            "responseMessageId""1dcaf159-5744-4a86-8f08-b4f178609c15",
            "numRecordsMatched"0,
            "numRecordsReturned"0
        },
        "status": {
            "statusCode""CDI096",
            "statusDescription""No Groups are configured for the requested cdisiAutogenId/Business Application ID"
        }
    }
}
 
9 REPLIES 9
SLi
Visa Developer Support Specialist
Visa Developer Support Specialist

Re: Issue CDI096 when calling the Merchant Search API

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.

 

  1. End Point URL
  2. Response Header that includes the x-correlation-id


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.
martinresch1602
New Contributor

Re: Issue CDI096 when calling the Merchant Search API

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

SLi
Visa Developer Support Specialist
Visa Developer Support Specialist

Re: Issue CDI096 when calling the Merchant Search API

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

 


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.
martinresch1602
New Contributor

Re: Issue CDI096 when calling the Merchant Search API

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:

{
    "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": {
        "header": {
            "messageDateTime""2020-11-24T19:50:07.482",
            "requestMessageId""VCO_GMR_001",
            "responseMessageId""64VDP97562020201124195007482",
            "numRecordsMatched"0,
            "numRecordsReturned"0
        },
        "status": {
            "statusCode""CDI071",
            "statusDescription""Request Data Invalid ('BusinessApplicationId'/'cdisiAutoGenId' not Available)"
        }
    }
}



Regards
Martin

SLi
Visa Developer Support Specialist
Visa Developer Support Specialist

Re: Issue CDI096 when calling the Merchant Search API

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

 


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.
martinresch1602
New Contributor

Re: Issue CDI096 when calling the Merchant Search API

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

martinresch1602
New Contributor

Re: Issue CDI096 when calling the Merchant Search API

Hi - what is the status here? - Regards Martin

SLi
Visa Developer Support Specialist
Visa Developer Support Specialist

Re: Issue CDI096 when calling the Merchant Search API

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!


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.
martinresch1602
New Contributor

Re: Issue CDI096 when calling the Merchant Search API

Many thanks for your support.