> ## Documentation Index
> Fetch the complete documentation index at: https://docs.onboard.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Virtual Account Number

A virtual account number is a standing, reusable bank account number your
customers or counterparties can pay into repeatedly — distinct from a
[cash deposit](/guides/product-features/cash-deposits/introduction), which is
single-use.

<img src="https://mintcdn.com/onboard-business-api/2pCslEm7v8yUVDTL/images/diagrams/deposit-to-virtual-account-flow.svg?fit=max&auto=format&n=2pCslEm7v8yUVDTL&q=85&s=3e6162defbd48cceda5131d340e7e6c6" alt="A deposit to a bank account passes through the Onboard risk system and FX system before landing in the Virtual Account" width="882" height="96" data-path="images/diagrams/deposit-to-virtual-account-flow.svg" />

## Generating an account number

* [`POST /ledger/accounts/{accountId}/account-details`](/api-reference/endpoints/virtual-account-number/create-account-details) —
  generate a virtual account number for your primary account.
* [`POST /ledger/subaccounts/{subAccountIdRef}/account-details`](/api-reference/endpoints/virtual-account-number/create-subaccount-details) —
  generate a virtual account number for a sub-account.

## Querying deposits

Deposits made into a virtual account number appear as
`transaction_activity.account_number_deposit.*` events — see
[Transaction activities](/guides/product-features/transaction-activities/overview)
to query them directly, or subscribe to the
[webhook events](/guides/product-features/virtual-account/webhooks) below.

See [Supported Currencies](/guides/product-features/supported-currencies) for
which currencies support virtual account numbers on main vs. sub-accounts.
