curl -X POST 'api.rzp.<bank>.com/v1/upi/tpap/vpa/link?expand[]=fundsources' \
-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":"customer@handle",
"fundsources":[
{
"fundsource_id":"fs_1234",
"primary":true
}
]
}'
{
"entity":"upi.vpa",
"customer_reference":"cust_1234",
"mobile":"999999999",
"address":"kunal-1@rzpa",
"status":"active",
"fundsources":{
"entity":"collection",
"count":2,
"items":[
{
"id":"fs_1234",
"customer_name":"kunal1",
"masked_account_number":"xxxxxx8990",
"account_reference_number":"999988126236990",
"type":"savings",
"ifsc":"SBI00001",
"upi_pin_set":true,
"upi_pin_length":4,
"otp_length":4,
"atm_pin_length":6,
"fundsource_provider":{
"name":"HDFC Bank",
"upi_iin":"600007",
"upi_enabled":false,
"mobile_registration_format":"format1",
"logo_url":"<bank logo url>"
},
"primary":true
},
{
"id":"dummyfs1111111",
"customer_name":"kunal1",
"masked_account_number":"xxxxxx8990",
"account_reference_number":"999988126236990",
"type":"savings",
"ifsc":"SBI00001",
"upi_pin_set":true,
"upi_pin_length":4,
"otp_length":4,
"atm_pin_length":6,
"fundsource_provider":{
"name":"HDFC Bank",
"upi_iin":"600007",
"upi_enabled":false,
"mobile_registration_format":"format1",
"logo_url":"<bank logo url>"
}
}
]
}
}
Create a VPA and Link to Payment Source
Create a VPA and link it to the payment source using the Razorpay TPAP Pro API.
POST
/
v1
/
upi
/
tpap
/
vpa
/
link?expand[]=fundsources
curl -X POST 'api.rzp.<bank>.com/v1/upi/tpap/vpa/link?expand[]=fundsources' \
-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":"customer@handle",
"fundsources":[
{
"fundsource_id":"fs_1234",
"primary":true
}
]
}'
{
"entity":"upi.vpa",
"customer_reference":"cust_1234",
"mobile":"999999999",
"address":"kunal-1@rzpa",
"status":"active",
"fundsources":{
"entity":"collection",
"count":2,
"items":[
{
"id":"fs_1234",
"customer_name":"kunal1",
"masked_account_number":"xxxxxx8990",
"account_reference_number":"999988126236990",
"type":"savings",
"ifsc":"SBI00001",
"upi_pin_set":true,
"upi_pin_length":4,
"otp_length":4,
"atm_pin_length":6,
"fundsource_provider":{
"name":"HDFC Bank",
"upi_iin":"600007",
"upi_enabled":false,
"mobile_registration_format":"format1",
"logo_url":"<bank logo url>"
},
"primary":true
},
{
"id":"dummyfs1111111",
"customer_name":"kunal1",
"masked_account_number":"xxxxxx8990",
"account_reference_number":"999988126236990",
"type":"savings",
"ifsc":"SBI00001",
"upi_pin_set":true,
"upi_pin_length":4,
"otp_length":4,
"atm_pin_length":6,
"fundsource_provider":{
"name":"HDFC Bank",
"upi_iin":"600007",
"upi_enabled":false,
"mobile_registration_format":"format1",
"logo_url":"<bank logo url>"
}
}
]
}
}
Available in🇮🇳 India
If not already linked, create a VPA and link it with a list of payment sources. The expansion in the request URL returns the expanded payment source if it is passed in the query parameters. Use this endpoint to create a VPA and link it to a payment source.
curl -X POST 'api.rzp.<bank>.com/v1/upi/tpap/vpa/link?expand[]=fundsources' \
-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":"customer@handle",
"fundsources":[
{
"fundsource_id":"fs_1234",
"primary":true
}
]
}'
{
"entity":"upi.vpa",
"customer_reference":"cust_1234",
"mobile":"999999999",
"address":"kunal-1@rzpa",
"status":"active",
"fundsources":{
"entity":"collection",
"count":2,
"items":[
{
"id":"fs_1234",
"customer_name":"kunal1",
"masked_account_number":"xxxxxx8990",
"account_reference_number":"999988126236990",
"type":"savings",
"ifsc":"SBI00001",
"upi_pin_set":true,
"upi_pin_length":4,
"otp_length":4,
"atm_pin_length":6,
"fundsource_provider":{
"name":"HDFC Bank",
"upi_iin":"600007",
"upi_enabled":false,
"mobile_registration_format":"format1",
"logo_url":"<bank logo url>"
},
"primary":true
},
{
"id":"dummyfs1111111",
"customer_name":"kunal1",
"masked_account_number":"xxxxxx8990",
"account_reference_number":"999988126236990",
"type":"savings",
"ifsc":"SBI00001",
"upi_pin_set":true,
"upi_pin_length":4,
"otp_length":4,
"atm_pin_length":6,
"fundsource_provider":{
"name":"HDFC Bank",
"upi_iin":"600007",
"upi_enabled":false,
"mobile_registration_format":"format1",
"logo_url":"<bank logo url>"
}
}
]
}
}
Request Parameters
The field to set the given VPA payment source link as primary.
true: VPA is linked to the payment source.false: VPA is not linked to the payment source.
Response Parameters
The customer identifier. You must pass the customer identifier at the TPAP end in this attribute.
Indicates whether VPA payment source is linked primary.
true: VPA is linked to the payment source.false: VPA is not linked to the payment source.
Type of the payment source. Possible values:
savingscurrentnon resident ordinarynon resident ordinarysecured overdraftcreditppi
Indicates whether UPI PIN is set for payment source. Possible values:
true: UPI PIN is set.false: UPI PIN is not set.
Indicates whether UPI is enabled to the payment source provider. Possible values:
true: UPI is enabled.false: UPI is not enabled.
Last modified on October 8, 2026
Was this page helpful?