vt_ — that Therius stores securely in its vault. Once a card is tokenized, you never need to collect the card details again. Tokens are scoped to your merchant account, carry BIN metadata (card brand, type, and issuer), and work on any future purchase or authorization call exactly like the original card data.
Two Ways to Tokenize
1. During a Payment
Add"tokenize": true inside card.cardData (or card.nonceData if using the JS SDK nonce flow), and include a shopper.id to associate the token with a specific customer. The payment processes normally, and the response includes the new token.
token field alongside the normal payment fields:
token.id against the shopper in your database. It is the only thing you need to charge them again.
Cards on asynchronous payments
A card is saved only once the payment is approved. When the provider answers a card payment withpending (4ON, for example), the response has no token yet: Therius holds the card, encrypted, until the payment settles, then saves it, or erases it if the payment fails. When the card is saved you receive:
- The
payment.captured(orpayment.authorized) webhook, withdata.tokenin the same shape as above, when the card was saved before the webhook was sent. - A
token.createdwebhook withdata.token,data.payment_idanddata.payment_code. This is the reliable one: store the token from it, because the payment webhook can be sent before the card is saved.
2. Standalone Token Creation
CallPOST /token to store one or more cards as tokens without making a payment. This is useful during account setup flows where you want to save a card on file before the first purchase.
token value (vt_...) without processing a charge.
Using a Token on Future Requests
Passcard.tokenData.token instead of card.cardData on any subsequent purchase or authorization. The request shape and the response shape are identical to a normal payment.
CVV on Tokenized Cards
You can optionally includecard.tokenData.cvv when charging a token. Some acquirers require the CVV for cardholder-initiated transactions (CIT) but not for merchant-initiated transactions (MIT) or recurring charges.
Wallet Tokenization
Apple Pay and Google Pay payment methods can also be saved for recurring use. Set"tokenize": true inside the wallet’s own object, alongside a shopper.id.
vt_... token behaves identically to a card token on future requests.
ACH Tokenization
Bank account details submitted via ACH can be tokenized the same way. Set"tokenize": true inside the ach object. bankAccountNumber, bankRoutingNumber, bankAccountType, and payerName are also required on the charge itself (see Bank Transfers).
vt_... token you can use on future ACH charges without asking the shopper for their bank details again — pass it as a flat token in place of the raw bank fields.
Token lifecycle
A token isactive, deleted, erased or expired. Check it at any time with GET /token/{token}.
When card data is erased
Therius does not keep card data forever.- A deleted card is erased 2 years after the latest of its deletion, its last payment and the end of the last subscription that used it. Using the token again moves that date.
- A card nobody deleted is retired when it expired more than 30 days ago, or when no payment was made with it for 18 months. A retired card becomes
deletedwithdeletedReasonexpiredorunused, you receivetoken.deleted, and its data is erased 30 days later. - A card that an active subscription or a payout beneficiary still uses is never retired or erased.
Knowing when a token stops working
- Webhooks:
token.deletedwhen a card is deleted or retired,token.erasedwhen its data is erased, andsubscription.payment_method_removedwhen a shopper deletes the card a subscription renews on. See Webhook events. - Errors: charging a token that can no longer be charged returns
400with acodeyou can branch on.
A subscription keeps charging its card after the shopper deletes it from their saved cards, until you replace the payment method with Update payment method. Use
subscription.payment_method_removed to ask the shopper for a new card in time.
Security
Therius tokens are PCI-safe. A
vt_... token is usable only within the Therius vault and only by your merchant account. It cannot be used to retrieve the raw card number, and it is not accepted by any external payment system. Storing tokens instead of card data means your database is out of scope for PCI DSS requirements related to PANs.
