Fetch Virtual Account by ID🔗
Retrieves a specific virtual account using its ID.
Path Parameter🔗
idmandatorystringThe unique identifier of the virtual account whose details are to be fetched.
You can retrieve details of virtual accounts and payments made to virtual accounts using these APIs.
APIs are available to:
Fetch Virtual Account by ID
Fetch All Virtual Accounts
Fetch Payments made to a Virtual Account
Fetch Payment Details using ID and Transfer Method
Allowed Payers:
allowed_payers is an optional parameter. Returns in the response only if you have sent those while creating the virtual account. You can add account details of 5 allowed payers for a virtual account.
Retrieves a specific virtual account using its ID.
id mandatorystring The unique identifier of the virtual account whose details are to be fetched.Retrieves all the virtual accounts that are created by you.
frominteger Timestamp, in seconds, from when virtual accounts are to be fetched.tointeger Timestamp, in seconds, till when virtual accounts are to be fetched.countinteger Number of virtual accounts to be fetched. The default value is 10 and the maximum value is 100. This can be used for pagination, in combination with skip.skipinteger Number of records to be skipped while fetching the virtual accounts. This can be used for pagination, in combination with count.Retrieves all the payments made to a specific virtual account for a given ID.
id mandatorystring The unique identifier of the virtual account for which the payment details are to be fetched.The response parameters are the same as those mentioned in Fetch a Payment API.
frominteger Timestamp, in seconds, from when payments are to be fetched.tointeger Timestamp, in seconds, till when payments are to be fetched.countinteger Number of payments to be fetched. The default value is 10 and the maximum value is 100. This can be used for pagination, in combination with skip.skipinteger Number of records to be skipped while fetching the payments. This can be used for pagination, in combination with count.Retrieve the payment details for a given payment ID and transfer method.
Retrieves the bank transfer details of a given payment ID.
Note:
If Razorpay does not receive the bank account information of the customer from the remitting bank, the payer_bank_account key will be set to null.
id mandatorystring The unique identifier of the payment made to the virtual account.idstring The unique identifier of the bank transfer.
entitystring The name of the entity. Here, it is bank_transfer.
payment_idstring The unique identifier of the payment.
modestring The mode of bank transfer used. Possible values are:
- NEFT
- RTGS
- IMPS
- UPI
bank_referencestring Unique reference number provided by the bank for the transaction.
payer_bank_accountobject The payer bank account details from which payment is received.
idstring The unique identifier of the customer's bank account.entitystring The name of the entity. Here, it is bank_account.ifscstring The IFSC associated with the bank account.bank_namestring The name of the bank in which the customer has an account.notesobject Any custom notes added to the virtual bank account.account_numberstring The unique account number of the customer.virtual_account_idstring The unique identifier of the virtual account.
virtual_accountobject Details of the virtual account.
idstring The unique identifier of the virtual account.
namestring The merchant billing label as it appears on Razorpay Dashboard.
entitystring The name of the entity. Here, it is virtual account.
statusstring Indicates the status of the virtual account. Possible values are:
- active
- closed
descriptionstring A brief description about the virtual account.
amount_paidinteger The amount paid by the customer to the virtual account.
notesobject Any custom notes added during the creation of the virtual account.
customer_idstring The unique identifier of the customer the virtual account is linked with. For more details, refer to the Customers API.
receiversobject Configuration of desired receivers for the virtual account.
idstring The unique identifier of the virtual bank account. For example, ba_Di5gbQsGn0QSz3.entitystring The name of the entity. Here, it is bank_account.ifscstring The IFSC for the virtual bank account created. For example, RATN0VAAPIS.bank_namestring The bank associated with the virtual bank account. For example, RBL.account_numberstring The unique account number provided by the bank. For example, 1112220061746877.namestring The merchant billing label as it appears on Razorpay Dashboard.notesobject Any custom notes added during the creation of the virtual account.close_byinteger UNIX timestamp at which the virtual account is scheduled to be automatically closed. The time must be at least 15 minutes after current time. The date range can be set till 2147483647 in UNIX timestamp format (equivalent to Tuesday, January 19, 2038 8:44:07 AM GMT+05:30).
Any request beyond 2147483647 UNIX timestamp will fail.
closed_atinteger UNIX timestamp at which the virtual account is automatically closed.
created_atinteger UNIX timestamp at which the virtual account was created.
Retrieves the UPI transfer details of a given payment ID.
id mandatorystring The unique identifier of the payment made to the virtual account.idstring The unique identifier of the UPI transfer.
entitystring The name of the entity. Here, it is upi_transfer.
amountinteger The amount paid by the customer.
payer_vpastring The UPI ID of the customer that is used to make the payment.
payer_bankstring The name of the customer's bank.
payer_accountstring The bank account number of the customer that is linked to the UPI ID.
payer_ifscstring The IFSC associated with the bank account.
payment_idstring The unique identifier of the payment made by the customer.
npci_reference_idstring The unique reference number provided by NPCI for the payment.
virtual_account_idstring The unique identifier of the virtual account.
virtual_accountobject Details of the virtual account.
idstring The unique identifier of the virtual account.
namestring The merchant billing label as it appears on Razorpay Dashboard.
entitystring The name of the entity. Here, it is virtual account.
statusstring Indicates the status of the virtual account. Possible values are:
- active
- closed
descriptionstring A brief description about the virtual account.
amount_paidinteger The amount paid by the customer into the virtual account.
notesobject Any custom notes added during the creation of the virtual account.
customer_idstring The unique identifier of the customer the virtual account is linked with. For more details, refer to the Customers API.
receiversobject Configuration of desired receivers for the virtual account.
idstring The unique identifier of the virtual UPI ID. For example, vpa_CkTmLXqVYPkbxx.entitystring The name of the entity. Here, it is vpa.usernamestring The unique identifier which forms the first half of the virtual UPI ID. For example, rpy.payto00000gaurikumar.handlestring The bank name that forms the second half of the virtual UPI ID. For example, icici.addressstring The UPI ID that combines the username and the handle with the @ symbol. For example, rpy.payto00000gaurikumar@icici. This parameter appears in the response only when vpa is passed as the receiver type.close_byinteger UNIX timestamp at which the virtual account is scheduled to be automatically closed. The time must be at least 15 minutes after current time. The date range can be set till 2147483647 in UNIX timestamp format (equivalent to Tuesday, January 19, 2038 8:44:07 AM GMT+05:30).
Any request beyond 2147483647 UNIX timestamp will fail.
closed_atinteger UNIX timestamp at which the virtual account is automatically closed.
created_atinteger UNIX timestamp at which the virtual account was created.