Skip to main content

Get Payment Bundle

This method is used to retrieve a cryptogram for an existing TokenEx token that has a network token associated with it. The cryptogram will be required by your payment gateway or processor to process customer-initiated transactions (CIT) using a network token. A cryptogram is not typically required for subsequent subscription/recurring merchant-initiated transactions (MIT).

Required API Key Permissions: NetworkTokenizationGeneralAccess

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

Request Body Parameters:A denotes an applicable field, A* denotes required under certain conditions, N/A is not applcable, and * denotes a required field under all conditions

ParameterDescriptionVisaMastercardAMEX
bundleMetaDataThe type of bundle to be generated. Possible values: Cryptogram, Token, TokenCryptogram. Defaults to "Cryptogram".AAA
amountThe transaction amount. Up to 10 digits in ‘xxx.xx’ format.N/AN/A*
unpredictableNumberA value to provide variability and uniqueness to the generation of a cryptogram (8-byte hex encoded string). *Required if the GenerateUnpredictableNumber flag is not set during on-boarding of MDES.N/AA*N/A
applicationTransactionCounter*Only required for INAPP PresentationMode type (see Network Tokenize method).A*N/AN/A
cryptogramValueValue of the CAVV cryptogram. *Required for CTAVV type cryptogram. N/A for TAVV and DTVV types.A*N/AN/A
merchantIdMerchant identifier assigned by the acquirer. *Required if available.A*N/AA*
ECIEC indicator for liability shift. *Required when CTAVV type is cryptogram AND BundleMetaData is Cryptogram.A*N/AN/A
tokenAn existing TokenEx token that represents a PAN.***
transactionInitiationTypePossible values: CONSUMER, MERCHANT.AN/AN/A
transactionTypePossible values: ECOM, RECURRING, POS, AFT.*N/AN/A

Response Body Parameters:

ParameterTypeDescription
tokenstringThe token generated by TokenEx that references the sensitive data.
successboolIndicator if the request was successfully processed by TokenEx.
referenceNumberstringTokenEx reference number for the transaction.
errorstringTokenEx Error Code and human readable description.
messagestringHuman readable message about response from TokenEx.
networkResponse.tokenRequestorIdstringTRID associated to the domain to which the token belongs (card brand specific). The format matches with the EMVCo Tokenization specifications.
networkResponse.tokenReferenceIdstringUnique reference identifier for the token generated.
networkResponse.encDatastringBase64 encoded and encrypted sensitive data.
networkResponse.messageIdstringUnique message identifier (GUID format) of this command.
networkResponse.conversationIdstringMessage identifier assigned for the entire conversation (GUID format). Typically, it is generated by the initiator of the flow.
networkResponse.statusCodestringThe four-digit status code.
networkResponse.statusMessagestringHuman readable comments about the status.
networkResponse.decodedEncData.paymentBundle.bundleMetaDatastring enumIt indicates the type of the bundle returned. The valid values depend on the product use cases. Possible values are ECOM_TOKEN, ECOM_CRYPTOGRAM and ECOM_PAN.
networkResponse.decodedEncData.paymentBundle.bundleElements[].typestring enumIt indicates the type of the bundle element. It has pre-defined values. Possible values are TOKEN, TOKEN_EXP (the format is 'YYMM'), ECOM_CRYPTOGRAM, ECI, PSN, TRACK2, PAN, PAN_EXP.
networkResponse.decodedEncData.paymentBundle.bundleElements[].valuestring or objectIt contains the value of the bundle element.
networkResponse.decodedEncData.cardData.panReferenceIdstringThe unique reference ID (GUID format) of the real PAN. It is required except when PAN is provided.
networkResponse.decodedEncData.cardData.paymentAccountReferencestringGlobally unique reference of a cardholder’s PAN. It is commonly abbreviated as PAR.
networkResponse.decodedEncData.cardData.cardSuffixstringThe last four digits of the real PAN.
networkResponse.decodedEncData.cardData.panExpDatestringThe expiry date of the real PAN. The format is 'YYMM'.
networkResponse.decodedEncData.cardData.cardHolderEmbossedNamestringThe embossed name on the physical card.
networkResponse.decodedEncData.cardData.cardCountryCodestringA 2-character country code. The format is based on ISO 3166-1 alpha-2.
networkResponse.decodedEncData.cardData.cardNamestringThe name of the card.
networkResponse.decodedEncData.cardData.cardTypestringThe type of the card product (e.g., Credit, Debit).
networkResponse.decodedEncData.cardData.cardLongDescriptionstring (64 max)Description of card.
networkResponse.decodedEncData.cardData.cardShortDescriptionstring (32 max)Description of card.
networkResponse.decodedEncData.cardData.coBrandedboolIt indicates if the card is a co-branded card.
networkResponse.decodedEncData.cardData.coBrandNamestringThe card co-brand name. It is required if isCoBranded is set to true.
networkResponse.decodedEncData.cardData.cardTypeIndicatorstring []These are indicators (Boolean values) associated with the card. The expected values are PRIVATE_LABEL.
networkResponse.decodedEncData.cardData.expDataPrintedboolIt indicates if the expiration date is printed on the card or not.
networkResponse.decodedEncData.cardData.cvv2PrintedboolIt indicates if the cvv2 is printed on the card or not.
POST /v2/NetworkToken/GetPaymentBundle HTTP/1.1
Host: test-api.tokenex.com
tx-apikey: YourAPIKey
tx-tokenex-id: YourTokenExId
Content-Type: application/json

{
"token": "476120FDallZ7718", // Required
"transactionType": "ECOM" // Required for Visa [ECOM, RECURRING, POS, AFT]
}