Skip to main content

Tokenization

Warning - Endpoint Being Discontinued

This endpoint was discontinued in August 2025. Please migrate to the new solution available at Security Libraries.

API data

API Gateway
This API is used for payment gateway operations:

What is tokenization?

Tokenization is an essential operation to increase transaction security. It replaces sensitive card data with a unique token, ensuring that sensitive information is not exposed during processing.


Generate a token using the card number

This operation lets you create a token for a card, protecting its information. To tokenize, send a POST request as shown below:

POST v1/cards/tokenization

Via REST request with the following body:

Request
  {   
"cardNumber":"string"
}

Data dictionary - Parameters

PROPERTYDESCRIPTIONTYPELOCATIONREQUIREDSIZE
cardNumberCard number to be tokenizedstringbodyyes9 to 19
Tokenization completed successfully
[
{
"numberToken":" 4DB5E9B5-F30E-4416-8E41-20B539426B68"
}
]

Data dictionary - Response

PROPERTYDESCRIPTIONTYPE
numberTokenToken generated for the cardstring