---
title: "Sandbox Magic-Value Cheat Sheet"
sidebarTitle: "Magic values cheat sheet"
description: "Fast lookup for accounts, test names, mobile money numbers, collection scenarios, and simulator endpoints in the Storspay sandbox."
---

<Info>
  Sandbox access comes with the Enterprise plan. Base URL: `https://api.sandbox.storspay.com/v1`. Storspay is a FINTRAC-registered money services business. Support: info@storsapp.com.
</Info>

In the Storspay sandbox, all outcomes (success, network error, invalid account details, review holds, delayed processing) can be triggered on purpose using magic values.

<Warning>
  The live API rejects every published magic value with `422 SANDBOX_VALUE_ON_LIVE`. Magic values can never move real money.
</Warning>

## Sandbox simulation lifecycle

```mermaid
%%{init: {"theme": "base", "themeVariables": {"primaryColor": "#6B3FA0", "primaryTextColor": "#FFFFFF", "primaryBorderColor": "#5A2D8C", "lineColor": "#6B3FA0", "textColor": "#1E1E2E", "background": "#F5F0E8"}}}%%
stateDiagram-v2
    [*] --> Submitted: Account or Payout created
    Submitted --> QuickPaid: Ends in 00
    Submitted --> TechError: Ends in 01
    Submitted --> InvalidDetails: Ends in 02
    Submitted --> SlowProcessing: Ends in 03 or 04
    Submitted --> CancellableWindow: Ends in 05
    Submitted --> NetworkHold: Ends in 06
    SlowProcessing --> QuickPaid: 03 (after 60s)
    SlowProcessing --> TechError: 04 (after 60s)
    CancellableWindow --> Cancelled: Cancelled within 60s
    CancellableWindow --> QuickPaid: 60s elapsed without cancel
    NetworkHold --> QuickPaid: POST .../release
    NetworkHold --> TechError: POST .../decline
    QuickPaid --> [*]
    TechError --> [*]
    InvalidDetails --> [*]
    Cancelled --> [*]
```

---

## Magic account suffixes

The last two digits of any bank account number, IBAN, CLABE, CBU, Pix key or mobile number determine the outcome:

| Suffix | Outcome | Payout status | Description | Resolved name |
|---|---|---|---|---|
| `…00` | Success | `paid` | Delivered immediately to the recipient | `Sandbox: paid` |
| `…01` | Technical error | `failed` | Delivery failure (`failureCategory: "technical_error"`) | `Sandbox: technical error` |
| `…02` | Invalid account | `failed` | Account does not exist (`failureCategory: "recipient_details"`) | `Sandbox: invalid account` |
| `…03` | Delayed success | `processing` → `paid` | Remains 60 seconds in `processing`, then delivers | `Sandbox: slow paid` |
| `…04` | Delayed failure | `processing` → `failed` | Remains 60 seconds in `processing`, then fails | `Sandbox: slow failed` |
| `…05` | Cancellable window | `created` → `paid` | Stays 60 seconds in `created` (`cancellable: true`), then delivers | `Sandbox: cancellable window` |
| `…06` | Network review hold | `processing` | Pauses in `processing` until `/release` or `/decline` simulator call | `Sandbox: review hold` |

---

## Universal 10-digit bank accounts

Valid across Nigeria (NGA), Ghana (GHA), Kenya (KEN), Uganda (UGA), South Africa (ZAF), India (IND, IFSC `SNDB0000001`), Indonesia (IDN), Philippines (PHL), Thailand (THA), Cambodia (KHM), Colombia (COL), United States (USA, routing `110000000`), and Canada (CAN, institution `004` transit `10000`):

| Suffix | Test account number | Result |
|---|---|---|
| `…00` | `9900000000` | Success (`paid`) |
| `…01` | `9900000001` | Failure (`technical_error`) |
| `…02` | `9900000002` | Failure (`recipient_details`) |
| `…03` | `9900000003` | 60s delay → `paid` |
| `…04` | `9900000004` | 60s delay → `failed` |
| `…05` | `9900000005` | 60s cancellable window → `paid` |
| `…06` | `9900000006` | Review hold in delivery network |

---

## Regional bank formats

Formatted test accounts that satisfy checksum algorithms:

