X-Skyflow-Authorization: <ACCESS_TOKEN_FROM_TOKENIZATION_AUTH>
How Tokenization Works
Tonder tokenizes each card field individually rather than creating a single token for the entire card. This means:- Each sensitive field (card number, CVV, expiration month, etc.) receives its own unique token
- Tokens must be used in their corresponding fields when making payment requests
- Tokens are not interchangeable between fields
Authentication Flow
Before using this endpoint, you must:- Get an access token using the Get Tokenization Access Token endpoint
- Use the access token in the
X-Skyflow-Authorization
header for this request - Use the tokens in payment requests via the Process Transaction endpoint
Security Requirements
PCI Compliance
Before using tokenization in production:- Submit PCI DSS compliance documentation
- Complete security questionnaire
- Undergo security review process
- Receive production endpoint access approval
Best Practices
- Use immediately: Send card data for tokenization immediately after collection
- Don’t store raw data: Never store unencrypted card data on your servers
- Secure transmission: Always use HTTPS for all tokenization requests
- Token storage: Safely store the returned tokens for future payment processing
Field Requirements
All card fields are required for tokenization:Field | Format | Description |
---|---|---|
card_number | 13-19 digits | The complete card number without spaces or dashes |
cardholder_name | String (max 255 chars) | Name as it appears on the card |
cvv | 3-4 digits | Card security code |
expiration_month | MM format | Two-digit month (01-12) |
expiration_year | YYYY format | Four-digit year |
Response Format
The response contains individual tokens for each field:Next Steps
For a complete step-by-step guide on using these tokens to process payments, see Create a Payment with Card Tokenization.Authorizations
Access token from /tokenization/auth/ endpoint
Body
The full card number (13-19 digits)
"4242424242424242"
The name as it appears on the card
255
"John Doe"
Card security code (3-4 digits)
"123"
Card expiration month (MM format)
"07"
Card expiration year (YYYY format)
"2025"
Response
Card data tokenized successfully
Token representing the card number
"9230-0892-4469-1474"
Token representing the cardholder name
"c05d89b2-299c-4f93-b49a-42be00d3b64b"
Token representing the CVV
"d31f0da3-0ed3-4ad8-8b68-14c2669a99a7"
Token representing the expiration month
"e401a32e-4174-424f-9688-727005f6a80e"
Token representing the expiration year
"bd9ccc23-3d00-4109-9626-fc6581389063"