Get token status
Use this API call to get token status. The flow is described in the illustration below.
Endpoint and method​
Method: GET
Endpoint: https://api.cardtokens.io/api/token/{tokenid}/status
Response parameters​
Parameter name | Data type | Description |
---|---|---|
expmonth | Integer | The expiry month of the cryptogram. Formatted as N2 (e.g. 11). |
expyear | Integer | The expiry year of the cryptogram. Formatted as N4 (e.g. 2099). |
token | String | The major scheme network token generated. Please refer to “Create Token” for details about this field. |
status | String | Status of the token. It can be of “ACTIVE” or “INACTIVE”. |
scheme | String | The card scheme of the token. It can be of “visa”, “mastercard” or “testscheme”. |
tokenid | String | The unique Cardtoken reference of the token. |
Example response​
{
"expmonth": 2,
"expyear": 2028,
"token": "4492697777715235",
"status": "ACTIVE",
"tokenid": "529d7cb6a75e4bab8d71eb09dcd489e0",
"scheme": "visa"
}