Skip to main content
Sandbox virtual accounts come in two modes. You choose the mode per account when you create it.
Use SIMULATED for day-to-day testing. It’s free, instant and repeatable, and you can test failure cases such as an expired account or a sender name mismatch. Use LIVE only when you need to see a transfer arrive from a real bank. You can have at most 2 active LIVE accounts; SIMULATED accounts don’t count toward that limit.

Create a simulated virtual account

Send the normal create request to the sandbox base URL. Leave out mode, or set it to SIMULATED.
  • Simulated account numbers always start with 0. Real Nombank account numbers never do, so no bank can send money to a simulated account.
  • SIMULATED supports NGN only. Accounts in other currencies are created as LIVE.
  • Sandbox fetch, list, update and expire calls work the same for both modes. Their responses include mode, so you can tell the two apart.

Simulate an inflow

To pay the account the way a customer would, without writing any code, use Demo inflow. It sends the same webhooks.
Call Simulate an inflow with the account’s accountRef or account number. It applies the same checks as a real transfer and sends the same webhooks.
On success:
  • a payment_success webhook is sent to your webhook URL, and to the account’s callbackUrl if it has one;
  • the transactionRef can be used with Transaction requery, which returns the recorded inflow.
A rejected inflow still returns HTTP 200. Check data.status and data.responseCode: Name matching ignores word order, the same as in production: Scorsese Daniel matches Daniel Scorsese.
Simulated accounts accept any amount. The expectedAmount rule only applies to LIVE accounts.

Pay a simulated account with a sandbox transfer

You can also fund a simulated account through the sandbox bank transfer flow, using Nombank’s bank code 090645:
  • Account lookup returns the simulated account’s real name, instead of a random test name.
  • Transfer credits the account, which sends the payment_success webhook and makes the inflow requeryable, the same as calling Simulate an inflow. If the inflow is rejected (for example, the account has expired), the transfer fails with payout_failed.

Test with a live account

To create a LIVE sandbox account, set "mode": "LIVE" in the create request.
  • Transfer to the virtual account from any bank.
  • Note that the Sandbox account name will only show the business name during account lookup on your bank app.
  • The amount will be deposited on your account.
  • To test the expected amount usecase, update the account with an expectedAmount between ₦100 and ₦150, then transfer exactly that amount. The identifier is either the accountRef you set or the bankAccountNumber returned above.