Virtual Accounts
Create single or multi use virtual accounts via the Atlas API.
Atlas supports two types of virtual accounts, single use and multi-use. A single use virtual account collects one payment: it becomes inactive once it's paid, and expired once its expiry time passes. A multi-use virtual account can be re-used for multiple transactions and does not expire. There is also another category of virtual accounts under multi-use virtual accounts that are tied to customers, known as DVAs (dedicated virtual accounts). DVAs are assigned to customers automatically when you create them on Atlas.
This guide uses the Virtual Accounts as a Service (VaaS) endpoints under /api/v1/vaas.
DVAs and has_wallet
A customer only gets a DVA automatically if you set has_wallet to true
when you create them. See Creating a
customer in the Customers
guide for details, or attach one to an existing
customer
who doesn't have one yet.
Creating a virtual account
To create a virtual account for your business, make a request to the Create Virtual Account endpoint. Accounts settle into your business collection wallet for the account's currency.
You can create two types of virtual account, set with account_type:
single_use: collects one payment of a set amount and has an expiry time, up to 24 hours ahead. It becomesinactiveonce it's paid, andexpiredonce its expiry time passes. Use it for a single order or invoice.multi_use: permanent. It accepts any number of payments and never expires. Use it when the same payer sends money to you repeatedly.
These fields are required:
account_type:single_useormulti_use.account_name: the name shown to payers on transfer, between 3 and 250 characters.source_reference: your own unique reference for the source of this virtual account, between 3 and 250 characters. Use it to look the account up later with Get Virtual Account.expires_at(single_useonly): the expiry time in UTC, formatted asYYYY-MM-DD HH:MM:SS, for example2026-07-20 18:30:00(19:30 in Lagos). Must be in the future and within 24 hours. Don't send it formulti_useaccounts.amount(single_useonly): the amount the account expects, at least 100. Atlas ignoresamountonmulti_useaccounts.
The examples below create a single_use account. For a multi_use account, set account_type to multi_use and leave out expires_at and amount:
curl -X POST "https://atlas.tryduplo.com/api/v1/vaas" \
-H "Authorization: Bearer your_API_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"account_type": "single_use",
"account_name": "Acme Store",
"source_reference": "src_1234567890",
"amount": 5000,
"expires_at": "2026-07-20 18:30:00"
}'You can also send these optional fields:
provider_name: the bank that issues the account. The only available banks arewemaandglobus, and a live business can use either. Until your business is live, accounts are not issued by a bank: test API keys can only useduplo, and those accounts showduploas theirproviderName. If you omitprovider_name, Atlas usesduploin test mode andglobusin live mode. Onlywemaandduploaccounts can be updated after creation;globusaccounts are fixed once created.currency: defaults toNGNwhen omitted. Must be a currency currently enabled for virtual accounts on your business.
On a successful request, you'll get a response similar to the one below. Atlas returns expiresAt and createdAt in UTC:
{
"requestId": "abcd1234-5678-90ef-ghij-1234567890kl",
"requestTimestamp": "2026-07-20 09:15:00",
"message": "Virtual account created successfully.",
"statusCode": 201,
"data": {
"id": "019a1639-ce25-70b7-ab20-16fcb2bac023",
"businessId": "019a1639-ce25-70b7-ab20-16fcb2bac024",
"businessState": "TEST",
"amount": {
"value": 5000,
"currency": "NGN",
"formatted": "NGN5000"
},
"reference": "VA_A1B2C3D4E5F6",
"walletId": "019a1639-ce25-70b7-ab20-16fcb2bac025",
"sourceReference": "src_1234567890",
"accountNumber": "1234567890",
"accountName": "Acme Store",
"providerName": "duplo",
"accountType": "single_use",
"status": "active",
"currency": "NGN",
"expiresAt": "2026-07-20 18:30:00",
"createdAt": "2026-07-20 09:15:00"
}
}Listing virtual accounts
To retrieve virtual accounts belonging to your business, make a GET request to the List Virtual Accounts endpoint.
The supported query parameters are:
| Parameter | Description |
|---|---|
reference | Filter by the Atlas-generated account reference. |
accountNumber | Filter by the account number. |
accountType | Filter by single_use or multi_use. |
status | Filter by derived status, active, inactive, or expired. An account past its expiry is always expired, even if this filter is set to active. |
currency | Filter by currency, for example NGN. |
search | Partial match on reference, account number, or account name. |
startDate / endDate | Filter by creation date range. |
limit | Results per page, defaults to 1000. |
page | Page number, defaults to 1. |
curl -X GET "https://atlas.tryduplo.com/api/v1/vaas?accountType=single_use&status=active&limit=10&page=1" \
-H "Authorization: Bearer your_API_KEY" \
-H "Accept: application/json"On a successful request, you'll get a response similar to the one below:
{
"requestId": "abcd1234-5678-90ef-ghij-1234567890kl",
"requestTimestamp": "2026-07-20 09:15:00",
"message": "Virtual accounts retrieved successfully.",
"statusCode": 200,
"data": [
{
"id": "019a1639-ce25-70b7-ab20-16fcb2bac023",
"businessId": "019a1639-ce25-70b7-ab20-16fcb2bac024",
"businessState": "TEST",
"amount": {
"value": 5000,
"currency": "NGN",
"formatted": "NGN5000"
},
"reference": "VA_A1B2C3D4E5F6",
"walletId": "019a1639-ce25-70b7-ab20-16fcb2bac025",
"sourceReference": "src_1234567890",
"accountNumber": "1234567890",
"accountName": "Acme Store",
"providerName": "wema",
"accountType": "single_use",
"status": "active",
"currency": "NGN",
"expiresAt": "2026-07-20 18:30:00",
"createdAt": "2026-07-20 09:15:00"
}
],
"meta": {
"current_page": 1,
"from": 1,
"last_page": 3,
"per_page": 50,
"to": 50,
"total": 128
}
}Retrieving a virtual account
You can retrieve a single virtual account by its Atlas-generated reference, or by your own source_reference, using the Get Virtual Account endpoint. Pass exactly one of reference or sourceReference as a query parameter, the only difference is the query string:
curl -X GET "https://atlas.tryduplo.com/api/v1/vaas/find?reference=VA_A1B2C3D4E5F6" \
-H "Authorization: Bearer your_API_KEY" \
-H "Accept: application/json"The examples below use the reference lookup, swap the query parameter for the source reference variant above to look up by source_reference instead:
curl -X GET "https://atlas.tryduplo.com/api/v1/vaas/find?reference=VA_A1B2C3D4E5F6" \
-H "Authorization: Bearer your_API_KEY" \
-H "Accept: application/json"If neither reference nor sourceReference is provided, or if both are provided, the request returns a 422. If no virtual account with that reference (or source reference) belongs to your business, the request returns a 404.
Reactivating an expired virtual account
A single_use virtual account provisioned with wema or duplo can be reactivated with a new expiry once it has expired, using the Update Virtual Account endpoint. All three conditions must hold:
- The account is
single_use. - It was provisioned with
wemaorduplo.globusaccounts are fixed once created and can't be updated. - It has already expired.
This is also how you reuse a single_use account that has been paid. Once it's paid, the account is inactive and can't be activated again. When its expiry time passes, it becomes expired, and you can reactivate it here.
Only reference and expires_at are required, omitted optional fields keep their current value:
reference(required): the Atlas-generated reference of the virtual account, between 10 and 20 characters.expires_at(required): the new expiry time in UTC, formatted asYYYY-MM-DD HH:MM:SS, for example2026-07-21 12:00:00. Must be in the future and within 24 hours.account_name(optional): updates the display name.amount(optional): updates the fixed amount expected on the account, at least 100.
curl -X POST "https://atlas.tryduplo.com/api/v1/vaas/update-virtual-account" \
-H "Authorization: Bearer your_API_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"reference": "VA_A1B2C3D4E5F6",
"expires_at": "2026-07-21 12:00:00"
}'On success, Atlas returns the updated virtual account with its new expiresAt and status reset to active:
{
"requestId": "abcd1234-5678-90ef-ghij-1234567890kl",
"requestTimestamp": "2026-07-20 09:15:00",
"message": "Virtual account updated successfully.",
"statusCode": 200,
"data": {
"id": "019a1639-ce25-70b7-ab20-16fcb2bac023",
"businessId": "019a1639-ce25-70b7-ab20-16fcb2bac024",
"businessState": "TEST",
"amount": {
"value": 5000,
"currency": "NGN",
"formatted": "NGN5000"
},
"reference": "VA_A1B2C3D4E5F6",
"walletId": "019a1639-ce25-70b7-ab20-16fcb2bac025",
"sourceReference": "src_1234567890",
"accountNumber": "1234567890",
"accountName": "Acme Store",
"providerName": "wema",
"accountType": "single_use",
"status": "active",
"currency": "NGN",
"expiresAt": "2026-07-21 12:00:00",
"createdAt": "2026-07-20 09:15:00"
}
}Note
If the account hasn't expired yet, or its provider doesn't permit updates,
this request returns a 403. If it's a multi_use account, it returns a 422.
Activating and deactivating a virtual account
You can switch off a virtual account without deleting it using the Deactivate Virtual Account endpoint, and switch it back on later with the Activate Virtual Account endpoint. Both work on single_use and multi_use accounts.
Each action only works from one status:
| Action | Allowed from | Leaves the account in |
|---|---|---|
| Deactivate | active | inactive |
| Activate | inactive | active |
An expired account can't be activated or deactivated. To bring back an expired single_use account, reactivate it with a new expiry instead. A single_use account that has already received its payment can't be activated again. Both cases return a 422.
Both endpoints take the same request body:
reference(required): the Atlas-generated reference of the virtual account, between 10 and 20 characters.reason(optional): why you're changing the status, up to 500 characters.
curl -X POST "https://atlas.tryduplo.com/api/v1/vaas/deactivate-virtual-account" \
-H "Authorization: Bearer your_API_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"reference": "VA_A1B2C3D4E5F6",
"reason": "Customer left the estate"
}'To activate the account again, send the same body to /vaas/activate-virtual-account.
On success, Atlas returns the virtual account with its new status:
{
"requestId": "abcd1234-5678-90ef-ghij-1234567890kl",
"requestTimestamp": "2026-07-20 09:15:00",
"message": "Virtual account deactivated successfully.",
"statusCode": 200,
"data": {
"id": "019a1639-ce25-70b7-ab20-16fcb2bac023",
"businessId": "019a1639-ce25-70b7-ab20-16fcb2bac024",
"businessState": "LIVE",
"amount": null,
"reference": "VA_A1B2C3D4E5F6",
"walletId": "019a1639-ce25-70b7-ab20-16fcb2bac025",
"sourceReference": "src_1234567890",
"accountNumber": "1234567890",
"accountName": "Acme Store",
"providerName": "globus",
"accountType": "multi_use",
"status": "inactive",
"currency": "NGN",
"expiresAt": null,
"createdAt": "2026-07-20 09:15:00"
}
}Status changes take 5 to 10 working days
The account reports its new status as soon as the request succeeds, but the
bank takes 5 to 10 working days to apply the change. During that window, name
enquiry on the account number still works and payers can still send money to
it, but those deposits are not credited to your Atlas account. Stop sharing
the account number with payers before you deactivate it, and after you
activate it, wait 10 working days before sharing it again.
Getting virtual account transactions
To list the credits received by a virtual account, make a GET request to the Get Virtual Account Transactions endpoint with the account's reference. Only successful inflows credited to the account are returned.
Supported query parameters are startDate, endDate, limit (defaults to 1000), and page (defaults to 1).
Each transaction includes the sender's beneficiary details when available (beneficiarySenderName, beneficiarySenderAccountNumber, beneficiarySenderABankName), the paymentChannel used, and the wallet balance immediately after the credit was applied.
curl -X GET "https://atlas.tryduplo.com/api/v1/vaas/find-by-reference/VA_A1B2C3D4E5F6/transactions?limit=10&page=1" \
-H "Authorization: Bearer your_API_KEY" \
-H "Accept: application/json"On a successful request, you'll get a response similar to the one below:
{
"requestId": "abcd1234-5678-90ef-ghij-1234567890kl",
"requestTimestamp": "2026-07-20 09:15:00",
"message": "Virtual account transactions retrieved successfully.",
"statusCode": 200,
"data": {
"totalAmountReceived": {
"value": 5000,
"currency": "NGN",
"formatted": "NGN5000"
},
"data": [
{
"id": "019a1639-ce25-70b7-ab20-16fcb2bac025",
"beneficiarySenderName": "John Doe",
"beneficiarySenderAccountNumber": "0123456789",
"beneficiarySenderABankName": "GTBank",
"reference": "TRN_A1B2C3D4E5F6",
"amount": {
"value": 5000,
"currency": "NGN",
"formatted": "NGN5000"
},
"sessionId": "000016250720091500123456789012",
"type": "credit",
"currency": "NGN",
"parentTransactionReference": null,
"paymentChannel": "Bank Transfer",
"balance": {
"value": 5000,
"currency": "NGN",
"formatted": "NGN5000"
},
"status": "Successful",
"createdAt": "2026-07-20 09:15:00"
}
],
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"per_page": 50,
"to": 1,
"total": 1
}
}
}Handling virtual account deposits
When a payer deposits money into a virtual account, the amount is settled into your business wallet and Atlas sends an IN_FLOW_SUCCESS_EVENT webhook to your configured endpoint.
The recipient object on the webhook payload's data identifies the account that received the inflow:
{
"accountName": "Acme Store",
"accountNumber": "1234567890"
}Match recipient.accountNumber against the accountNumber of your virtual accounts, available from the list or retrieve endpoints, to determine which account was credited. If the account is single_use, treat it as fulfilled once you receive this event. Atlas sets it to inactive, and it can't be activated again. To reuse it, reactivate it once its expiry time has passed.
Always verify the webhook to ensure it came from Atlas.
How is this guide?
Last updated on