// Core Concepts
Tokens
A token is what your systems store instead of a card. Card Vault issues two different token formats for two different jobs -- knowing which is which will save you a debugging session.
Vault token
Returned when a card is vaulted (hosted form, embedded fields, card request, or the
SDK vault call). It is a long, opaque string. Use it to reference the card
profile: retrieving card metadata, updating the profile, managing its
lifecycle. It travels in the X-Card-Token request header.
Charge token
A short token in GUID form, shown in your dashboard and returned by token listing
endpoints. Use it to charge a vaulted card: it goes in the body of
POST /v1/payments/charge/token.
The two formats are not interchangeable. Sending a vault token
where a charge token is expected (or vice versa) does not produce a format error --
it produces a clean
404 Not Found, because the lookup simply misses.
If you are staring at a 404 and the card definitely exists, check which token type
you are sending.
Properties of both
- Tokens are account-scoped: a token issued to one account resolves to nothing in any other account.
- Tokens are not reversible outside Card Vault. Possession of a token never exposes the PAN.
- Tokens carry no exploitable structure -- storing them puts your systems out of PCI scope for storage.
- When a card is removed or expires out of the vault, its tokens stop resolving. Webhooks tell you when that happens (see Webhooks).