Re: Getting 9159, Token Validation Failed in CardValidation API

Solved! Go to solution
navdeep
Regular Visitor

Getting 9159, Token Validation Failed in CardValidation API

Hi,

I am getting below mentioned response 

{"responseStatus":{"status":401,"code":"9159","severity":"ERROR","message":"Token Validation Failed","info":""}}

API Url: 

https://sandbox.api.visa.com/pav/v1/cardvalidation

Logs from my Java program

resourcePath:         v1/cardvalidation

queryString:           apiKey=RX0PKOZCxxxxxxxxxxxxxxxxxxGBWa1y7zqzz68

requestBody:          {"systemsTraceAuditNumber":"743720","cardCvv2Value":"022","cardAcceptor":{"address":{"country":"US","zipCode":"94404","city":"fostrcity","state":"CA"},"idCode":"111111","name":"ABCCorp","terminalId":"12345678"},"acquirerCountryCode":"840","primaryAccountNumber":"4957030420210462","acquiringBin":"408999","retrievalReferenceNumber":"015221743720","cardExpiryDate":"2040-10","addressVerificationResults":{"street":"801MetroCenterBlv","postalCode":"94404"}}

x-pay-token:           xv2:1697536208:701b47f0f0xxxxxxxxxxxxxxxxxx37145b82f78702a756fe7778cdf9

I am using Java program to generate x-pay-token, but even after so many retries, I am not able to figure out why am I getting "Token Validation Failed" 

 
Please advise.

3 REPLIES 3
jenn_kh
Community Moderator

Re: Getting 9159, Token Validation Failed in CardValidation API

Hi, @navdeep. Thank you for reaching out! An agent will look into this and get back to you as soon as possible. If any community member knows a solution, please reply to this thread.

navdeep
Regular Visitor

Re: Getting 9159, Token Validation Failed in CardValidation API

Thanks for replying.
As MLE was enforced, I was getting this error.  After turning  off the MLE verification, I was able to test successfully. 

API_Managers
Visa Developer Support Specialist

Re: Getting 9159, Token Validation Failed in CardValidation API

Hi @navdeep,

 

Good to hear the error is fixed! Have a good day 😁 




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.