Wallets as a Service

Create NGN wallets for your customers or for a purpose, check their balances, move money between them, and sweep funds to your business wallet.

Wallets as a Service (WaaS) lets you create separate NGN wallets inside your Atlas business and manage them from your server. Each wallet has its own balance and transaction history, and can belong to one of your customers or stand alone for a purpose, such as a savings goal or an escrow.

Use WaaS when you hold money on behalf of your customers and need to keep each customer's balance apart from your own, for example in a savings, marketplace or escrow product.

How it works

  1. Your server creates a wallet for a customer or a purpose.
  2. You check the wallet's balance and transactions.
  3. You move money to another wallet, or sweep it to your NGN business wallet.
  4. Atlas sends a webhook when a wallet is created or funded, and when a transfer or sweep completes or fails.

Before you start

Make sure your business meets these requirements:

  • WaaS is enabled for your business. WaaS is off by default. Contact Duplo to have it turned on. Until it is, every WaaS endpoint returns 403 with the message This feature is not available.
  • Your business currency is NGN. Wallets and transfers only support NGN. A request for a business with another currency returns 403.
  • You have a webhook URL set. Atlas sends WaaS webhooks to the webhook URL on your API credentials. See Enabling webhooks on Atlas.

Your API key decides the mode. Wallets and transfers you create with your test API key are only visible to your test key, and the same applies to live.

Creating a wallet

To create a wallet, send a request to the Create a WaaS wallet endpoint with these fields:

  • source_reference (required): your own unique reference for this wallet, up to 255 characters. Atlas uses it to make the request safe to retry.
  • purpose_label (required unless you send a customer): a name for the wallet, up to 255 characters, for example Ada Obi savings.

The examples below create a wallet with a purpose label:

curl -X POST "https://atlas.tryduplo.com/api/v1/waas/wallets" \
  -H "Authorization: Bearer your_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{
    "source_reference": "wallet-ada-001",
    "purpose_label": "Ada Obi savings"
  }'

You can also send these optional fields:

  • customer_reference: the reference of an existing customer, for example dp_cust_kt66uxkdnb3s6im. Atlas attaches the wallet to that customer.
  • customer: the customer's details, if you don't have a customer reference. Atlas reuses your customer with the same email address, or creates a new one. The object takes these fields:
    • type (required): individual or business.
    • first_name and last_name: required for an individual, each between 3 and 250 characters.
    • business_name: required for a business, between 3 and 250 characters.
    • email (required): the customer's email address.
    • phone (required): the customer's phone number, up to 15 characters.
  • currency: only NGN is supported. Defaults to NGN.

Send either customer_reference or customer, not both. When you send one of them, purpose_label becomes optional.

A successful request returns 201 with the wallet. Save its id: the other WaaS endpoints identify the wallet by it.

Response
{
  "requestId": "abcd1234-5678-90ef-ghij-1234567890kl",
  "requestTimestamp": "2026-10-28 09:15:00.412",
  "message": "Wallet created.",
  "statusCode": 201,
  "data": {
    "id": "019a2f3c-5b1e-7d42-9a6f-0c8e4b7d2a11",
    "reference": "WAAS_x7k2m9q4p1rt",
    "purposeLabel": "Ada Obi savings",
    "sourceReference": "wallet-ada-001",
    "businessState": "test",
    "currency": "NGN",
    "status": "active",
    "customer": null,
    "createdAt": "2026-10-28T09:15:00+00:00",
    "account": {
      "accountNumber": "9564669185"
    }
  }
}

When you send a customer, customer holds the customer instead of null:

Wallet customer
"customer": {
  "id": "01a164c2-a486-716d-8d9f-e4cc19d59c98",
  "firstName": "Ada",
  "lastName": "Obi",
  "businessName": "",
  "type": "individual",
  "email": "ada.obi@example.com",
  "phoneNumber": "+2348012345678",
  "reference": "dp_cust_kt66uxkdnb3s6im",
  "businessState": "test",
  "isBlacklisted": false,
  "status": "ACTIVE",
  "createdAt": "2026-10-28 09:15:00"
}

Wallet statuses

