curl -X POST 'api.rzp.<bank>.com/v1/upi/tpap/fundsources/:id/upi_pin?expand[]=vpas' \
-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 '{
"action":"set",
"upi_credentials":{
// credentials received from CL
},
"upi_transaction_id":"123qwert12",
"vpa":"abc@upiexample",
"card":{
"last6":"123456",
"expiry_month":"02",
"expiry_year":"26"
},
"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
}
]
}
}
Set Or Reset UPI PIN
Set or reset UPI PIN using the Razorpay TPAP Pro API.
POST
/
v1
/
upi
/
tpap
/
fundsources
/
:id
/
upi_pin?expand[]=vpas
curl -X POST 'api.rzp.<bank>.com/v1/upi/tpap/fundsources/:id/upi_pin?expand[]=vpas' \
-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 '{
"action":"set",
"upi_credentials":{
// credentials received from CL
},
"upi_transaction_id":"123qwert12",
"vpa":"abc@upiexample",
"card":{
"last6":"123456",
"expiry_month":"02",
"expiry_year":"26"
},
"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
}
]
}
}
Available in🇮🇳 India
Customer’s card details and OTP are required to set or reset UPI PIN. These details are validated at the payment source provider’s (bank) end before allowing to set the PIN. 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/upi_pin?expand[]=vpas' \
-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 '{
"action":"set",
"upi_credentials":{
// credentials received from CL
},
"upi_transaction_id":"123qwert12",
"vpa":"abc@upiexample",
"card":{
"last6":"123456",
"expiry_month":"02",
"expiry_year":"26"
},
"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
}
]
}
}
Query Parameters
Request Parameters
Indicates whether the action is a set or reset. Both set and reset happen from the same API, so we should specify the action to distinguish between them. Possible values:
setreset
The unique identifier of the transaction across all entities, created by the originator.
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.
Last modified on October 8, 2026
Was this page helpful?