Re: visacardeligibilityservices/v1/cardeligibility/validate

Solved! Go to solution
samiullah
Regular Visitor

visacardeligibilityservices/v1/cardeligibility/validate

  1.  I have tested the Hello word end-point with x-pay-token! Got the success response!

  2. Then I tried to execute the https://sandbox.api.visa.com/visacardeligibilityservices/v1/cardeligibility/validate?apikey={{apikey}}. for this changes to request I made!
    1. 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.

1 REPLY 1
samiullah
Regular Visitor

Re: visacardeligibilityservices/v1/cardeligibility/validate

Thanks, Everyone, took the time to read it, I just got the issue, the 
"resourcePath" need to be "v1/cardeligibility/validate". 

It worked for me! 😍