StatusMeaning
activeThe wallet is ready to receive money and make transfers.
inactiveThe wallet can't be used. Requests for its balance, transactions, transfers, and attaching a customer return 422 with Wallet is inactive.
failedAtlas couldn't create the wallet. Create a new wallet with a new source_reference.

Retrying a wallet request

source_reference makes the create endpoint idempotent. If a request times out or you aren't sure it reached Atlas, send it again with the same source_reference and the same body:

  • Same source_reference, same body: Atlas returns the wallet it already created, without creating a second one.
  • Same source_reference, different body: Atlas rejects the request with 409.
  • Same source_reference, and the wallet failed: Atlas rejects the request with 409. Use a new source_reference.

Attaching a customer to a wallet

To attach a customer to a wallet you've already created, send a request to the Associate a customer with a WaaS wallet endpoint with the wallet's id in the path. Send one of these fields:

  • customer_reference: the reference of an existing customer.
  • customer: the customer's details, with the same fields as when you create a wallet. Atlas reuses your customer with the same email address, or creates a new one.

The examples below attach an existing customer:

curl -X POST "https://atlas.tryduplo.com/api/v1/waas/wallets/019a2f3c-5b1e-7d42-9a6f-0c8e4b7d2a11/customers" \
  -H "Authorization: Bearer your_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{
    "customer_reference": "dp_cust_kt66uxkdnb3s6im"
  }'

A successful request returns 201:

Response
{
  "requestId": "abcd1234-5678-90ef-ghij-1234567890kl",
  "requestTimestamp": "2026-10-28 09:20:00.118",
  "message": "Customer associated to wallet successfully.",
  "statusCode": 201,
  "data": {
    "customerReference": "dp_cust_kt66uxkdnb3s6im",
    "walletId": "019a2f3c-5b1e-7d42-9a6f-0c8e4b7d2a11"
  }
}

A wallet belongs to one customer, and a customer can have many wallets. Attaching the same customer again is safe and returns the same result. If the wallet already belongs to a different customer, Atlas rejects the request with 400 and the message Wallet already belongs to another customer.

Checking a wallet's balance

To get a wallet's available balance, send a request to the Get a WaaS wallet balance endpoint:

curl -X GET "https://atlas.tryduplo.com/api/v1/waas/wallets/019a2f3c-5b1e-7d42-9a6f-0c8e4b7d2a11/balance" \
  -H "Authorization: Bearer your_API_KEY" \
  -H "Accept: application/json"
Response
{
  "requestId": "abcd1234-5678-90ef-ghij-1234567890kl",
  "requestTimestamp": "2026-10-28 10:02:00.530",
  "message": "Balance retrieved.",
  "statusCode": 200,
  "data": {
    "availableBalance": {
      "value": 20000,
      "currency": "NGN",
      "formatted": "NGN20000"
    }
  }
}

Listing a wallet's transactions

To list the money in and out of a wallet, send a request to the List WaaS wallet transactions endpoint. It returns the newest transactions first and accepts these query parameters:

ParameterDescription
fromOnly transactions created on or after this date (YYYY-MM-DD, UTC).
toOnly transactions created on or before this date (YYYY-MM-DD, UTC).
pagePage number, starting at 1.
limitResults per page, up to 100. Defaults to 100.
curl -X GET "https://atlas.tryduplo.com/api/v1/waas/wallets/019a2f3c-5b1e-7d42-9a6f-0c8e4b7d2a11/transactions?from=2026-10-01&to=2026-10-31&limit=20" \
  -H "Authorization: Bearer your_API_KEY" \
  -H "Accept: application/json"

Each item in data is a transaction. Transfer fees appear as separate debit transactions.

