curl -X POST 'api.rzp.<bank>.com/v1/upi/tpap/fundsources/:id/otp' \
-u [YOUR_KEY_ID]:[YOUR_SECRET] \
-H "Content-type: application/json" \
-H "x-device-fingerprint: <device_fingerprint>" \
-H "x-device-fingerprint-timestamp: 1496918882000" \
-H "x-customer-reference: customer-id-from-customer" \
-d '{
"vpa":"vpa@handle",
"card":{
"last6":"123456",
"expiry_month":"02",
"expiry_year":"26"
},
"upi_transaction_id":"123456",
"device":{
"geocode":"1234.1213",
"ip":"198.1.1.1"
}
}'
{
"entity":"upi.fundsource",
"id":"fs_1234",
"type":"savings",
"customer_name":"name",
"masked_account_number":"xx9987",
"ifsc":"IFSC001",
"upi_pin_set":true,
"upi_pin_length":4,
"otp_length":4,
"atm_pin_length":4,
"fundsource_provider":{
"name":"HDFC Bank",
"upi_iin":"600007",
"upi_enabled":false,
"mobile_registration_format":"format1",
"logo_url":"<bank logo url>"
},
"vpas":{
"entity":"collection",
"count":1,
"items":[
{
"mobile":"9999999999",
"address":"anc@handle",
"status":"active",
"primary":true
}
]
},
"upi_transaction_id":"123456"
}
Generate OTP for Payment Source
Generate OTP for payment source using the Razorpay TPAP Pro API.
POST
/
v1
/
upi
/
tpap
/
fundsources
/
:id
/
otp
curl -X POST 'api.rzp.<bank>.com/v1/upi/tpap/fundsources/:id/otp' \
-u [YOUR_KEY_ID]:[YOUR_SECRET] \
-H "Content-type: application/json" \
-H "x-device-fingerprint: <device_fingerprint>" \
-H "x-device-fingerprint-timestamp: 1496918882000" \
-H "x-customer-reference: customer-id-from-customer" \
-d '{
"vpa":"vpa@handle",
"card":{
"last6":"123456",
"expiry_month":"02",
"expiry_year":"26"
},
"upi_transaction_id":"123456",
"device":{
"geocode":"1234.1213",
"ip":"198.1.1.1"
}
}'
{
"entity":"upi.fundsource",
"id":"fs_1234",
"type":"savings",
"customer_name":"name",
"masked_account_number":"xx9987",
"ifsc":"IFSC001",
"upi_pin_set":true,
"upi_pin_length":4,
"otp_length":4,
"atm_pin_length":4,
"fundsource_provider":{
"name":"HDFC Bank",
"upi_iin":"600007",
"upi_enabled":false,
"mobile_registration_format":"format1",
"logo_url":"<bank logo url>"
},
"vpas":{
"entity":"collection",
"count":1,
"items":[
{
"mobile":"9999999999",
"address":"anc@handle",
"status":"active",
"primary":true
}
]
},
"upi_transaction_id":"123456"
}
Available in🇮🇳 India
Use this endpoint to generate the OTP via the remitter bank while setting the UPI PIN.
curl -X POST 'api.rzp.<bank>.com/v1/upi/tpap/fundsources/:id/otp' \
-u [YOUR_KEY_ID]:[YOUR_SECRET] \
-H "Content-type: application/json" \
-H "x-device-fingerprint: <device_fingerprint>" \
-H "x-device-fingerprint-timestamp: 1496918882000" \
-H "x-customer-reference: customer-id-from-customer" \
-d '{
"vpa":"vpa@handle",
"card":{
"last6":"123456",
"expiry_month":"02",
"expiry_year":"26"
},
"upi_transaction_id":"123456",
"device":{
"geocode":"1234.1213",
"ip":"198.1.1.1"
}
}'
{
"entity":"upi.fundsource",
"id":"fs_1234",
"type":"savings",
"customer_name":"name",
"masked_account_number":"xx9987",
"ifsc":"IFSC001",
"upi_pin_set":true,
"upi_pin_length":4,
"otp_length":4,
"atm_pin_length":4,
"fundsource_provider":{
"name":"HDFC Bank",
"upi_iin":"600007",
"upi_enabled":false,
"mobile_registration_format":"format1",
"logo_url":"<bank logo url>"
},
"vpas":{
"entity":"collection",
"count":1,
"items":[
{
"mobile":"9999999999",
"address":"anc@handle",
"status":"active",
"primary":true
}
]
},
"upi_transaction_id":"123456"
}
Query Parameters
Request Parameters
The last 6 digits of the card, which the fund source provider will verify before setting the PIN.
Response Parameters
Indicates whether the UPI PIN is set. Possible values:
true: UPI PIN is set.false: UPI PIN is not set.
Payment source provider details. Here, if the payment source is a bank, payment source providers will be bank information.
Indicates whether the provider has UPI enabled. Possible values:
true: UPI is enabled.false: UPI is not enabled.
Indicates if the VPA linked to the payment source marked as primary.
true: VPA is linked to the payment source.false: VPA is not linked to the payment source.
Last modified on October 8, 2026
Was this page helpful?