VTS - Suspend Token

sonu
Regular Visitor

VTS - Suspend Token

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 ?

 

1 REPLY 1
ricardo_visa
Community Scholar

Re: VTS - Suspend Token

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




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