Toucan Tokenization
Tokenize a PAN
Data & Response Codes
- Pagos Data Dictionary
- AVS Response Codes
- CVV Check Response Codes
- Disbursement Response Codes
- 3DS Response Codes
- Stored Credential Response Codes
- Transaction Status Codes
- Chargeback Reason Codes
- Chargeback Status Codes
- Fee Type Codes
- Refund Status Codes
- Transaction Response Codes (Decline Codes)
Data Ingestion
BIN Database
- BIN Data Tools
- Parrot API
- Parrot Batch
Account Updater
- Account Updater Tools
- Loon API
- Real-Time Loon API
Toucan Tokenization
Tokenize a PAN
POST
/
toucan
/
tokens
/
tokenize
curl --request POST \
--url https://services.prod.pagosapi.com/toucan/tokens/tokenize \
--header 'Content-Type: application/json' \
--data '{
"accountNumber": "1234123412341234",
"expirationDate": {
"year": "2023",
"month": "12"
},
"cvv2": "<string>",
"accountHolder": {
"name": "<string>",
"address": {
"line1": "<string>",
"line2": "<string>",
"line3": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"postalCode": "<string>"
}
},
"metadata": "<string>"
}'
{
"cardNetworkName": "<string>",
"token": "<string>",
"expirationDate": {
"year": "2023",
"month": "12"
},
"tokenRefId": "<string>",
"panLast4": "<string>",
"metadata": "<string>"
}
Body
application/json
Required string length:
13 - 16
Required string length:
3 - 4
Maximum length:
64
Maximum length:
64
Maximum length:
64
Maximum length:
64
Maximum length:
32
Maximum length:
12
Maximum length:
10
Maximum length:
50
curl --request POST \
--url https://services.prod.pagosapi.com/toucan/tokens/tokenize \
--header 'Content-Type: application/json' \
--data '{
"accountNumber": "1234123412341234",
"expirationDate": {
"year": "2023",
"month": "12"
},
"cvv2": "<string>",
"accountHolder": {
"name": "<string>",
"address": {
"line1": "<string>",
"line2": "<string>",
"line3": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"postalCode": "<string>"
}
},
"metadata": "<string>"
}'
{
"cardNetworkName": "<string>",
"token": "<string>",
"expirationDate": {
"year": "2023",
"month": "12"
},
"tokenRefId": "<string>",
"panLast4": "<string>",
"metadata": "<string>"
}