Skip to main content

Supported Versions

Gather card range and 3DS version information.

Overview

Test URI: https://test-api.tokenex.com/v2/ThreeDSecure/SupportedVersions
Prod URI: https://api.tokenex.com/v2/ThreeDSecure/SupportedVersions

Required Permissions: ThreeDSecureGeneralAccess

Request Headers: Authentication and Authorization* denotes a required field

HTTP Request HeaderDescription
tx-tokenex-id*Like a username, this ID logically segments your tokenized data.
tx-apikey*Controls your access to individual function in the API
tx-token-schemeEither the name or the numerical value of the [Token Scheme]../../appendix/universal-token-schemes.mdx) to be used
tx-tokenizeTrue/False. Defaults to False. If False, a TokenEx token can be provided in the "data" parameter. If True, a PAN can be provided, and a TokenEx token will be returned in the response using the token scheme as indicated by the tx-token-scheme header.

Request Parameters

* denotes a required field
NameTypeDescription
data*stringPlaintext PAN to be tokenized or existing TokenEx token to be detokenized and passed along to gather supported 3DS versions for a PAN.
Plaintext PANs and detokenized values must be Luhn compliant.

Response Parameters

NameTypeDescription
tokenstringThe TokenEx token associated with the PAN used in the request.
recommended3DSVersionobjectThe highest supported 3DS version of the three servers - 3DS, ACS, and DS - for each dsIdentifier supplied in the threeDSecureResponse. The authentication request should be sent with the value returned in this field. See Version notice below.
threeDSecureResponseobject arraySee ThreeDSecure Response table below.
thirdPartyStatusCodestringThe HTTP status code of the response provided by the 3DS provider
referenceNumberstringSupply this value when interacting with TokenEx support about a response.
successboolTrue or False dependent upon whether or not TokenEx was able to contact the 3DS provider.
errorstringIf an error occurs outside the threeDSecureResponse, this parameter will contain an error code and message.
messagestringA message in support of the TokenEx success and error parameters
ThreeDSecureResponseTypeDescription
threeDSMethodURLstringRelevant for performing device fingerprinting outside the TokenEx iFrame.
acsStartProtocolVersionstringThe earliest protocol version that is supported by the Access Control Server.
acsEndProtocolVersionstringThe most recent protocol message version number that is supported for the Access Control Server.
acsInfoIndObjectProvides additional information to the 3DS Server. The element lists all applicable values for the card range. See Brand Specific Guidelines for additional values.
01 = Authentication Available at ACS
02 = Attempts Supported by ACS or DS
03 = Decoupled Authentication Supported
04 = Whitelisting Supported
threeDSServerStartVersionstringThe earliest protocol version that is supported by the 3DS Server.
threeDSServerEndVersionstringThe most recent protocol message version number that is supported by the 3DS Server.
directoryServerIDstringRegistered Application Provider Identifier (RID) that is unique to the Payment System.
dsStartProtocolVersionstringThe earliest protocol version that is supported by the Directory Server.
dsEndProtocolVersionstringThe most recent protocol message version number that is supported for the Directory Server.
dsIdentifierstringIndicates the Directory Server for which the card range is enrolled/eligible.
For dual PANs multiple card ranges across Directory Servers will be provided.
Values to be expected:
AMEX
CB
DISCOVER
JCB
MASTERCARD
VISA
threeDSServerTransIDstringUniversally unique transaction identifier assigned by the 3DS Server to identify a single transaction.

Version 2.1.0 Sunset

warning

The version 2.1.0 is being sunset by the following brands: Mastercard, Visa, Discover, JCB, Amex. Authentications requests sent using version 2.1.0 to the respective directory servers (dsIdentifier) will begin returning errors when the sunset dates are reached.

BrandLast Day of SupportSunset
MastercardSeptember 23, 2024September 24, 2024
VisaSeptember 24, 2024September 25, 2024
DiscoverSeptember 24, 2024September 25, 2024
JCBSeptember 25, 2024September 26, 2024
AmexSeptember 29, 2024September 30, 2024
Cartes BancairesUnknown*Unknown*

*No sunset information for Cartes Bancaires (CB) has been communicated to our service provider. Using 2.1.0 past September 24, 2024 should be done with caution.

Request and Response Examples

POST /[Test|Prod]/ThreeDSecure/SupportedVersions HTTP/1.1
Content-Type: application/json
tx-tokenex-id:YourTokenExID
tx-apikey:YourAPIKey
tx-token-scheme:4
tx-tokenize:true

{
"data": "4242424242424242"
}