On This Page
Create Tokens
This section describes how to create tokens using
TMS
.The
tokenize
API enables you to create multiple TMS
token types such as instrument identifiers, payment instruments,
and customer tokens. You can create these tokens individually or all together in a
single request. You can create these
TMS
tokens in a single request:- Customer token
- Payment instrument
- Shipping address token
- Instrument identifier
For information about the token types that are available with
TMS
, see Introduction to the Token Management Service. You can also create these tokens using the information that is retrieved from a
transient token. For information on transient tokens, see the
Microform Integration
and Unified Checkout
developer guides.IMPORTANT
The
tokenize
API requires
message-level encryption (MLE). You must encrypt the payload using an encrypted JWT
to send requests. For information about enabling MLE, see How to Set up REST
in the Getting Started with REST Developer Guide
and follow the steps based on your integration method. A successful response to a request returns status and identifiers for each token.
Endpoint
Test:
POST
https://apitest.cybersource.com
/tms/v2/tokenizeProduction:
POST
https://api.cybersource.com
/tms/v2/tokenizeProduction in India:
POST
https://api.in.cybersource.com
/tms/v2/tokenizeProduction in Saudi Arabia:
POST
https://api.sa.cybersource.com
/tms/v2/tokenizeTest in Saudi Arabia:
POST
https://apitest.sa.cybersource.com
/tms/v2/tokenize