Re: Visasuppliermathcingservice API

API_Products
Visa Developer Support Specialist

Re: Visasuppliermathcingservice API

Hi @sunil_patil,

 

Please refer to this community forum post for the solution and try again.  




Thanks,

Diana



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

junkangli
Dabbler

Re: Visasuppliermathcingservice API

I am facing the same issue.

1. End Point - POST https://sandbox.api.visa.com/visasuppliermatchingservice/v1/search
2. Request Header - 

Content-Typeapplication/json
AuthorizationBasic <redacted>
User-AgentPostmanRuntime/7.42.0
Accept*/*
Cache-Controlno-cache
Postman-Token9693bbb9-96a2-439c-874a-8226731e218c
Hostsandbox.api.visa.com
Accept-Encodinggzip, deflate, br
Connectionkeep-alive
Content-Length2


3. Request Body - 
{}

4. Response Header (include the x-correlation-id) - 

Servernginx
DateFri, 25 Oct 2024 15:30:36 GMT
Content-Typeapplication/json;charset=UTF-8
Content-Length68
Connectionkeep-alive
X-SERVED-BY-65f484f84
X-CORRELATION-ID1729870235_754_1060110357_-65f484f84_VDP_WS
X-ERROR-ORIGIN9900
X-Backside-TransportFAIL FAIL,FAIL FAIL
X-Global-Transaction-ID94860883671bb99b0a406350
X-APP-STATUS404
Cache-Controlno-cache, no-store, must-revalidate
X-Frame-OptionsSAMEORIGIN
X-XSS-Protection0
X-Content-Type-Optionsnosniff
Strict-Transport-Securitymax-age=31536000;includeSubdomains
Pragmano-cache
Expires-1
Content-Security-Policy-Report-Onlydefault-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-Onlydefault-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-Onlydefault-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;
Strict-Transport-Securitymax-age=31536000;includeSubdomains


5. Response Body - 
{"statusDescription":"Requested route not found","statusCode":"404"}

API_Products
Visa Developer Support Specialist

Re: Visasuppliermathcingservice API

Hey @junkangli,

 

The error you are encountering is a 404 Not Found error, which indicates that the requested endpoint is not recognized by the server. This typically means that the URL you are trying to access is incorrect or the endpoint does not exist. Here are some steps to troubleshoot and resolve this issue:

1. Verify the Endpoint URL:
Ensure that the endpoint URL is correct. The endpoint URL you provided is:
```
https://sandbox.api.visa.com/visasuppliermatchingservice/v1/search
```

2. Check API Documentation:
Review the API documentation on the Visa Developer portal to confirm that the endpoint URL, request headers, and request body are correct and properly formatted.

3. Authentication:
Make sure that your Authorization header contains valid credentials. It should be in the format:
```
Authorization: Basic <Base64_encoded_credentials>
```

4. Content-Length Header:
Ensure that the Content-Length header accurately reflects the size of the request body. In your example, it is set to 2, which may be incorrect if the body is empty.

5. Request Method:
Confirm that the HTTP method (POST) is appropriate for the endpoint you are calling. 




Thanks,

Diana



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