Storspay Docs
Support

Sandbox and magic values

Test money, approval at once, and values that make any outcome happen on purpose.

Sandbox keys come with the Enterprise plan (US$1,990 setup + US$199/month). Get sandbox access with the Enterprise plan.

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.

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.

Names

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

NameResult
"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 nameapproved 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 inResultResolved holder name
…00paidSandbox: paid
…01failed, technical_errorSandbox: technical error
…02failed (invalid account), recipient_detailsSandbox: invalid account
…03paid after 60 s in processingSandbox: slow paid
…04failed after 60 s in processingSandbox: slow failed
…0560 s in created (cancellable), then paidSandbox: cancellable window
…06waits in processing (held for review in the delivery network) until /release or /decline; decline → failed, payment_not_approvedSandbox: 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 / currencyField…00…01…02…03…04…05…06
Eurozone EURIBANDE68100000009900000000DE41100000009900000001DE14100000009900000002DE84100000009900000003DE57100000009900000004DE30100000009900000005DE03100000009900000006
UK GBPIBANGB77SNDB00000099000000GB50SNDB00000099000001GB23SNDB00000099000002GB93SNDB00000099000003GB66SNDB00000099000004GB39SNDB00000099000005GB12SNDB00000099000006
UK GBPsort code 000000 + account99000000990000019900000299000003990000049900000599000006
Mexico MXNCLABE999180000000000400999180000000000701999180000000000002999180000000000303999180000000000604999180000000000905999180000000000206
Argentina ARSCBU9990001899000000000200999000189900000000010199900018990000000000029990001899000000000903999000189900000000080499900018990000000007059990001899000000000606
Brazil BRLkey (tax id)99900001400999000005019990000220299900007603999000067049990000000599900002806

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 <name>", references starting SNDB-, GBP IBANs with bank code SNDB.

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

ScenarioWhat happens
paid_exact (default)the payer pays the exact amount
paid_shortthe payer pays less
paid_overthe payer pays more
returnedrefund pending, then refunded
expiredthe request expires unpaid
late_paidpaid 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.

EndpointDoes
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}/depositsa deposit to these account details
POST /v1/sandbox/collections/{id}/paythe payer pays (scenarios above)
POST /v1/sandbox/payouts/{id}/release, …/declineends a …06 payout
POST /v1/sandbox/accounts/{id}/approve, …/rejectsets the verification result
POST /v1/sandbox/information-requests, …/{id}/closeopens or closes an information request
POST /v1/sandbox/transfers/{id}/expireruns the escrow deadline now