curl --request POST \
--url https://api.example.com/api/cards/create \
--header 'Content-Type: application/json' \
--data '
{
"number": "<string>",
"exp_month": "<string>",
"exp_year": "<string>",
"cvc": "<string>"
}
'{
"status": true,
"message": "<string>",
"data": {
"token_id": "<string>",
"card_id": "<string>",
"card_brand": "<string>",
"card_last4": "<string>"
}
}Tokenize a credit card securely using Stripe
curl --request POST \
--url https://api.example.com/api/cards/create \
--header 'Content-Type: application/json' \
--data '
{
"number": "<string>",
"exp_month": "<string>",
"exp_year": "<string>",
"cvc": "<string>"
}
'{
"status": true,
"message": "<string>",
"data": {
"token_id": "<string>",
"card_id": "<string>",
"card_brand": "<string>",
"card_last4": "<string>"
}
}Documentation Index
Fetch the complete documentation index at: https://mintlify.com/peLuis123/Stripe_Back/llms.txt
Use this file to discover all available pages before exploring further.
4242424242424242"12""2026""123"true) or failed (false)."Tarjeta tokenizada correctamente"Show Card Token Object
tok_.Example: "tok_1234567890abcdef"card_.Example: "card_1234567890abcdef""Visa""4242"curl -X POST https://your-api.com/api/cards/create \
-H "Content-Type: application/json" \
-d '{
"number": "4242424242424242",
"exp_month": "12",
"exp_year": "2026",
"cvc": "123"
}'
{
"status": true,
"message": "Tarjeta tokenizada correctamente",
"data": {
"token_id": "tok_1QRs9eKZ4xUzN2TP9vQqWXYZ",
"card_id": "card_1QRs9eKZ4xUzN2TPabcdefgh",
"card_brand": "Visa",
"card_last4": "4242"
}
}
| Code | Description |
|---|---|
incorrect_number | The card number is incorrect |
invalid_expiry_month | The expiration month is invalid |
invalid_expiry_year | The expiration year is invalid |
invalid_cvc | The CVC/CVV code is invalid |
card_declined | The card was declined by the issuer |
424242424242424240000000000000024000000000009995