Generate Network Token
Use this API to pass the card details and tokenize with respective card network. Juspay will tokenize the card and expose an identifier to be used for future transactions
Consists of two parts.
Username: API Key obtained from Juspay dashboard
Password: Empty string
Example:-
Basic MUQ2QUxxxxxxxxxxxxU5QTIxQzNFNTQwNkFDMEZCOg==
application/x-www-form-urlencoded
We recommend passing the customer_id as the x-routing-id. If the customer is checking out as a guest, you can pass an alternative ID that helps track the payment session lifecycle. For example, this could be an Order ID or Cart ID.
This ID is associated with the customer. It plays a key role in ensuring consistency and maintaining connections across different systems. If you fail to pass the same x-routing-id for the same customer in all related API calls, it could lead to issues with API functionality. Therefore, it’s crucial that you use the same x-routing-id for all requests tied to the same customer.
Example:- customer_1122
Actual Card to be tokenized in an encrypted format. Generate and use an RSA key to generate EncryptedCardData
15/16 digit card number
Year in YY format
Month in MM format
Card CVV, 3 digits or 4 digits basis the card brand.
unique identifier passed merchant which signifies that user consent is taken. It could be the transaction_id at zohopay's end
Customerid of the merchant
Mandatory for AMEX Cards
Specifies the token type
Default: NETWORK_TOKEN
Sub Merchant ID on which the Token will be generated
Boolean indicating whether raw token is needed by merchant or not
keyId to be used for encrypting and decrypting payloads
Status of the response
payload with the token details
errorCode incase tokenisation fails
errorMessage incase tokenisation fails

