Not able to test Merchant lookup APIs

dhuadaar
Occasional Visitor

Not able to test Merchant lookup APIs

I have setup a test project for evaluation of the Merchant Lookup APIs.

I was able to get past setup and authentication. 

However, whenever I try to use the API to generate some results, it gives me an error. I am assuming only a limited set of information is available in sandbox to test with.

 

Can someone help me how to get access to the test data to run some simulations?

Responde Code: 400

Response Body : {
'responseStatus': {
'code': '9501',
'severity': 'ERROR',
'message': 'Invalid input found, please correct the input data',
'info': '',
'status': '400'
}
}

Response Headers:

{
'Server': 'nginx',
'Date': 'Mon, 27 Mar 2023 07:58:36 GMT',
'Content-Type': 'application/json',
'Content-Length': '141',
'Connection': 'keep-alive',
'X-SERVED-BY': 'b8656d776v',
'X-CORRELATION-ID': '1679903915_989_523449658_b8656d776v_VDP_WS',
'X-Frame-Options': 'SAMEORIGIN',
'X-XSS-Protection': '0',
'X-Content-Type-Options': 'nosniff',
'Strict-Transport-Security': 'max-age=31536000;includeSubdomains',
'Cache-Control': 'no-cache, no-store, must-revalidate',
'Pragma': 'no-cache',
'Expires': '-1',
'X-ERROR-ORIGIN': '9200',
'X-APP-STATUS': '400'
}

 

 

Request UrL: POST https://sandbox.api.visa.com/merchantsearch/v1/merchantlooku

Request Body:

{

"transactionType": "A",

"transactionDate": "20191117",

"transactionId": "309321556319387"

}

5 REPLIES 5
jenn_kh
Community Moderator

Re: Not able to test Merchant lookup APIs

Hi, @dhuadaar. Thank you for your question! Our agent is looking into this and will get back to you with a potential solution. If anyone else has information that you feel may help, you're welcome to share it here. -Jenn

dhuadaar
Occasional Visitor

Re: Not able to test Merchant lookup APIs

Hey @jenn_kh

Was there any update on this query?
I_Doroteo3
Visa Developer Support Specialist

Re: Not able to test Merchant lookup APIs

Hi @dhuadaar

 

If you are testing the Merchant Search API suite, you can find test data by navigating to "Test Data" on the left side of your Project Dashboard.

 

Let me know if you have additional questions and hope this helps.

 

Thanks, 

Illana

dhuadaar
Occasional Visitor

Re: Not able to test Merchant lookup APIs

Thanks

I did saw that section earlier.
However, it only consist of one sample and that too for the Merchant Search API and not the Lookup API.

Any further cues that you might have?
I am particularly looking to test both separately.

Merchant Search and well as Lookup
API_Products
Visa Developer Support Specialist

Re: Not able to test Merchant lookup APIs

Hi @dhuadaar,

 

You can use this sample Lookup API test data below.

 

