Generate Network Token
/dpm/tsp/v1/tokenization/tokenGenerate Network Token
This endpoint requests a network token for a card directly from the card brand’s Token Service Provider (TSP). A network token replaces the PAN with a brand-issued token you can use in place of the raw card number.
Usage Scenarios:
- Obtaining a network token to use instead of the raw card number in a payment.
- Preparing a card for a network-tokenized transaction that also requires a cryptogram.
Notes:
- Call Generate Cryptogram with the returned network_token_id to obtain the cryptogram required for the payment.
- The network token is issued by the card brand, not by Getnet’s vault.
Body application/json
Buyer identifier. Application-defined information that consumes the Digital Platform API.
Buyer’s email address.
Card brand of the PAN to tokenize with the card brand’s Token Service Provider (TSP).
Source of the card data sent for tokenization.
Card Number (PAN) to tokenize with the card brand’s Token Service Provider (TSP).
Security code. CVV or CVC.
Two-digit card expiration month.
Four-digit card expiration year.
Response
Network token generated successfully.
Trace identifier for the request. Use it when contacting Getnet support about this request.
Identifier of the network token issued by the card brand’s Token Service Provider (TSP). Send it to Generate Cryptogram, and use it in the payment request’s card.number field in place of the raw PAN.
Status of the network token.
Invalid request.
Detailed error message.
Name of the module or service that returned the error.
HTTP status code of the error.
Network tokenization error details.
Invalid Authentication.
Detailed error message.
Name of the module or service that returned the error.
HTTP status code of the error.
Network tokenization error details.
Unprocessable Entity
Detailed error message.
Name of the module or service that returned the error.
HTTP status code of the error.
Network tokenization error details.
Internal server or service error.
Detailed error message.
Name of the module or service that returned the error.
HTTP status code of the error.
Network tokenization error details.