Re: [Alias Directory Service] Error Token Validation 9159

fmeirinhos
New Contributor

[Alias Directory Service] Error Token Validation 9159

Hi all,

 

I'm using X-Pay-Token.

 

I'm trying to call an API from Alias Directory Service - GetPaymentCredentials.

I was able to call with success Hello World API - /vdp/helloworld. (for this one I had to remove /vdp/ to build this 'message = timestamp + resource_path + query_string + request_body' to generate X-Pay-Token).

 

But when I try to call GetPaymentCredentials - /aliasdirectory/v1/aliases/{aliasId}/paymentCredentials I get this error:

Note that in this case I'm not removing /aliasdirectory/ and that in both cases the X-Pay-Token is generated the same way.

 

<Fault xmlns="https://sandbox.api.visa.com/aliasdirectory/v1/aliases/e336c8c8-2945-4be3-af3e-951ec2d01219">
<responseStatus>
<code>9159</code>
<info/>
<message>Token Validation Failed</message>
<severity>ERROR</severity>
<status>401</status>
</responseStatus>
</Fault>

 

Let me know if you need any more information in order to help solve this issue.

 

Regards,

Fábio

2 REPLIES 2
jenn_kh
Community Moderator

Re: [Alias Directory Service] Error Token Validation 9159

Hi @fmeirinhosThank you for reaching out. One of our agents will look into this and get back to you soon. Until then, if any community member knows a solution, please feel free to reply in this thread. 

hamedkalbani
New Contributor

Re: [Alias Directory Service] Error Token Validation 9159

I have followed the guide "https://developer.visa.com/pages/working-with-visa-apis/x-pay-token" and used the shared secret. I still get 9159 Token Validation Failed.