This page is part of the REST API Guides. Card capture happens in the frontend through the Payments Library; see the Payments Library Guides.
Why Tokenize
- Security: Sensitive data stays in Orchestra’s vault, not your systems
- Compliance: Reduces PCI scope when storing card numbers
- Flexibility: Store any string data (card numbers, JSON, addresses)
Create a Token
Store a string and receive a token reference. Endpoint:POST /StringTokens
StringTokens API Reference
Complete parameter reference and response fields
Retrieve Token Contents
Retrieve the original string stored behind a token. Endpoint:GET /StringTokens/{token}
Retrieve Token Metadata
Get metadata about a token without retrieving the actual contents. Endpoint:GET /StringTokens/{token}/meta
Delete a Token
Permanently delete a stored token. Endpoint:DELETE /StringTokens/{token}
Cards Already Stored at a Payment Provider
If your cards are already tokenized and stored by a payment provider, Orchestra has no control over them. What you can do with them depends on that provider’s capabilities and restrictions, and most providers do not let you take cards out. You can keep charging those cards through the same provider. Send the provider’s token in theuserToken field of a charge or authorize request on that provider’s gateway account, as shown in Using Gateway Tokens. Orchestra passes the token to the provider unchanged. Whether the provider accepts a token that was created outside Orchestra depends on the provider, and on the provider account that created it. This works only for payment providers whose integration supports gateway tokens.
New cards you tokenize in Orchestra are stored in Orchestra’s vault and can be used with any payment provider you connect.
Using Tokens with Payment Gateway
Reference a token in thecardNumber field with an @ prefix when making payment requests:
The
@ prefix tells Orchestra to look up the token value. Without it, the string is treated as a literal card number.Storing Full Card Details
You can store any string, including JSON-stringified card details:Related
Charge Payments
Use tokens in payment requests
StringTokens API
Full endpoint documentation
Gateway Tokenization
Tokens that stay with one gateway