Tokenization
Token API
This method generates the token for various accounts.
Token Endpoint: {{GatewayAPIURL}}/Token
Request Field Description
KEY | FIELD STATUS | TYPE | VALUE | DESCRIPTION |
card | ||||
number | Mandatory | numeric | 13 to 19 Digits | Customer’s Card Number |
expiration_date | Mandatory | numeric | MMYY | Credit Card Expiration Date |
Response Field Description
KEY | TYPE | VALUE | DESCRIPTION | |
---|---|---|---|---|
result_code | string | 1 – Success2- Failure3- Error | The status of the token generation | |
result_sub_code | string | 3000- Success Code 3001 – 3006 – Error Codes | Response sub code provided for token generation | |
result_text | string | up to 100 characters APPROVAL, DECLINED | Description of the outcome of the token generation | |
transaction_datetime | string | Format- yyyyMMddTHHmmssZ | Date and Time of the token generation response | |
account data | ||||
token | string | alphanumeric value generated by token generation process | token generated for the card | |
last4 | string | Last 4 card digits | Displays the last 4 digits of the card used for generating the token | |
expiration_date | string | MMYY | The card’s expiration date | |
account_type | string | MASTER CARD- MCVISA- VIAMEX- AXDISCOVER- DSJCB- JCDINERS- DC | Card brand of the account used for generating the token | |
account | string | CC- Credit card | The account type for which the token is generated |