Skip to main content
POST
/
fundsources
/
connected
/
virtual-account
Create Virtual Account
curl --request POST \
  --url https://sandbox.cashfree.com/payout/fundsources/connected/virtual-account \
  --header 'Content-Type: application/json' \
  --data '
{
  "displayName": "Demo1",
  "accountPrefix": 1234
}
'
{
  "status": "SUCCESS",
  "subCode": "200",
  "message": "FundSource Details Retrieved",
  "data": {
    "id": 123,
    "fsDisplayType": "Bank Account",
    "fsDescription": "Main operational account",
    "accountHolderName": "John Doe",
    "bankName": "Bank of India",
    "balance": "1000.00",
    "availableBalance": "950.00",
    "fundsOnHold": "50.00",
    "overdraft": "0.00",
    "bankAccount": "1234567890",
    "ifsc": "BOFA0XXXXXX",
    "addedOn": "2024-01-01T12:00:00Z",
    "updatedOn": "2024-08-01T12:00:00Z",
    "fsName": "Operational Account",
    "displayName": "Main Account",
    "virtualAccount": "VA1234567890",
    "status": "ACTIVE"
  }
}

Body

application/json

Find the request parameters to create the virtual account

displayName
string
required

It is the name you want to display for the virtual account.

Example:

"Demo1"

accountPrefix
string

It is the account prefix as allocated by the bank. This paramete is mandatory during the first account creation.

Example:

1234

Response

Virtual account successfully created.

status
string

It displays the status of the request (SUCCESS/FAILURE).

Example:

"SUCCESS"

subCode
string

It displays the sub code of the request.

Example:

"200"

message
string

It displays the outcome of the request.

Example:

"FundSource Details Retrieved"

data
object

Response data.