| Region / Currency | Field | `…00` (Paid) | `…01` (Tech error) | `…02` (Invalid details) | `…06` (Review hold) |
|---|---|---|---|---|---|
| Eurozone EUR | IBAN | `DE68100000009900000000` | `DE41100000009900000001` | `DE14100000009900000002` | `DE03100000009900000006` |
| United Kingdom GBP | IBAN | `GB77SNDB00000099000000` | `GB50SNDB00000099000001` | `GB23SNDB00000099000002` | `GB12SNDB00000099000006` |
| United Kingdom GBP | Account (`000000` sort) | `99000000` | `99000001` | `99000002` | `99000006` |
| Mexico MXN | CLABE | `999180000000000400` | `999180000000000701` | `999180000000000002` | `999180000000000206` |
| Argentina ARS | CBU | `9990001899000000000200` | `9990001899000000000101` | `9990001899000000000002` | `9990001899000000000606` |
| Brazil BRL | Tax ID / Key | `99900001400` | `99900000501` | `99900002202` | `99900002806` |

---

## Mobile money test numbers

Standard E.164 phone numbers for mobile money networks:

| Country | Code | `…00` (Paid) | `…01` to `…05` | `…06` (Review hold) |
|---|---|---|---|---|
| Kenya | KEN | `+254700000000` | `+254700000001` … `…05` | `+254700000006` |
| Uganda | UGA | `+256770000000` | `+256770000001` … `…05` | `+256770000006` |
| Ghana | GHA | `+233240000000` | `+233240000001` … `…05` | `+233240000006` |
| Benin | BEN | `+2290197000000` | `+2290197000001` … `…05` | `+2290197000006` |
| Burkina Faso | BFA | `+22670000000` | `+22670000001` … `…05` | `+22670000006` |
| Cameroon | CMR | `+237670000000` | `+237670000001` … `…05` | `+237670000006` |
| Côte d'Ivoire | CIV | `+2250700000000` | `+2250700000001` … `…05` | `+2250700000006` |
| Senegal | SEN | `+221770000000` | `+221770000001` … `…05` | `+221770000006` |
| Togo | TGO | `+22890000000` | `+22890000001` … `…05` | `+22890000006` |

---

## Account holder verification names

When creating account holders or business accounts (`POST /v1/accounts`):

| Name string | Verification result | Webhook triggered |
|---|---|---|
| `"Test Approved"` | Approved immediately | `account.activated` |
| `"Test Rejected"` | Rejected immediately | `application.rejected` |
| `"Test Needs Info"` | Prompts for additional documents | `information_request.opened` |
| `"Test Review"` | Pending manual review | Stays in review until simulator endpoint is called |
| Any other name | Automatically approved after 5 seconds | `account.activated` |

---

## Collection scenarios

Simulate incoming customer payments against payment requests with `POST /v1/sandbox/collections/{id}/pay`:

| Scenario | Behavior | Webhooks emitted |
|---|---|---|
| `paid_exact` | Payer submits the exact quoted amount | `collection.paid`, `deposit.credited` |
| `paid_short` | Payer submits less than the quoted amount | `collection.underpaid` |
| `paid_over` | Payer submits more than the quoted amount | `collection.overpaid` |
| `returned` | Payer transfer was reversed by the paying bank | `collection.returned` |
| `expired` | Request expires without payment | `collection.expired` |
| `late_paid` | Payment received after request expiration | `collection.late_paid` |

---

## Sandbox simulator endpoints

Available only in the sandbox environment (`https://api.sandbox.storspay.com/v1`). All return `404` in live.

| Method & Path | Payload / Query | Purpose |
|---|---|---|
| `POST /v1/sandbox/deposits` | `{ "amount": "500.00", "currency": "USD" }` | Fund your sandbox balance |
| `POST /v1/sandbox/collections/{id}/pay` | `{ "scenario": "paid_exact" }` | Trigger collection payment event |
| `POST /v1/sandbox/payouts/{id}/release` | `{}` | Complete a `…06` network-held payout |
| `POST /v1/sandbox/payouts/{id}/decline` | `{}` | Refuse a `…06` network-held payout |
| `POST /v1/sandbox/accounts/{id}/approve` | `{}` | Approve an account in manual review |
| `POST /v1/sandbox/accounts/{id}/reject` | `{ "reason": "DOCUMENT_INVALID" }` | Reject an account in manual review |
| `POST /v1/sandbox/transfers/{id}/expire` | `{}` | Expire an escrow hold immediately |
| `POST /v1/sandbox/webhook-deliveries` | `{ "endpointId": "we_…", "eventType": "payout.paid" }` | Replay or test signed webhook delivery |
