Tokenize
POST/Pci/Tokenize
Tokenize is used to tokenize a credit card primary account number (PAN) and optionally associate a CVV with the token.
Request
Header Parameters
tx-token-scheme stringrequired
The name or the numerical value of the TokenEx token scheme to be used to tokenize the data.
Default value:
PCI
tx-tokenex-id stringrequired
Your TokenEx token vault identifier or vaultless tokenization profile.
Default value:
8149339711073860
tx-apikey stringrequired
Provides access to one or more functions in the TokenEx API.
Default value:
9nRH8CsmeV0hxjV4EFqlyzycGMuRjJsqksTY9BEv
- application/json
Body
data stringrequired
The data to be tokenized.
Default value:
4111111111111111
cvv string
The value of the CVV you want to associate with the token.
Default value:
123
Responses
- 200
200
- application/json
- Schema
- Example (from schema)
- Result
Schema
token string
Example:
411111245ShO1111
firstSix string
Example:
411111
lastFour string
Example:
1111
referenceNumber string
Example:
2201291553541132129
success boolean
Default value:
true
Example:
true
error string
Example:
message string
Example:
Tokenize Successful! CVV is associated.
{
"token": "411111245ShO1111",
"firstSix": "411111",
"lastFour": "1111",
"referenceNumber": "2201291553541132129",
"success": true,
"error": "",
"message": "Tokenize Successful! CVV is associated."
}
{
"token": "411111245ShO1111",
"firstSix": "411111",
"lastFour": "1111",
"referenceNumber": "2201291553541132129",
"success": true,
"error": "",
"message": "Tokenize Successful! CVV is associated."
}
Loading...