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.
HEADS-UP!
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
Parameter | Type | Description |
---|---|---|
APIKey | string | See Authentication |
TokenExID | string | Your TokenEx ID |
EncryptedData | string | The encrypted value of the sensitive data you wish to tokenize |
EncryptedCvv | string | The encrypted value of the CVV you wish to associate |
TokenScheme | Enum | See Standard Token Schemes |
{
"APIKey":"YourAPIKey",
"TokenExID":"YourTokenExID",
"EcryptedData":"dGhpcyBpcyBzb21lIHJlYWxseSBsb25nIGNpcGhlciB0ZXh0IGZyb20gb3VyIFJTQSBsaWJyYXJ5",
"TokenScheme":1,
"EncryptedCvv": "40bd001563085fc35165329ea1ff5c5ecbdbbeef"
}
Response Parameters
Parameter | Type | Description |
---|---|---|
Token | string | The token as generated by TokenEx that references the sensitive data. |
FirstSix | string | First 6 characters of sensitive data. Provided when card length exceeds 14 characters. |
LastFour | string | Last 4 characters of sensitive data. Provided when card length exceeds 14 characters. |
Success | bool | Indicator if the result was successful or not. |
ReferenceNumber | string | Reference number for the TokenEx transaction. |
Error | string | Error Code and human-readable description, blank if call succeeded. |
{
"Error":"",
"ReferenceNumber":"15102913382030662954",
"Success":true,
"Token":"545454587415454",
"FirstSix":"545454",
"LastFour":"5454"
}
Updated over 2 years ago