POST
/
cards
/
tokenize
curl --request POST \
  --url https://sandbox-api.superpagamentos.com/cards/tokenize \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "customerId": "8b7c2dd1-e1bf-479f-a5ec-8871ef355b50",
  "holderName": "João Silva",
  "cardNumber": "0000000000000000",
  "expirationMonth": "10",
  "expirationYear": "2031",
  "securityCode": "123"
}'
{
"data": {
"id": "023924d3-9e6d-4231-832e-4237c1b0cd53",
"customerId": "8b7c2dd1-e1bf-479f-a5ec-8871ef355b50",
"holderName": "João Silva",
"first4Digits": "0000",
"last4Digits": "0000",
"expirationMonth": "10",
"expirationYear": "2031",
"cardBrand": "MasterCard",
"isActive": true,
"isVerified": false,
"postalCodeCheck": false,
"securityCodeCheck": false,
"addressCheck": false
},
"message": "Cartão tokenizado com sucesso"
}

Authorizations

Authorization
string
header
required

Token JWT gerado na rota de autenticação (/auth). Deve ser enviado no formato: Bearer <token>

Body

application/json

Response

200
application/json

Cartão tokenizado com sucesso

The response is of type object.