Manage
Get full control and interact with your tokens (alias) stored in our vault
Please note that the token management API is only working with the latest Alias 2.0 format. Reach out to your PCI Proxy contact if you are not sure which alias format you are using.
The service requires HTTP basic authentication. The required credentials can be found in our dashboard. Please refer to API authentication data for more information.
get
https://api.sandbox.datatrans.com
/v1/aliases/{alias}
Alias information

Examples

Request
Response
1
curl -L -X GET 'https://api.sandbox.datatrans.com/v1/aliases/AAABeM8amw3ssdexyrAAAYwp9fXrAIkp' \
2
-H 'Authorization: Basic MTEwMDAxNzc4OTpNQUd6UUVEbkVxd001d0Vr'
Copied!
1
{
2
"alias": "AAABeM8amw3ssdexyrAAAYwp9fXrAIkp",
3
"fingerprint": "F-dV5V8dE0SZLoTurWbq2HZp",
4
"type": "CARD",
5
"masked": "424242xxxxxx4242",
6
"dateCreated": "2021-01-14T06:38:50.637+00:00",
7
"card": {
8
"expiryMonth": "12",
9
"expiryYear": "21",
10
"cardInfo": {
11
"brand": "VISA CREDIT",
12
"type": "credit",
13
"usage": "consumer",
14
"country": "GB",
15
"issuer": "DATATRANS"
16
}
17
}
18
}
Copied!
post
https://api.sandbox.datatrans.com
/v1/aliases
CONVERT

Examples

Request
Response
1
curl -i -X POST https://api.sandbox.datatrans.com/v1/aliases \
2
--user {merchantId}:{password} \
3
-H 'Content-Type: application/json; charset=UTF-8' \
4
-d '{
5
"legacyAlias": "424242SKMPRI4242"
6
}'
Copied!
1
{
2
"alias": "AAABdJdXVGPssdexyrAAAbuFU885AFAk"
3
}
Copied!
delete
https://api.sandbox.datatrans.com
/v1/aliases/{alias}
DELETE

Examples

Request
Response
1
curl -i -X DELETE https://api.sandbox.datatrans.com/v1/aliases/AAABdJdXjl7ssdexyrAAAZleH7dSANH- \
2
--user {merchantId}:{password} \
Copied!
1
204: No Content
Copied!
Last modified 4d ago