API Test Keys
Change UPI PIN
PATCH/v1/upi/tpap/fundsources/:id/upi_pin?expand[]=vpasClick to copy
Use this endpoint to change the UPI PIN.
Watch Out!
The user should remember the current PIN.
Is this page helpful?
Curl
1curl -X PATCH 'api.rzp.<bank>.com/v1/upi/tpap/fundsources/:id/upi_pin?expand[]=vpas' \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"upi_credentials":{10// credentials received from WebCL11},12"vpa":"abc@upiexample",13"device":{14"geocode":"1234.1213",15"ip":"198.1.1.1"16}17}'
Response
1{2"entity":"upi.fundsource",3"id":"fs_1234",4"type":"savings",5"customer_name":"name",6"masked_account_number":"xx9987",7"ifsc":"IFSC001",8"upi_pin_set":true,9"upi_pin_length":4,10"otp_length":4,11"atm_pin_length":4,12"fundsource_provider":{13"name":"HDFC Bank",14"upi_iin":"600007",15"upi_enabled":false,16"mobile_registration_format":"format1",17"logo_url":"<bank logo url>"18},19"vpas":{20"entity":"collection",21"count":1,22"items":[23{24"mobile":"9999999999",25"address":"anc@handle",26"status":"active",27"primary":true28}29]30}31}
Query Parameters
idstringThe payment source identifier.
Request Parameters
upi_credentials *
stringThe encrypted UPI PIN. NPCI credentials is the output from the WebCL page.
upi_transaction_id *
stringThe unique identifier of the transaction across all entities, created by the originator.
device stringDevice details.
Show child parameters (2)
Response Parameters
entitystring Name of the entity. Here, it is fundsource.
idstringUnique identifier of the entity.
typestringType of account.
customer_namestringName of the account holder.
masked_account_numberstringMasked account number of the customer.
ifscstringIFSC of the bank.
upi_iinstringUPI Issuer Identification Numbers (iin) of the payment source provider issued by NPCI.
upi_pin_setbooleanIndicates whether the UPI PIN is set. Possible values:
- true: UPI PIN is set.
- false: UPI PIN is not set.
upi_pin_lengthintegerLength of the UPI PIN.
otp_lengthintegerLength of the OTP.
atm_pin_lengthintegerLength of the ATM PIN.
fundsource_providerobjectPayment source provider details. Here, if the payment source is a bank, payment source providers will be bank information.
Show child parameters (5)
vpasarrayDetails of the VPAs linked to the payment source.
Show child parameters (3)
Change UPI PIN
PATCH/v1/upi/tpap/fundsources/:id/upi_pin?expand[]=vpasClick to copy
Use this endpoint to change the UPI PIN.
Watch Out!
The user should remember the current PIN.
Is this page helpful?
Query Parameters
idstringThe payment source identifier.
Request Parameters
upi_credentials *
stringThe encrypted UPI PIN. NPCI credentials is the output from the WebCL page.
upi_transaction_id *
stringThe unique identifier of the transaction across all entities, created by the originator.
device stringDevice details.
Show child parameters (2)
Response Parameters
entitystring Name of the entity. Here, it is fundsource.
idstringUnique identifier of the entity.
typestringType of account.
customer_namestringName of the account holder.
masked_account_numberstringMasked account number of the customer.
ifscstringIFSC of the bank.
upi_iinstringUPI Issuer Identification Numbers (iin) of the payment source provider issued by NPCI.
upi_pin_setbooleanIndicates whether the UPI PIN is set. Possible values:
- true: UPI PIN is set.
- false: UPI PIN is not set.
upi_pin_lengthintegerLength of the UPI PIN.
otp_lengthintegerLength of the OTP.
atm_pin_lengthintegerLength of the ATM PIN.
fundsource_providerobjectPayment source provider details. Here, if the payment source is a bank, payment source providers will be bank information.
Show child parameters (5)
vpasarrayDetails of the VPAs linked to the payment source.
Show child parameters (3)
Curl
1curl -X PATCH 'api.rzp.<bank>.com/v1/upi/tpap/fundsources/:id/upi_pin?expand[]=vpas' \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"upi_credentials":{10// credentials received from WebCL11},12"vpa":"abc@upiexample",13"device":{14"geocode":"1234.1213",15"ip":"198.1.1.1"16}17}'
Response
1{2"entity":"upi.fundsource",3"id":"fs_1234",4"type":"savings",5"customer_name":"name",6"masked_account_number":"xx9987",7"ifsc":"IFSC001",8"upi_pin_set":true,9"upi_pin_length":4,10"otp_length":4,11"atm_pin_length":4,12"fundsource_provider":{13"name":"HDFC Bank",14"upi_iin":"600007",15"upi_enabled":false,16"mobile_registration_format":"format1",17"logo_url":"<bank logo url>"18},19"vpas":{20"entity":"collection",21"count":1,22"items":[23{24"mobile":"9999999999",25"address":"anc@handle",26"status":"active",27"primary":true28}29]30}31}