curl -X PATCH '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 '{
"upi_transaction_id":"123qwert12",
"upi_credentials":{
// credentials received from WebCL
},
"vpa":"abc@upiexample",
"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
}
]
}
}
Change UPI PIN
Change UPI PIN using the Razorpay TPAP Pro API.
PATCH
/
v1
/
upi
/
tpap
/
fundsources
/
:id
/
upi_pin?expand[]=vpas
curl -X PATCH '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 '{
"upi_transaction_id":"123qwert12",
"upi_credentials":{
// credentials received from WebCL
},
"vpa":"abc@upiexample",
"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
Use this endpoint to change the UPI PIN.
Watch Out!The user should remember the current PIN.
curl -X PATCH '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 '{
"upi_transaction_id":"123qwert12",
"upi_credentials":{
// credentials received from WebCL
},
"vpa":"abc@upiexample",
"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
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 November 27, 2026
Was this page helpful?