Given below is the sample code for the Create a Virtual Account API. Pass the
account_id of the sub-merchant using
X-Razorpay-Account in the header. Refer to the
json object Configuration of desired receivers for the virtual account.
array List of desired receiver types. Possible values:
json object Descriptor details for the virtual UPI ID. This is to be passed only when
vpa is passed as the receiver
string You can provide a custom descriptor for the UPI ID. This is a unique identifier provided by you to identify the customer. For example,
akashkumar are the descriptors in the usernames
rpy.payto00000akashkumar respectively. The combination of merchant prefix and descriptor must be 20 characters. The length of the merchant prefix can vary between 4-10 characters, and the length of descriptor from 10-16 characters.
json object Descriptor details for the QR code. This is to be passed only when
qr_code is passed as the receiver
string A brief description of the virtual account.
string Unique identifier of the customer to whom the virtual account must be tagged. Refer to the
json object Any custom notes you might want to add to the virtual account can be entered here. Refer to the
integer 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
2147483647UNIX timestamp will fail.
While sharing the details of VAs (created using RBL bank) with the customers, ensure that the fifth character in the IFSC is number
0 and not the letter O. For example, valid IFSC is
RATN0VAAPIS and not