I am trying to execute my test app to disable a provisioned token (invalid token),
https://sandbox.api.visa.com/vts/provisionedTokens/4730111452024931SampleTokenRef/suspend?apikey=***
RequestBody: { "tokenInfo" : { "expirationDate" : { "month" : "01", "year" : "2016" }, "tokenStatus" : "SUSPENDED" } }
I get the following response,
Response status : HTTP/1.1 401 Unauthorized ResponseBody: { "errorResponse" : { "status" : 401, "message" : "Token Validation Failed", "reason" : "inputValidationError", "details" : [ { "location" : "x-pay-token" } ] } }
What is wrong with this request ? Is it because of invalid tokenReferenceNumber ?
Hi Sonu,
I want to make sure you are generating X Pay Token using logic given under : https://developer.visa.com/products/vts/guides#security_auth_requirements
Please let me know!
-Ricardo