Response
{
  "requestId": "abcd1234-5678-90ef-ghij-1234567890kl",
  "requestTimestamp": "2026-10-28 10:05:00.204",
  "message": "Statement retrieved.",
  "statusCode": 200,
  "data": [
    {
      "id": "019a2f61-2c7d-7a90-b1e4-8d3f6a2c9e15",
      "beneficiarySenderName": null,
      "beneficiarySenderAccountNumber": null,
      "beneficiarySenderABankName": null,
      "paymentChannel": "Peer to Peer",
      "currency": "NGN",
      "type": "debit",
      "parentTransactionReference": null,
      "reference": "TRN_8eDwe2sCzMpn",
      "sessionId": null,
      "narration": "P2P transfer",
      "source": "Wallet",
      "status": "successful",
      "amount": { "value": 15000, "currency": "NGN", "formatted": "NGN15000" },
      "balanceBefore": { "value": 20000, "currency": "NGN", "formatted": "NGN20000" },
      "balanceAfter": { "value": 5000, "currency": "NGN", "formatted": "NGN5000" },
      "createdAt": "28/10/2026 10:04am"
    }
  ],
  "links": {
    "first": "https://atlas.tryduplo.com/api/v1/waas/wallets/019a2f3c-5b1e-7d42-9a6f-0c8e4b7d2a11/transactions?page=1",
    "last": "https://atlas.tryduplo.com/api/v1/waas/wallets/019a2f3c-5b1e-7d42-9a6f-0c8e4b7d2a11/transactions?page=1",
    "prev": null,
    "next": null
  },
  "meta": {
    "current_page": 1,
    "from": 1,
    "last_page": 1,
    "per_page": 20,
    "to": 1,
    "total": 1
  }
}

Moving money between wallets

To move money out of a wallet, send a request to the Transfer between WaaS wallets or sweep to master endpoint. A transfer can go to another of your wallets, or sweep the money to your NGN business wallet.

These fields are required:

  • source_reference: your own unique reference for this transfer, up to 255 characters. Atlas uses it to make the request safe to retry.
  • from_wallet_id: the id of the wallet to send from. It must be active.
  • destination: where the money goes, as an object with:
    • type: wallet to send to another wallet, or master to sweep to your NGN business wallet.
    • wallet_id: the id of the wallet to send to. Required when type is wallet, and must be a different active wallet. Leave it out when type is master.
  • amount: the amount to send in naira, as a whole number. See Transfer limits.

The examples below send ₦15,000 from one wallet to another:

curl -X POST "https://atlas.tryduplo.com/api/v1/waas/transfers" \
  -H "Authorization: Bearer your_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{
    "source_reference": "transfer-ada-001",
    "from_wallet_id": "019a2f3c-5b1e-7d42-9a6f-0c8e4b7d2a11",
    "destination": {
      "type": "wallet",
      "wallet_id": "019a2f3d-0a44-7b19-8e3c-5f61d2c9b7e4"
    },
    "amount": 15000
  }'

To sweep the money to your NGN business wallet instead, set destination to:

Sweep destination
{ "type": "master" }

You can also send these optional fields:

  • description: a note for the transfer, up to 255 characters. Atlas uses it as the narration on the transfer's transactions. Defaults to P2P transfer.
  • currency: only NGN is supported. Defaults to NGN.

A successful request returns 201 with the transfer:

