Skip to main content

Create virtual account

API: POST /v1/bank/create-va

Creates a new virtual account (VA) for a Merchant so it can receive balance notifications.

Usage​

const result = await client.bank.createVa({
accountType: 'personal-account',
bankBin: '970418',
accountNumber: '0935926988',
accountName: 'NGUYEN THI HUYEN',
identity: '040191014068',
mobile: '0123456789',
});

Parameters​

FieldTypeRequiredDescription
accountTypestring✓Account type: personal-account, business-account, business-household-account
bankBinstring✓Bank BIN. Use BankBinEnum
accountNumberstring✓Bank account number to link
accountNamestring✓Account holder name
identitystring✓ID card / citizen ID number or tax code
mobilestring✓Registered phone number
merchantIdnumber✕Merchant ID (required when calling via Master Merchant)
isNotifyAccountNumberboolean✕true to link the source account number; defaults to false (creates a virtual account number)

Response​

{
"code": "00",
"message": "Success",
"data": {
"confirmId": "886b05e9-2d94-4b41-9839-138c941fd1d9"
}
}
FieldTypeDescription
data.confirmIdstringConfirmation ID to use in the confirmVa step