End Point https://sandbox.api.visa.com/merchantsearch/v1/merchantlookup
Method POST
Request
{
"transactionType": "A",
"transactionDate": "20191117",
"transactionId": "309321556319387"
}
Response
{
"responseData": {
"visaEnterpriseName": "COSTCO",
"merchantPhoneNumber": [""],
"merchantCountryCode": "840",
"visaEnterpriseId": "70322190688",
"locationAddressLongitude": "-88.113716",
"paymentAcceptanceMethod": [
"SWIPE",
"CHIP",
"PAYWAVE"
],
"merchantCategoryCodeDesc": [
"AUTOMATED FUEL DISPENSERS",
"DRUG STORES & PHARMACIES",
"GROCERY STORES/SUPERMARKETS",
"HEARING AID/SALES/SERVICE",
"OPTICIANS",
"WHOLESALE CLUBS"
],
"firstTranDateRange": "In more than 365 days",
"merchantState": "IL",
"merchantPrimaryUrl": "WWW.COSTCO.COM",
"visaStoreName": "COSTCO WHOLESALE",
"locationAddressLatitude": "41.702439",
"merchantPostalCode": "60440",
"visaStoreId": "430496241",
"visaMerchantName": "COSTCO WHOLESALE",
"lastTranDateRange": "In last 30 days",
"merchantCity": "BOLINGBROOK",
"sponsoredMerchantFlag": "N",
"primaryPhoneNumber": "+1 (800) 774-2678",
"dbaName": [
"COSTCO GAS #1088",
"COSTCO WHSE #1088"
],
"terminalType": [
"F2F",
"EC",
"MOTO"
],
"visaMerchantId": "15536819",
"primaryMerchantCategoryCode": "5300",
"merchantCategoryCode": [
"5300",
"5411",
"5542",
"5912",
"5975",
"8043"
],
"businessLegalName": ["COSTCO WHOLESALE CORPORATION"],
"merchantStreetAddress": "BRIGHTON LN",
"paymentFacilitatorName": "",
"merchantUrl": [""]
},
"responseStatus": {
"statusDescription": "Success",
"statusCode": "API000"
}
}
Response Header
Status Code: 200
Server : nginx
Date : Wed, 21 Jun 2023 18:50:01 GMT
Content-Type : application/json
Content-Length : 1241
Connection : keep-alive
X-SERVED-BY : -6b78b6f4
X-CORRELATION-ID : 1687373400_409_1201013632_-6b78b6f4_VDP_WS
response-message-id : ebdbc456-b2b3-48fc-a299-adc418ef7c1c
response-message-ts : 2023-06-21T18:50:01.012592062Z
X-AGS-Service-Name : merchant-lookup-sandbox
X-AGS-Request-ID : default:73c009:dbda4af6b427255bd96da3ad261ba495
X-AGS-Request-ID : default:55c029:74a424c6548c81ca17be108ef23d7818
X-AGS-Service-Group : bia
X-APP-STATUS : 200
Cache-Control : no-cache, no-store, must-revalidate
X-Frame-Options : SAMEORIGIN
X-XSS-Protection : 0
X-Content-Type-Options : nosniff
Strict-Transport-Security : max-age=31536000;includeSubdomains
Pragma : no-cache
Expires : -1
Content-Security-Policy-Report-Only : default-src 'self' https://*.v.me https://*.visa.com;script-src 'self' 'unsafe-inline' 'unsafe-eval' https://*.visa.com https://*.v.me;img-src 'self' https://*.v.me https://*.visa.com https://*.unica.com https://ad.doubleclick.net;style-src 'self' 'unsafe-inline' https://*.visa.com;object-src https://*.v.me https://*.visa.com data:;report-uri /logging/logCSPReport;
X-Content-Security-Policy-Report-Only : default-src 'self' https://*.v.me https://*.visa.com;script-src 'self' 'unsafe-inline' 'unsafe-eval' https://*.visa.com https://*.v.me;img-src 'self' https://*.v.me https://*.visa.com https://*.unica.com https://ad.doubleclick.net;style-src 'self' 'unsafe-inline' https://*.visa.com;object-src https://*.v.me https://*.visa.com data:;report-uri /logging/logCSPReport;
X-WebKit-CSP-Report-Only : default-src 'self' https://*.v.me https://*.visa.com;script-src 'self' 'unsafe-inline' 'unsafe-eval' https://*.visa.com https://*.v.me;img-src 'self' https://*.v.me https://*.visa.com https://*.unica.com https://ad.doubleclick.net;style-src 'self' 'unsafe-inline' https://*.visa.com;object-src https://*.v.me https://*.visa.com data:;report-uri /logging/logCSPReport;
X-XSS-Protection : 1; mode=block
X-Content-Type-Options : nosniff
Strict-Transport-Security : max-age=31536000;includeSubdomains;always

 




Thanks,

Tee



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