Skip to main content

TokenizeFromEncryptedValues

TokenizeFromEncryptedValues is used to tokenize a credit card primary account number (PAN) that has been encrypted with the TokenEx public RSA key. An encrypted CVV may optionally be associated with the token.

warning

TokenEx API v1 has been deprecated and is now in break/fix mode. All new enhancements are being added to API v2.

URI: https://test-api.tokenex.com/PciTokenServices.svc/REST/TokenizeFromEncryptedValues

Request Parameters

ParameterTypeDescription
APIKeystringSee Authentication
TokenExIDstringYour TokenEx ID
EncryptedDatastringThe encrypted value of the sensitive data you wish to tokenize
EncryptedCvvstringThe encrypted value of the CVV you wish to associate
TokenSchemeEnumSee Standard Token Schemes
{
"APIKey": "YourAPIKey",
"TokenExID": "YourTokenExID",
"EcryptedData": "dGhpcyBpcyBzb21lIHJlYWxseSBsb25nIGNpcGhlciB0ZXh0IGZyb20gb3VyIFJTQSBsaWJyYXJ5",
"TokenScheme": 1,
"EncryptedCvv": "40bd001563085fc35165329ea1ff5c5ecbdbbeef"
}

Response Parameters

ParameterTypeDescription
TokenstringThe token as generated by TokenEx that references the sensitive data.
FirstSixstringFirst 6 characters of sensitive data. Provided when card length exceeds 14 characters.
LastFourstringLast 4 characters of sensitive data. Provided when card length exceeds 14 characters.
SuccessboolIndicator if the result was successful or not.
ReferenceNumberstringReference number for the TokenEx transaction.
ErrorstringError Code and human-readable description, blank if call succeeded.
{
"Error": "",
"ReferenceNumber": "15102913382030662954",
"Success": true,
"Token": "545454587415454",
"FirstSix": "545454",
"LastFour": "5454"
}