Run in Apidog
Use this API to create a new virtual account for a merchant. Provide customer details, expected collection amount, and an expiry time. Enkash will provision a virtual bank account that can receive payments up to the specified amount before the close-by time.
Request Body Params application/json Required
{
"merchantDetailId" : "MD345EFDHFHSB" ,
"customerReferenceId" : "CUST7625367" ,
"customerId" : "cust_001" ,
"customerName" : "Emmett Sawayn" ,
"customerEmail" : "Claire20@gmail.com" ,
"customerPhone" : "9876543210" ,
"description" : "Monthly rent" ,
"notes" : {
"key1" : "value1"
} ,
"expectedAmount" : 5000.00 ,
"closeBy" : "2026-06-01 23:59:59"
} Request Code Samples
curl --location 'https://olympus-pg-uat.enkash.in/api/v0/merchant-virtual-account' \
--header 'Authorization: Bearer dhhbdwe8344r673rg' \
--header 'Content-Type: application/json' \
--data-raw '{
"merchantDetailId": "MD345EFDHFHSB",
"customerReferenceId": "CUST7625367",
"customerId": "cust_001",
"customerName": "Emmett Sawayn",
"customerEmail": "Claire20@gmail.com",
"customerPhone": "9876543210",
"description": "Monthly rent",
"notes": {
"key1": "value1"
},
"expectedAmount": 5000.00,
"closeBy": "2026-06-01 23:59:59"
}' Responses application/json
Generate Code
{
"response_code" : 0 ,
"response_message" : "SUCCESS" ,
"payload" : {
"virtualAccountId" : "va_abc123" ,
"merchantDetailId" : "mdt_abc123" ,
"customerId" : "cust_001" ,
"customerName" : "John Doe" ,
"customerEmail" : "john@example.com" ,
"customerPhone" : "9876543210" ,
"virtualAccountNumber" : "VA00001234" ,
"virtualAccountIfscCode" : "RATN0VAAPIS" ,
"bankName" : "RBL Bank" ,
"customerAccountNumber" : "9876543210123" ,
"customerUpiHandle" : "john@upi" ,
"customerIfscCode" : "SBIN0001234" ,
"status" : "ACTIVE" ,
"closedOn" : "2026-06-01 23:59:59" ,
"description" : "Monthly rent" ,
"amountPaid" : 3000.00 ,
"notes" : {
"key1" : "value1" ,
"key2" : "value2"
} ,
"expectedAmount" : 5000.00
}
} Modified at 2026-06-03 05:25:44