Skip to main content

Use Network Token Function

Insert a network token and/or a network token expiration date into the request body.

The Use Network Token function can be used to send payment transactions to your PSP, or some third-party API, using a network token rather than the PAN.

Parameter NameValue
FUNCTIONUseNetworkToken
TOKENThe TokenEx token to which the network token and/or network token expiration date are associated with.
TYPEPossible Values: NetworkToken, NetworkTokenExpiryDate
FORMATOptional Parameter with default value "MMYY"
Possible Values: MMYYYY, M, MM, YYYY, YY, MMYY, YYMM, YYYYMM

*Applicable only to NetworkTokenExpiryDate Type

Card Authorization Using Network Token Example:

POST /Detokenize HTTP/1.1
Host: test-tgapi.tokenex.com
Content-Type: application/json
TX-URL: Receiving_URL
TX-TokenEx-ID: YourTokenExID
TX-APIKey: YourAPIKey

{
"PaymentToken": {
"cardNumber": "{{{{FUNCTION:UseNetworkToken,TOKEN:476120FDallZ7718,TYPE:NetworkToken}}}}",
"expDate": "{{{{FUNCTION:UseNetworkToken,TOKEN:476120FDallZ7718,TYPE:NetworkTokenExpiryDate,FORMAT:YYMM}}}}"
}
}