Set the Primary Payment Source
Set the primary payment source using the Razorpay TPAP Pro API.
PATCH
Available in🇮🇳 India
Use this endpoint to set the primary payment source for the VPA.
Request Parameters
string
required
The VPA whose link needs to be updated.
string
required
The unique identifier of the payment source.
Response Parameters
string
This refers to the collection of entity. Here, it is
vpa.string
The customer identifier. Pass this parameter at the TPAP end in this attribute.
string
The mobile number of the VPA linked to the payment source.
string
The VPA of the customer.
enum
Indicates the VPA and payment source linking status. Possible values:
activeinactive
object
The payment source details.
string
The type of entity.
integer
Indicates the number of item in the entity.
object
The payment source object.
string
Unique identifier of the payment source.
string
Name of the customer.
string
Masked account number of the payment source.
string
Account reference number of the payment source.
enum
Type of the payment source. Possible values:
savingscurrentnon resident ordinarynon resident externalsecured overdraftcreditppi
string
IFSC of the payment source.
object
The payment source provider details.
string
The UPI Issuer Identification Numbers (iin) of the payment source provider issued by NPCI.
string
Name of the payment source provider.
boolean
Indicates if the payment source provider has UPI enabled.
true: UPI enabled.false: UPI not enabled.
string
Field to take the bank URL input.
string
The URL of the bank logo.
boolean
Indicates if UPI PIN is set for payment source. Possible values:
true: UPI PIN is set.false: UPI PIN is not set.
integer
The length of the UPI PIN allowed for payment source.
integer
The length of the OTP PIN allowed for payment source.
integer
The ATM PIN length allowed for payment source.
boolean
Indicates if vpa-payment source link is primary.
true: VPA is linked to the payment source.false: VPA is not linked to the payment source.