Re: Unable to call search API in postman & VDC Playground

oejaz
New Contributor

Unable to call search API in postman & VDC Playground

End Point https://sandbox.api.visa.com/vsps/search
Method POST
Request
{"includeInactive": true}
Response
{"responseStatus": {
"severity": "ERROR",
"code": "9125",
"message": "Expected input credential was not present",
"status": 400,
"info": ""
}}
Response Header
Status Code: 400
Server : nginx
Date : Mon, 18 Mar 2024 11:32:54 GMT
Content-Type : application/json;charset=UTF-8
Content-Length : 130
Connection : keep-alive
X-SERVED-BY : -6c47z8
X-CORRELATION-ID : 1710761574_826_182833528_-6c47z8_VDP_WS
X-ERROR-ORIGIN : 9200
X-APP-STATUS : 400
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
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;

 

2 REPLIES 2
jenn_kh
Community Moderator

Re: Unable to call search API in postman & VDC Playground

Hi, @oejaz. Thank you for reaching out. An agent will look into this and get back to you soon. Until then, if any community members know a solution, please feel free to reply to this thread.

API_Managers
Visa Developer Support Specialist

Re: Unable to call search API in postman & VDC Playground

Hi @oejaz,

 

Please refer to the cause / resolution below. You can also find cause / resolution for error codes on the Visa Developer Error Codes page here.

Payload and URI Error Codes

HTTP STATUS HTTP CODE CAUSE/RESOLUTION

BAD REQUEST

400

This error could be due to a variety of reasons.

Check for the following:

  • The url has a space after the ?.
  • Whitespace issues, in general, anywhere in the url.
  • Ideally the following fields need to be checked for correctness:
    •  URL
    •  Query params

Or

  • The API endpoint you are trying to use only supports Two-Way SSL authentication. Please ensure you are not using any other token type.

Or

  • Invalid input found in the request payload.

 




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.