TCONNECT
Blog

What is a Virtual Account (VA)? Uses in VA Billing, tuition, hospital fees and retail

A virtual account (VA) is more than just an account number. Learn how VA billing works for one-time payments, multi-installment deposits, automated tuition collection, hospital fee payments and retail transactions.

T
TCONNECT Team February 5, 2026· 7 min read

What is a Virtual Account (VA)?

A Virtual Account (VA), also called a virtual account or identified account, is a bank account number created and tied to a specific merchant. Technically, a VA is not a real account in the traditional sense: it has no balance of its own and cannot be opened with an ID card. Instead, a VA is an alias that the bank recognizes and routes into the merchant's master account.

When a customer transfers money to the VA number, the bank recognizes the transaction, attaches metadata (VA number, amount, reference) and notifies the merchant's system through an IPN callback.

How is a VA different from a regular account?

Regular bank accountVirtual Account
How it is createdOpened at a branch, requires documentsCreated through an API in seconds
QuantityLimitedThousands of VAs per day can be created
BalanceHas its own balanceNo balance, money goes to the master account
Transaction matchingBased on the transfer referenceBased on the VA number itself, 100% accurate
AutomationHard to reconcile automaticallyReconciled automatically via va_number

Two main VA Billing models

Model 1: One-time VA

Create a new VA for each transaction or order. Once payment is complete, the VA expires.

