Solved!
Go to solution
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
February 2023
February 2023
- I have tested the Hello word end-point with x-pay-token! Got the success response!
- Then I tried to execute the https://sandbox.api.visa.com/visacardeligibilityservices/v1/cardeligibility/validate?apikey={{apikey}}. for this changes to request I made!
- add the request body
- add the request body
{
"correlationId": "qazwsxedc13",
"vendorUniqueId": "XXXXX",
"requestTimeStamp": "{{body_Date}}",
"permanentAccountNumber": "4000000000000011"
}
- Pre-scripts in postman for the body_Date and getting the body from the request
var moment = require('moment'); // require
let date_now = moment().utc();
var body_Date = date_now.format("MM/DD/YYYY h:mm:ss a")
// for request body
var requestBody = JSON.parse(pm.request.body.raw);
- updated the resource_path to "visacardeligibilityservices/v1/cardeligibility/validate" as it is required to create the hash, x-pay-token
But the REPSONSE is always
{
"responseStatus": {
"status": 401,
"code": "9159",
"severity": "ERROR",
"message": "Token Validation Failed",
"info": ""
}
}
Can anyone, please let me know where I am configure it wrong way. I have attempted this from C# console app, but alas!
Thanks for your time.
Solved! Go to Solution
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
February 2023