Skip to main content

Sandbox Testing

The sandbox environment mirrors production but uses simulated payment providers. No real money moves, and you can reset test data at any time.

Sandbox Base URL

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

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

Test Credentials

FieldValue
Tenant IDfmfb
Emailtestuser@example.com
PasswordTestPass123!
2FA Code000000 (always accepted in sandbox)

Test Accounts

The sandbox comes pre-seeded with test wallets:

Account NumberNameBalance (NGN)Type
0000000001Test User One10,000,000.00main
0000000002Test User One5,000,000.00savings
0000000003Test User Two2,500,000.00main

Simulated Transfers

External Transfers (NIBSS)

In sandbox mode, external transfers are simulated:

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

Name Enquiry

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

Simulated Bill Payments

Customer ReferenceBehavior
08011111111Payment succeeds
08022222222Payment fails (invalid customer)
04500000001Electricity payment succeeds
04500000002Electricity payment fails

Simulated Loans

In sandbox mode, loan applications are auto-approved after 5 seconds regardless of amount. This lets you test the full lifecycle:

  1. Submit application → status: submitted
  2. Wait 5 seconds → status: approved
  3. Disbursement happens automatically → status: disbursed
  4. Repayment schedule is generated

Simulated Fraud Detection

The fraud check endpoint returns predictable results in sandbox:

Amount RangeRisk LevelDecision
₦0 – ₦100,000lowapprove
₦100,001 – ₦500,000mediumapprove
₦500,001 – ₦1,000,000highreview
> ₦1,000,000criticalblock

Rate Limits

Sandbox has higher rate limits to facilitate testing:

Endpoint GroupSandbox LimitProduction Limit
General1,000 / 15 min100 / 15 min
Authentication500 / 15 min50 / 15 min

Testing Webhooks

Use a tunnel service (e.g., ngrok) to receive webhook deliveries locally:

ngrok http 3000

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

Reset Test Data

Contact support or use the admin portal to reset your sandbox tenant to the default seed data.

Differences from Production

FeatureSandboxProduction
Real moneyNoYes
NIBSS/InterswitchSimulatedLive
Loan approvalAuto (5s)Manual workflow
Fraud detectionPredictable by amountAI-powered
2FA codesAlways 000000Real TOTP
Webhook retriesInstantExponential backoff
Rate limits10x higherStandard

Next Steps