[Đơn hàng #1001] → [VA: VA100001] → [Khách chuyển 500,000đ] → [IPN: PAID ✓]
[Đơn hàng #1002] → [VA: VA100002] → [Khách chuyển 320,000đ] → [IPN: PAID ✓]

Advantage: Every transaction is uniquely identified, with no mix-ups.

Good fit for: E-commerce checkout, service deposits, one-time bill payments.

Model 2: Persistent VA

A single VA is permanently assigned to one customer or contract. The customer transfers money to that VA each period.

Học sinh Nguyễn Văn A
  └─ VA: VA200050 (cố định cả năm học)
       ├─ Tháng 9:   chuyển 2,500,000đ  →  IPN: Sep fee PAID ✓
       └─ Tháng 10:  chuyển 2,500,000đ  →  IPN: Oct fee PAID ✓

Advantage: The customer remembers a single account number and does not need extra steps each period.

Good fit for: Recurring tuition, hospital fees per treatment episode, property rent, subscriptions.


Real-world uses

1. Tuition payments (Education)

This is the use case that fits the Persistent VA model best.

Current flow (manual):

  • Parents transfer money into the school's shared account
  • Accountants manually match the transfer reference to identify the student
  • A wrong reference means the wrong student and days of reconciliation work

Flow with VA:

1. Nhập học
   └─ POST /openapi/v1/va/va-account/create
        { bank_code: "970403", account_name: "NGUYEN VAN A - LOP 10A1" }
        → VA mới: VA300125
 
2. Gửi VA cho phụ huynh
   └─ In trên phiếu thu, gửi qua app/email
 
3. Phụ huynh chuyển khoản vào VA300125 (hàng tháng)
   └─ Hệ thống tự nhận diện: học sinh A, 2,500,000đ
 
4. IPN Callback tự động
   └─ { order_id: "SCHOOL-A-SEP2026", amount: 2500000 }
      → Cập nhật trạng thái học phí trong phần mềm quản lý

Result: The manual reconciliation step disappears entirely. Accountants only need to read a report.

2. Hospital fee payments (Healthcare)

Healthcare adds requirements more complex than education: the same patient can have several treatment episodes, each with multiple payments (medicine, procedures, bed charges, and so on).

Suggested model:

Bệnh nhân vào viện → Tạo VA cho đợt điều trị
  └─ VA: VA400200  "NGUYEN THI B - DOT DIEU TRI 15052026"
       │
       ├─ Lần 1: Viện phí khám ban đầu        500,000đ
       ├─ Lần 2: Tiền thuốc ngày 1          1,200,000đ
       ├─ Lần 3: Phí phẫu thuật            15,000,000đ
       └─ Lần 4: Tiền phòng 3 ngày          1,500,000đ
            │
            └─ Mỗi IPN: loại viện phí + mã đợt điều trị
               → HIS tự cập nhật từng khoản phí

Integration with the HIS (Hospital Information System):

# Tiếp nhận bệnh nhân
POST /openapi/v1/va/va-account/create
  bank_code: "970415"  (Vietinbank)
  account_name: "{patient.name} - {admission.code}"
→ Lưu va_number vào bản ghi đợt điều trị
 
# IPN Handler
function handleIPN(encryptedData):
    txn = AES_decrypt(encryptedData)
    admission = db.find(txn.order_id)
    admission.addPayment(amount=txn.amount, ref=txn.retrieval_ref_no)
    return 200 OK

3. Retail

Retail has its own character: thousands of transactions per day across many counters and many cashiers.

QR + VA model:

Quầy thu ngân #1  →  VA cố định #1  →  QR động theo order_id
Quầy thu ngân #2  →  VA cố định #2  →  QR động theo order_id

Each QR is created with an order_id containing the counter code plus the order code, so reconciliation goes down to each individual transaction.

# POS tạo QR khi khách checkout
POST /openapi/v1/transaction/qr/generate
  order_id: "STORE01-CASH01-{invoice.id}"
  va: store.va_number
  bincode: "970454"
  service_code: "bidv-qr"
  amount: invoice.total
→ Hiển thị QR trên màn hình khách
 
# Sau khi nhận IPN → POS tự đóng đơn

End-of-shift reconciliation: A summary report grouped by order_id prefix matches automatically against the POS system.

4. Subscriptions and recurring services (SaaS)

For B2B SaaS, each business customer has its own VA. The system sends a notice before the renewal period, the customer transfers to the VA, and the system renews automatically.

Doanh nghiệp ABC
  └─ VA: VA500010 (hợp đồng năm 2026)
       ├─ Tháng 5/2026:  1,200,000đ → Gia hạn tháng 6 ✓
       ├─ Tháng 6/2026:  1,200,000đ → Gia hạn tháng 7 ✓
       └─ ...

This model fits Vietnamese businesses especially well because most company accountants prefer bank transfers over cards for B2B payments.


Creating a VA through the TCONNECT API

# 1. Login
POST /openapi/v1/auth/login
  { partner_code: "YOUR_PARTNER_CODE", ... }
→ access_token
 
# 2. Tạo VA
POST /openapi/v1/va/va-account/create
  { bank_code: "970454", account_name: "NGUYEN VAN A LOP 10A1" }
// Response
{ "va_number": "VA100023312", "bank_code": "970454",
  "account_name": "NGUYEN VAN A LOP 10A1", "status": "active" }

Then use this va_number when creating a QR:

POST /openapi/v1/transaction/qr/generate
  { order_id: "SCHOOL-NGUYENVANA-SEP2026", va: "VA100023312",
    bincode: "970454", service_code: "bidv-qr", amount: 2500000 }

Important technical notes

Name account_name properly

account_name shows up on the sender's banking app screen. A clear name helps the customer confirm the right recipient before transferring. For example:

  • ✅ "TRUONG THPT XYZ - NGUYEN VAN A 10A1"
  • ❌ "student_12345" (the customer will not recognize it)

Idempotency in IPN

function handleIPN(encryptedData):
    txn = AES_decrypt(encryptedData)
 
    # Kiểm tra đã xử lý chưa (idempotency)
    if cache.exists("ipn:" + txn.request_id):
        return 200 OK  # Trả 200 để TConnect không retry
 
    cache.set("ipn:" + txn.request_id, ttl=24h)
    processPayment(txn)
    return 200 OK

Handling underpayment and overpayment

With tuition and hospital fees, customers sometimes transfer the wrong amount:

if txn.amount < expected_amount:
    admission.addPartialPayment(txn.amount)
    # Gửi thông báo yêu cầu nộp bổ sung
elif txn.amount > expected_amount:
    admission.addOverpayment(txn.amount - expected_amount)
    # Cờ để xử lý hoàn tiền thừa
else:
    admission.markFullyPaid()

Conclusion

A VA is not just "another bank account number." It is the strongest automation tool in Vietnam's payment ecosystem for organizations that handle many transactions of a recurring nature or that need automatic reconciliation.

Use caseVA modelMain benefit
E-commerceOne-time VA per order100% automatic reconciliation
TuitionPersistent VA per studentRemoves manual reconciliation
Hospital feesPersistent VA per treatment episodeDirect HIS integration
Retail POSPersistent VA per counter + dynamic QRSpeed plus shift reconciliation
B2B SaaSPersistent VA per customerFits Vietnamese accounting habits

Start with the TCONNECT Sandbox to test the full VA + QR + IPN flow in a safe environment, with no KYB required.

Topics
virtual-accountva-billinghoc-phivien-phiretailpayment-api

Start integrating today

Free sandbox · Full API docs · Technical support