Response
{
  "requestId": "abcd1234-5678-90ef-ghij-1234567890kl",
  "requestTimestamp": "2026-10-28 10:04:12.807",
  "message": "Wallet peer to peer Transfer accepted.",
  "statusCode": 201,
  "data": {
    "id": "019a2f61-1b2a-7c3d-9e4f-6a7b8c9d0e1f",
    "reference": "WST_r8t2w6y1u4io",
    "sourceReference": "transfer-ada-001",
    "status": "completed",
    "amount": 15000,
    "currency": "NGN",
    "destinationType": "wallet",
    "payoutTransaction": {
      "id": "019a2f61-2c7d-7a90-b1e4-8d3f6a2c9e15",
      "beneficiarySenderName": null,
      "beneficiarySenderAccountNumber": null,
      "beneficiarySenderABankName": null,
      "paymentChannel": "Peer to Peer",
      "currency": "NGN",
      "type": "debit",
      "parentTransactionReference": null,
      "reference": "TRN_8eDwe2sCzMpn",
      "sessionId": null,
      "narration": "P2P transfer",
      "source": "Wallet",
      "status": "successful",
      "amount": { "value": 15000, "currency": "NGN", "formatted": "NGN15000" },
      "balanceBefore": { "value": 20000, "currency": "NGN", "formatted": "NGN20000" },
      "balanceAfter": { "value": 5000, "currency": "NGN", "formatted": "NGN5000" },
      "createdAt": "28/10/2026 10:04am"
    },
    "payinTransaction": {
      "id": "019a2f61-3e8f-7b01-a2c5-9e4a7b3d0f26",
      "beneficiarySenderName": null,
      "beneficiarySenderAccountNumber": null,
      "beneficiarySenderABankName": null,
      "paymentChannel": "Peer to Peer",
      "currency": "NGN",
      "type": "credit",
      "parentTransactionReference": "TRN_8eDwe2sCzMpn",
      "reference": "TRN_l45sWw22ewweKpqF",
      "sessionId": "TRN_8eDwe2sCzMpn",
      "narration": null,
      "source": "Wallet",
      "status": "successful",
      "amount": { "value": 15000, "currency": "NGN", "formatted": "NGN15000" },
      "balanceBefore": { "value": 0, "currency": "NGN", "formatted": "NGN0" },
      "balanceAfter": { "value": 15000, "currency": "NGN", "formatted": "NGN15000" },
      "createdAt": "28/10/2026 10:04am"
    },
    "fromWallet": {
      "id": "019a2f3c-5b1e-7d42-9a6f-0c8e4b7d2a11",
      "reference": "WAAS_x7k2m9q4p1rt",
      "purposeLabel": "Ada Obi savings",
      "sourceReference": "wallet-ada-001",
      "businessState": "test",
      "currency": "NGN",
      "status": "active",
      "createdAt": "2026-10-28T09:15:00+00:00",
      "account": {
        "accountNumber": "9564669185"
      }
    },
    "toWallet": {
      "id": "019a2f3d-0a44-7b19-8e3c-5f61d2c9b7e4",
      "reference": "WAAS_m3n8b5v2c7xz",
      "purposeLabel": "Ada Obi rent",
      "sourceReference": "wallet-ada-002",
      "businessState": "test",
      "currency": "NGN",
      "status": "active",
      "createdAt": "2026-10-28T09:16:00+00:00",
      "account": {
        "accountNumber": "9564669186"
      }
    },
    "createdAt": "2026-10-28T10:04:12+00:00"
  }
}

payoutTransaction is the debit from the source wallet and payinTransaction is the credit to the destination. For a sweep, destinationType is master and toWallet is null. The wallets in a transfer don't include their customer.

Transfer fees

Atlas charges a fee on each transfer and sweep, and debits it from the source wallet as a separate transaction. The source wallet's balance must cover the amount plus the fee. If it doesn't, Atlas rejects the request with 422 and the message Insufficient wallet balance including transfer fees.

Transfer limits

LimitValue
Minimum per transfer₦100
Maximum per transfer₦1,000,000
Daily total₦10,000,000 across all your transfers and sweeps in a day, counted separately for test and live mode

The daily total counts transfers that are pending or completed, and the day runs from midnight to midnight in your business's time zone. A transfer that would take you over the daily total is rejected with 429 and the message The business daily wallet transfer limit has been reached.

Retrying a transfer

source_reference makes the transfer endpoint idempotent. If a request times out or you aren't sure it reached Atlas, send it again with the same source_reference and the same body, or look the transfer up. Don't retry with a new source_reference, because that creates a second transfer.

  • Same source_reference, same body: Atlas returns the transfer it already created, without moving the money again.
  • Same source_reference, different body: Atlas rejects the request with 409.

Transfer statuses

StatusMeaning
pendingAtlas is still confirming the transfer. Wait for the webhook, or look the transfer up again later.
completedThe money has moved. Atlas sends TRANSFER_COMPLETED, or SWEEP_COMPLETED for a sweep.
failedThe transfer was rejected. Atlas sends TRANSFER_FAILED, or SWEEP_FAILED for a sweep.

Looking up transfers

To get a single transfer, send a request to the Get a WaaS transfer by reference endpoint. The path accepts the transfer's reference (WST_...), its payoutTransaction.reference (TRN_...), or its id. The response has the same shape as the create response.

