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 10 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
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.allowed_payersarray Details of customer bank accounts which will be allowed to make payments to your virtual account. The Parent parameter under which the customer bank account details must be passed as child parameters.
typestring The type of account through which the customer will make the payment. Possible value is bank_account.
idstring Unique identifier of the allowed_payers account.
bank_accountobject Indicates the bank account details such as ifsc and account_number.
ifscstring The IFSC associated with the bank account through which the customer is expected to make the payment.account_numberstring The bank account number through which the customer is expected to make the payment.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.