API Test Keys
Get the NPCI Token
POST
/v1/upi/tpap/devices/token
Click to copy
Use this endpoint to get the NPCI token.
Is this page helpful?
Request
1curl -X POST 'api.rzp.<bank>.com/v1/upi/tpap/devices/token' \2-u [YOUR_KEY_ID]:[YOUR_SECRET] \3-H "Content-type: application/json" \4-H "x-device-fingerprint: <device_fingerprint>" \5-H "x-device-fingerprint-timestamp: 1496918882000" \6-H "x-customer-reference: customer-id-from-customer" \7-d '{8"upi_transaction_id": "123qwert12",9"challenge": "challenge received from CL"10}'
Response
1{2"mobile": "string",3"token": "string"4}
Request Parameters
upi_transaction_id
*
string
The unique identifier of the transaction across all UPI entities created by the originator.
challenge
*
string
TPAP when executing Get Challenge in CL to receive a challenge from the common library. You can fetch the NPCI token using this challenge.
Response Parameters
token
string
The NPCI token received for the challenge. TPAP uses this token to register the application and communicate securely with CL and NPCI.
mobile
string
The mobile number of the customer.
Get the NPCI Token
POST
/v1/upi/tpap/devices/token
Click to copy
Use this endpoint to get the NPCI token.
Is this page helpful?
Request Parameters
upi_transaction_id
*
string
The unique identifier of the transaction across all UPI entities created by the originator.
challenge
*
string
TPAP when executing Get Challenge in CL to receive a challenge from the common library. You can fetch the NPCI token using this challenge.
Response Parameters
token
string
The NPCI token received for the challenge. TPAP uses this token to register the application and communicate securely with CL and NPCI.
mobile
string
The mobile number of the customer.
Request
1curl -X POST 'api.rzp.<bank>.com/v1/upi/tpap/devices/token' \2-u [YOUR_KEY_ID]:[YOUR_SECRET] \3-H "Content-type: application/json" \4-H "x-device-fingerprint: <device_fingerprint>" \5-H "x-device-fingerprint-timestamp: 1496918882000" \6-H "x-customer-reference: customer-id-from-customer" \7-d '{8"upi_transaction_id": "123qwert12",9"challenge": "challenge received from CL"10}'
Response
1{2"mobile": "string",3"token": "string"4}