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": "Virtual account created",
"data": {
"paymentInstrumentId": "KOTAKCR_CONNECTED_376933_9e478d1",
"virtualAccountNumber": "90909010KR0M"
}
}

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.

⌘I