Skip to main content

Card Tokenization

Quick Reference

WhatReplace PANs with secure tokens
WhyEnable 1-click and recurring payments with A55's secure vault
DifficultyIntermediate
PrerequisitesAuthentication → Create charge

Tokenization replaces raw card numbers (PANs) with non-reversible tokens that can be stored, reused, and passed through your systems without exposing sensitive data.

Why tokenize

BenefitDetail
Secure storageTokens are not PANs — you can store and reuse them without handling sensitive card data
1-click checkoutCharge returning customers without collecting card details again
Recurring billingUse the same token across subscription cycles without re-authentication
Higher approval ratesAcquirers recognize tokenized transactions as lower risk
Card lifecycle continuityWhen a card is reissued, A55 can update the token automatically via account updater

Automatic vs explicit tokenization

AspectAutomaticExplicit
TriggerA55 creates a token on every successful chargeMerchant calls the tokenize endpoint before charging
PAN exposureMerchant never handles raw PAN after first chargeMerchant sends PAN once to the tokenize endpoint
Use caseSimplest path — no extra API callsFull control over token lifecycle and metadata
ActivationEnabled per wallet via dashboard or APIAlways available
Enable automatic tokenization

Automatic tokenization is disabled by default. Enable it in the Dashboard under Wallet Settings > Tokenization or contact your account manager.

Token lifecycle

Explicit tokenization

POST https://core-manager.a55.tech/api/v1/bank/wallet/{wallet_uuid}/tokenize/

Postman: Import the A55 API Collection to test this endpoint interactively.

curl -X POST https://core-manager.a55.tech/api/v1/bank/wallet/{wallet_uuid}/tokenize/ \
-H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
-d '{"card_number":"4111111111111111","expiry_month":"12","expiry_year":"2027","holder_name":"Jane Doe"}'
Response
{
"card_token": "tok_a55_7f3c2d1e",
"brand": "visa",
"last_four": "1111",
"expiry_month": "12",
"expiry_year": "2027"
}

Charging with a token

Pass card_token instead of raw card fields in your charge request:

{ "amount": 15000, "currency": "BRL", "card_token": "tok_a55_7f3c2d1e" }
Token takes priority

When both card_token and raw card fields are present, the token takes priority. A55 ignores the raw fields entirely.

Behavior notes

BehaviorDetail
Token prioritycard_token overrides card_number if both are sent
Automatic modeReturns the token in the charge response under card_token
CompatibilityTokens are scoped to a single wallet and cannot be shared across wallets
No CVV storageCVV is never stored — it is used only for the initial transaction
LifecycleTokens remain active until explicitly deleted or the card expires
Explicit vs automatic

Explicit tokenization requires you to send a raw PAN and CVV to the API. A55 encrypts and vaults the data immediately upon receipt. Use automatic tokenization if you want to avoid handling card data entirely.