---
title: "Sandbox and magic values"
description: "Test money, approval at once, and values that make any outcome happen on purpose."
---

<Info>
  Sandbox keys come with the Enterprise plan (US$1,990 setup + US$199/month). [Get sandbox access with the Enterprise plan](https://storspay.com/pricing).
</Info>

The sandbox is a practice copy of Storspay with test money only.

Sandbox keys (`sk_test_…`) are part of the **Enterprise** plan. On Enterprise, create one in **Settings → Developers → API keys** with one click; on another plan, upgrade first in **Settings → Plan**.

- Sign up at `https://sandbox.storspay.com`: your workspace is approved at once, with every live country on.
- API: `https://api.sandbox.storspay.com/v1`, with sandbox keys (`spc_test_…` / `sp_test_…`).
- Fees come from the same defaults as live. **Rates are examples** and are labelled "Sandbox: example rate".
- The app shows the banner "Sandbox: test money only". Emails are sent for real, with a subject starting "[Sandbox]".
- Add test money with `POST /v1/sandbox/deposits`.
- Sandbox-only endpoints live under `/v1/sandbox/…` and return `404` on live.

<Warning>
  The live API refuses every published magic value with `422 SANDBOX_VALUE_ON_LIVE` (some are real ranges), so a test value is never paid for real.
</Warning>

## Names

Use these as the name of an account holder, or as the business name in an application:

| Name | Result |
|---|---|
| "Test Approved" | approved at once |
| "Test Rejected" | rejected |
| "Test Needs Info" | `needs_information`, with an information request |
| "Test Review" | in review until `POST /v1/sandbox/accounts/{id}/approve` or `/reject` |
| any other name | approved after 5 s |

## Accounts

The **last two digits** of the account number, IBAN, CLABE, CBU, tax-id key or mobile number pick the result. Any other format-valid value behaves like `…00`.

| Ends in | Result | Resolved holder name |
|---|---|---|
| `…00` | paid | Sandbox: paid |
| `…01` | failed, `technical_error` | Sandbox: technical error |
| `…02` | failed (invalid account), `recipient_details` | Sandbox: invalid account |
| `…03` | paid after 60 s in `processing` | Sandbox: slow paid |
| `…04` | failed after 60 s in `processing` | Sandbox: slow failed |
| `…05` | 60 s in `created` (cancellable), then paid | Sandbox: cancellable window |
| `…06` | waits in `processing` (held for review in the delivery network) until `/release` or `/decline`; decline → failed, `payment_not_approved` | Sandbox: review hold |

Storspay itself never holds a live payout. `…06` shows what happens when a delivery network reviews a payment on its side.

### Universal 10-digit bank accounts

`9900000000` … `9900000006`, with any `bankCode` from `GET /v1/banks`, for NGA, GHA, KEN, UGA, ZAF, IND (IFSC `SNDB0000001`), IDN, PHL, THA, KHM, COL, USA (routing `110000000`) and CAN (any valid institution and transit).

### Other bank formats

All pass their real check digits.

| Country / currency | Field | `…00` | `…01` | `…02` | `…03` | `…04` | `…05` | `…06` |
|---|---|---|---|---|---|---|---|---|
| Eurozone EUR | IBAN | DE68100000009900000000 | DE41100000009900000001 | DE14100000009900000002 | DE84100000009900000003 | DE57100000009900000004 | DE30100000009900000005 | DE03100000009900000006 |
| UK GBP | IBAN | GB77SNDB00000099000000 | GB50SNDB00000099000001 | GB23SNDB00000099000002 | GB93SNDB00000099000003 | GB66SNDB00000099000004 | GB39SNDB00000099000005 | GB12SNDB00000099000006 |
| UK GBP | sort code `000000` + account | 99000000 | 99000001 | 99000002 | 99000003 | 99000004 | 99000005 | 99000006 |
| Mexico MXN | CLABE | 999180000000000400 | 999180000000000701 | 999180000000000002 | 999180000000000303 | 999180000000000604 | 999180000000000905 | 999180000000000206 |
| Argentina ARS | CBU | 9990001899000000000200 | 9990001899000000000101 | 9990001899000000000002 | 9990001899000000000903 | 9990001899000000000804 | 9990001899000000000705 | 9990001899000000000606 |
| Brazil BRL | key (tax id) | 99900001400 | 99900000501 | 99900002202 | 99900007603 | 99900006704 | 99900000005 | 99900002806 |

### Mobile money

E.164 numbers, valid mobiles for each country.

| Country | `…00` paid | `…01` … `…05` | `…06` |
|---|---|---|---|
| Kenya (KEN) | +254700000000 | +254700000001 … +254700000005 | +254700000006 |
| Uganda (UGA) | +256770000000 | +256770000001 … +256770000005 | +256770000006 |
| Ghana (GHA, when the corridor is on) | +233240000000 | +233240000001 … +233240000005 | +233240000006 |
| Benin (BEN) | +2290197000000 | +2290197000001 … +2290197000005 | +2290197000006 |
| Burkina Faso (BFA) | +22670000000 | +22670000001 … +22670000005 | +22670000006 |
| Cameroon (CMR) | +237670000000 | +237670000001 … +237670000005 | +237670000006 |
| Côte d'Ivoire (CIV) | +2250700000000 | +2250700000001 … +2250700000005 | +2250700000006 |
| Senegal (SEN) | +221770000000 | +221770000001 … +221770000005 | +221770000006 |
| Togo (TGO) | +22890000000 | +22890000001 … +22890000005 | +22890000006 |

## Account details and collections

Account details and collections in the sandbox are format-valid and marked: bank name "SNDB Sandbox Bank", holder "SNDB &lt;name&gt;", references starting `SNDB-`, GBP IBANs with bank code `SNDB`.

`POST /v1/sandbox/collections/{id}/pay` takes a `scenario`:

| Scenario | What happens |
|---|---|
| `paid_exact` (default) | the payer pays the exact amount |
| `paid_short` | the payer pays less |
| `paid_over` | the payer pays more |
| `returned` | refund pending, then refunded |
| `expired` | the request expires unpaid |
| `late_paid` | paid after expiry: credited and flagged |

## Escrow

`escrow.holdUntil` may be set as short as 60 s in the sandbox, so you can watch an automatic refund. Or end a hold now with `POST /v1/sandbox/transfers/{id}/expire`.

## Simulator endpoints

Sandbox only; `404` on live. Each is idempotent; a resource in the wrong state returns `409 STATE_CONFLICT`. Events they cause carry `"test": true`.

| Endpoint | Does |
|---|---|
| `POST /v1/sandbox/deposits` `{ amount, currency }` or `{ accountNumber, amount, narration }` | credits you (or the account holder in `Storspay-Account-Id`) |
| `POST /v1/sandbox/virtual-accounts/{id}/deposits` | a deposit to these account details |
| `POST /v1/sandbox/collections/{id}/pay` | the payer pays (scenarios above) |
| `POST /v1/sandbox/payouts/{id}/release`, `…/decline` | ends a `…06` payout |
| `POST /v1/sandbox/accounts/{id}/approve`, `…/reject` | sets the verification result |
| `POST /v1/sandbox/information-requests`, `…/{id}/close` | opens or closes an information request |
| `POST /v1/sandbox/transfers/{id}/expire` | runs the escrow deadline now |
