Skip to main content

Sandbox Testing

The sandbox environment mirrors production but uses simulated payment providers. No real money moves, and all external integrations (NIBSS, Interswitch) return predictable responses.

Sandbox Base URL

https://api.korastratum.com/api/v1/cba

All endpoint paths are identical to production. Both environments use the same base URL — your API key prefix determines the environment.

Test Credentials

FieldValue
Tenant IDdemo_bank
JWT Issuercba-platform
JWT Audiencecba-api

Generate a sandbox API key from the dashboard under Settings → API Keys. Select the Sandbox environment and choose the role and scopes you need.

Test Accounts

The sandbox is pre-seeded with GL accounts and customer accounts:

GL Accounts

Account NumberNameCategoryBalance (NGN)
1101Cash on Handasset50,000,000.00
1102Bank Balancesasset100,000,000.00
2101Savings Depositsliability30,000,000.00
2102Current Depositsliability20,000,000.00
4101Interest Incomerevenue0.00
4201Fee Incomerevenue0.00

Customer Accounts

Account NumberNameTypeBalance (NGN)
1001000001Test User OneSAVINGS10,000,000.00
1001000002Test User OneCURRENT5,000,000.00
1001000003Test User TwoSAVINGS2,500,000.00

Fiscal Periods

The sandbox includes open fiscal periods for the current year. A test period 13 (year-end adjustment) is also available.

Simulated Interbank Transfers

In sandbox mode, interbank transfers return predictable results:

Destination AccountBehavior
1111111111Succeeds immediately
2222222222Succeeds after 5-second delay
3333333333Fails with INSUFFICIENT_FUNDS
4444444444Fails with INVALID_ACCOUNT
5555555555Times out (simulates network failure)

Name Enquiry

POST /api/v1/transfers/validate-account
Account NumberBank CodeReturns
1111111111AnyJANE SMITH
2222222222AnyBOB JOHNSON
9999999999AnyError: ACCOUNT_NOT_FOUND

Simulated Cross-Currency

Cross-currency transfers in sandbox use fixed exchange rates:

FromToRate
NGNUSD1580.50
NGNGBP2010.00
NGNEUR1720.00

Rate Limits

Sandbox has higher rate limits:

Endpoint GroupSandboxProduction
General1,000 / min100 / min
Transfers300 / min30 / min
Journals500 / min50 / min

Testing Webhooks

Use a tunnel service to receive webhook deliveries locally:

ngrok http 3000

Register your tunnel URL as a webhook endpoint. Sandbox deliveries are instant — no retry delays.

Differences from Production

FeatureSandboxProduction
Real moneyNoYes
NIBSS/InterswitchSimulatedLive
Exchange ratesFixedMarket rates
Webhook retriesInstantExponential backoff
Rate limits10x higherStandard
TLS/mTLSOptionalRequired
Idempotency expiry1 hour24 hours

Next Steps