Re: X-Pay-Token Error 9159

daniel_forziat
New Contributor

X-Pay-Token Error 9159

Hello,
I have been receiving this response body when calling Pan Lifecycle Command API: https://cert.api.visa.com/vtis/v1/pan/lifecycle 

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

I have tested the key in the Cert environment using the Playground and the results were successful.
helloworld.PNG

However, when I use the previous Pan Lifecycle Command URL and sample body, I get the same 9159 error above.
panlif.PNG
Here is the Request Information:
URL: https://cert.api.visa.com/vtis/v1/pan/lifecycle?apiKey=H68F7FGWG8056VQSDNH721P2RhRNLjzPBMyGkbW8eoee9...
Body:
{
"encryptedData": "eyJraWQiOiIxN1lOMEhLR1MxSDcyVU1SOUREQzExTVc4eVBha0otQVNMWG9qNnpZbk1Dbjg0cWlzIiwidHlwIjoiSk9TRSIsImFsZyI6IlJTMjU2In0.ZXlKMGVYQWlPaUpLVDFORklpd2laVzVqSWpvaVFURXlPRWREVFNJc0ltbGhkQ0k2SWpFME1qazRNemN4TkRVaUxDSmhiR2NpT2lKU1UwRXhYelVpTENKcmFXUWlPaUl5WmpOak9XWmtNeUo5LlM4b3BFYk5EbnlPU2ZOUXl6c0M4Q0sxdDBFckpxeFRRbV96d3pJVXA3QV8yVE1xeE5QX1MyQ1I5RGxhTFlSZmFuU1dPODJSV2w3TmtXYm9VLXhXaHl4b0RvMmhtRVhLeFloVWpfTFNoRkhjSWdwa2IzT29TWTJrSWhZdDJFRjhLTENIVnhuaGxNczNtc3FrQm5mYnVWWGwweVVKcE93c1dyWTd1LTM1aG1mUHJfR1Y2Ukx6QVJuS3d6NjhIVWxYR1BrbkJKRzE2WkZsUjUxTkV6bkRxRGEyR2FvTVZCREdUR091R211UVJaRDRzMTJjXzBTZUJLcmN1S1M3N2FJSHlXWW5jbHpWSDhWcXJScVhHYTRZU2pOXzJhNDBZaTE2eVRJdzM4WHQyT0pVQUdCd2VWcXhDVlF6UFZnUkM2NU4xMnNraDNWYzlwNm9sdEs5UUROYjZRQS5Wc1hheVFlN05FbFBtMFJkLk50bm9TX0NxM3JqaGIwLTdMUHBRTHJhb29wZWFwZVZ5Z1NJTkhPR3pKVjFXU05jLUtPTlFPaU91NHdfcGhmeHBPQktDZk1Fd2Q1Ri10U05DX0tVay1KWlljQzFNY0FDdDJrOTF5aThSUWQweWtPcXRpV0VsOGVsSHpBQzNvcTdzdnpON3pDa08zRFoyS2dSQzNudVRFUVFRU2NlRFowQnhVN2F5VFp1UzN0dEt3Z2g5eWd2b3JuZUh3U1VsUGJOV3h4Z0VLZ3RnTWlHWkI1WWhaWENBMmx6R2ozbk5iZk1PU01mZ3FiNW5QTGFLQzEwMk83ZkVWRjBRQTgwa09XSDcxWVNieEtUUVdVTnctQktYTDJrZnNmWUYxb3NROGxDM2o4TXYyb1VoTGJRZHY0SFlhY0pfOUFXNlA3LWtkRVNGRDhUMl9VbWpVcnFiZXpiRG1XR3hNXzBuM0hMREJfUGxkN0tEZWRDbFk3aTJ4eWJLVFlJQmloOVZXOXoyY2c5NGFVSS14RXFfdWxDMVNQOHYuX1dFZTRQRFBWbXc1bHI1RzNEamZZQQ.IRU7MYQc_-NtPtAJ_9IAKQvb3hbnzUNQq6lmKqWjpW3A2LQj_Dx5sp_qn8IcptArQ6H2ctZ1dxoalzLWFz1xQCMRVTdwbvnOllybcbuDS0kS_wn2q1NuM0szo8LkOv_4UMVKLosy-eWRo-TvqgUhBgTwjMHrcnn4AkHSDWdUUQXGkIijsUjdxLVT4ehjTJudg5yR25vjXUV8URpOI-YKZHqfOm6oXWYYouHMGF3rGNsNh4SCQJbyjKGKkc-4RUrA78k1sFIdWvkmS5qIe5tfA4MfLdC_NBU-lSOA_YX2qS7fa1Xz4UDeS3gYScnXflXaCOFoGbq9-SgBlXRUmq1_8g",
"operationReason": "ExpiryDateUpdate",
"operationType": "UPDATE",
"operatorID": "operator",
"operationReasonCode": "EXP_DATE_UPDATE"
}
Response Body:
{"responseStatus": {
"severity": "ERROR",
"code": "9159",
"message": "Token Validation Failed",
"status": 401,
"info": ""
}}

Response Header: Status Code: 401
Server : nginx
Date : Mon, 01 Nov 2021 08:17:26 GMT
Content-Type : application/json
Content-Length : 112
Connection : keep-alive
X-SERVED-BY : l55p022
X-CORRELATION-ID : 1635754646_414_882300549_l55p022_VDP_WS
x-vdp-normalized-url : /vtis/v1/pan/lifecycle
X-APP-STATUS : 401
x-vdp-authn-api-visa-id : VTS.126
X-ERROR-ORIGIN : 9100
X-Frame-Options : SAMEORIGIN
X-XSS-Protection : 1; mode=block
X-Content-Type-Options : nosniff
Cache-Control : no-cache, no-store, must-revalidate
Pragma : no-cache
Expires : -1


1 REPLY 1
SLi
Visa Developer Support Specialist
Visa Developer Support Specialist

Re: X-Pay-Token Error 9159

Hi @daniel_forziat,

 

Since you have a project implementation in CERT environment, please reach out to your Visa account executive or implementation manager. They'll be able to assist you with issues in the certification environment. 


Best,
Stacey

Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.