cURL
curl --request POST \ --url https://services.prod.pagosapi.com/toucan/tokens/tokenize \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "accountNumber": "1234123412341234", "expirationDate": { "year": "<string>", "month": "<string>" }, "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": "<string>", "month": "<string>" }, "tokenRefId": "<string>", "tokenUniqueReference": "<string>", "panLast4": "<string>", "metadata": "<string>", "par": "<string>" }
Format is: Bearer <api_key>, where <api_key> is your Pagos API key
Bearer <api_key>
<api_key>
13 - 16
Show child attributes
3 - 4
50
card was tokenized