curl -X GET "https://atlas.tryduplo.com/api/v1/waas/transfers/WST_r8t2w6y1u4io" \
  -H "Authorization: Bearer your_API_KEY" \
  -H "Accept: application/json"

To list transfers, use the List WaaS transfers and sweeps endpoint. It accepts these query parameters:

ParameterDescription
statusFilter by status.
from_wallet_idOnly transfers from this wallet.
to_wallet_idOnly transfers to this wallet.
destination_typewallet for transfers between wallets, or master for sweeps.
source_referenceFilter by your reference.
searchCase-insensitive search across the transfer reference, transaction reference and your reference.
startDateOnly transfers created on or after this date (YYYY-MM-DD).
endDateOnly transfers created on or before this date (YYYY-MM-DD).
sortdesc (default) for newest first, or asc for oldest first.
pagePage number, starting at 1.
limitResults per page, up to 100.

The examples below list completed transfers between wallets, 20 per page:

curl -X GET "https://atlas.tryduplo.com/api/v1/waas/transfers?status=completed&destination_type=wallet&limit=20" \
  -H "Authorization: Bearer your_API_KEY" \
  -H "Accept: application/json"

Listing wallets

To list your wallets, use the List WaaS wallets endpoint. It accepts these query parameters:

ParameterDescription
customer_referenceOnly wallets that belong to this customer.
statusactive or inactive.
purpose_labelOnly wallets with exactly this purpose label.
searchCase-insensitive search on the purpose label.
startDateOnly wallets created on or after this date (YYYY-MM-DD).
endDateOnly wallets created on or before this date (YYYY-MM-DD).
sortdesc (default) for newest first, or asc for oldest first.
pagePage number, starting at 1.
limitResults per page, up to 100.

The examples below list a customer's active wallets:

curl -X GET "https://atlas.tryduplo.com/api/v1/waas/wallets?customer_reference=dp_cust_kt66uxkdnb3s6im&status=active&limit=20" \
  -H "Authorization: Bearer your_API_KEY" \
  -H "Accept: application/json"

To get a single wallet, use the Get a WaaS wallet endpoint with GET /waas/wallets/{walletId}. Each wallet has the same shape as the create response.

Webhooks

Atlas sends these events to your webhook URL:

EventWhendata
WALLET_CREATEDA wallet is created.The wallet
WALLET_FAILEDAtlas couldn't create a wallet.The wallet
WALLET_FUNDEDA payment into a wallet is credited.The wallet
TRANSFER_COMPLETEDA transfer between wallets completes.The transfer
TRANSFER_FAILEDA transfer between wallets fails.The transfer
SWEEP_COMPLETEDA sweep to your business wallet completes.The transfer
SWEEP_FAILEDA sweep to your business wallet fails.The transfer

The wallet has the same shape as the create wallet response, including its customer. The transfer has the same shape as the transfer response. For example:

WALLET_FUNDED
{
  "event_type": "WALLET_FUNDED",
  "data": {
    "id": "019a2f3c-5b1e-7d42-9a6f-0c8e4b7d2a11",
    "reference": "WAAS_x7k2m9q4p1rt",
    "purposeLabel": "Ada Obi savings",
    "sourceReference": "wallet-ada-001",
    "businessState": "test",
    "currency": "NGN",
    "status": "active",
    "customer": null,
    "createdAt": "2026-10-28T09:15:00+00:00",
    "account": {
      "accountNumber": "9564669185"
    }
  }
}

WALLET_FUNDED tells you which wallet received money, not how much. To see the amount, list the wallet's transactions or check its balance.

When you handle WaaS webhooks:

  • Verify the signature. Atlas signs WaaS webhooks the same way as its other webhooks. See Verifying the webhook signature.
  • Ignore duplicates. Atlas retries a webhook when your endpoint doesn't return a 2xx response, so the same event can arrive more than once. Every delivery of the same event carries the same X-Webhook-Event-Id header. See Handling duplicate events.

How is this guide?

Last updated on

On this page

Need help? Visit our help center