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

The body is of type object.

Response

201
application/json
card was tokenized

The response is of type object.