Token Status

Request detailed information about an alias, such as its creation date, fingerprint or corresponding card information.

🚧

The Status API only works with the Alias 2.0 token format.

Contact us if you are unsure which alias format you are using.

Getting a token's status is straightforward. For example

curl --request GET \
  --url 'https://api.sandbox.datatrans.com/v1/aliases/{{token}}' \
  --header 'Authorization: Basic {{basicAuth}}'
{
  "alias": "{{token}}",
  "fingerprint": "F-dV5V8dE0SZLoTurWbq2HZp",
  "type": "CARD",
  "masked": "424242xxxxxx4242",
  "dateCreated": "2021-01-14T06:38:50.637+00:00",
  "card": {
    "expiryMonth": "12",
    "expiryYear": "21",
    "cardInfo": {
      "brand": "VISA CREDIT",
      "type": "credit",
      "usage": "consumer",
      "country": "GB",
      "issuer": "DATATRANS",
      "accountType": "PAN"
    }
  }
}