Hi,
I'm getting 400 Bad Request error as per details provided. Kindly help me to fix the issue.
Endpoint: https://sandbox.api.visa.com/visacardeligibilityservices/v1/cardeligibility/validate
Request :
{
"permanentAccountNumber": "4000000000000013",
"vendorUniqueId": "VAL_TENZ_GPI",
"numberOfAdditionalRedemptions": 2,
"requestTimeStamp": "10/7/2017 06:14:40 AM",
"correlationId": "dfsdfasdsdf",
"expirationDate": [
{"Month": "01"},
{"Year": "2020"}
],
"extendedData": "asddd"
}
Response:
{
"statusDescription": "Invalid request object. Please check.",
"cardId": "0",
"responseTimeStamp": "10/7/2019 6:14:07 AM",
"CorrelationId": null,
"eligibilityLevel": "0",
"statusCode": "105"
}
Response Header:
Status Code: 400 Bad Request
Server : nginx
Content-Type : application/json;charset=utf-8
Content-Length : 180
X-SERVED-BY : l55c015
X-CORRELATION-ID : 1570428847_802_954006746_l55c015_VDP_WS
X-Backside-Transport : FAIL FAIL,FAIL FAIL
Cache-Control : no-cache, no-store ,no-cache, no-store, must-revalidate
Pragma : no-cache
Expires : -1
X-OPNET-Transaction-Trace : a2_52e9775b-b3e0-4ac5-894b-c362bf2952d8-12608-141
X-AspNet-Version : 4.0.30319
X-Powered-By : ASP.NET
X-Content-Type-Options : nosniff
X-Frame-Options : SAMEORIGIN
X-XSS-Protection : 1; mode=block
Content-Security-Policy : default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline';
X-Global-Transaction-ID : 1bedc9b25d9ad7b0481f91ed
X-APP-STATUS : 400SSStrict-Transport-Security : max-age=2592000;includeSubdomains
X-Cnection : close
Date : Mon, 07 Oct 2019 06:14:08 GMT
Connection : close
Solved! Go to Solution
Hi @hakim,
Thank you for providing the screenshot and API request and response details. This is very helpful.
I checked the API reference page on Visa Developer Center and found that the information is outdated.
Please use the below test data and let us know if you can successfully call the VCES Validate API. Please ensure that requestTimesStamp is within 5 minutes of current time.
End Point https://sandbox.api.visa.com/visacardeligibilityservices/v1/cardeligibility/validate
Method POST
Request
{
"permanentAccountNumber": "4000000000000013",
"vendorUniqueId": "4658_TstVDPPgm3",
"numberOfAdditionalRedemptions": 2,
"requestTimeStamp": "10/7/2019 6:07:56 PM",
"correlationId": "dfsdfasdsdf",
"extendedData": "asddd",
"expirationDate": {
"Month": "01",
"Year": "2020"
}
}
Response
{
"statusDescription": "Success",
"cardId": "311",
"responseTimeStamp": "10/7/2019 6:08:09 PM",
"isEligible": "True",
"CorrelationId": "dfsdfasdsdf",
"eligibilityLevel": "2",
"statusCode": "000"
}
Response Header
Status Code: 200 OK
Server : nginx
Content-Type : application/json;charset=utf-8
Content-Length : 181
X-SERVED-BY : l55c012
X-CORRELATION-ID : 1570471688_948_91200070_l55c012_VDP_WS
X-Backside-Transport : OK OK,OK OK
Cache-Control : no-cache, no-store ,no-cache, no-store, must-revalidate
Pragma : no-cache
Expires : -1
X-OPNET-Transaction-Trace : a2_465bc920-d9ee-404d-b225-4f66e3061abc-10724-105
X-AspNet-Version : 4.0.30319
X-Powered-By : ASP.NET
X-Content-Type-Options : nosniff
X-Frame-Options : SAMEORIGIN
X-XSS-Protection : 1; mode=block
Content-Security-Policy : default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline';
X-Global-Transaction-ID : 448482cb5d9b7f09a970b1ef
X-APP-STATUS : 200
Strict-Transport-Security : max-age=2592000;includeSubdomains
Date : Mon, 07 Oct 2019 18:08:09 GMT
Connection : keep-alive
Hi SLi,
The test data below are working perfectly. Thanks for your help.