Convert tokens

Update a legacy token's format to the latest Alias 2.0 format.

In order to get access to our full set of features, including Network Tokenization, tokens need to be in the Alias 2.0 format. Converting legacy tokens to this format is simple.

Please refer to the API Reference to get a detailed view of all required and optional fields.

curl --request POST \
  --url 'https://api.sandbox.datatrans.com/v1/aliases' \
  --header 'Authorization: Basic {{basicAuth}}' \
  --header 'Content-Type: application/json' \
  --data '{
	"legacyAlias": "424242SKMPRI4242"
}'
{
  "alias": "AAABdJdXVGPssdexyrAAAbuFU885AFAk"
}