Test your integration without real money
Sandbox mode allows you to test your integration without processing real transactions or affecting real balances. All sandbox transactions are completely isolated from live transactions.
In your dashboard, you will find two API keys:
Simply use your test API key instead of your live key:
curl -X POST "https://dashboard.mbiyo.africa/api/v1/merchant/payin" \
-H "Authorization: Bearer YOUR_TEST_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"amount": 1000,
"currency": "USD",
"payment_method": "mobile_money",
"order_id": "TEST-ORDER-123",
"callback_url": "https://yoursite.com/webhook",
"metadata": {
"phone_number": "243970000000",
"network": "vodacom",
"country_code": "CD"
}
}'
Use these test phone numbers to simulate different transaction outcomes:
| Phone Number Pattern | Result | Description |
|---|---|---|
*0000 |
Successful | Any number ending in 0000 will succeed immediately |
*1111 |
Successful | Any number ending in 1111 will succeed immediately |
*2222 |
Successful | Any number ending in 2222 will succeed immediately |
*3333 |
Pending | Transaction will remain pending |
*4444 |
Pending | Transaction will remain pending |
*5555 |
Failed | Transaction will fail immediately |
*9999 |
Failed | Transaction will fail immediately |
2439700000002439799999992439711111112438922222222267000000022671111111237670000000237690000000Sandbox transactions will trigger webhooks just like live transactions. This allows you to test your webhook handling logic.
{
"transaction_id": "CI-69884B3D6868F1770539837",
"amount": 1000,
"fee": 15,
"currency": "USD",
"order_id": "TEST-ORDER-123",
"status": "successful",
"charged_amount": 1015,
"type": "cashin",
"created_at": "2026-02-08T10:30:00Z",
"updated_at": "2026-02-08T10:30:05Z",
"metadata": {
"phone_number": "243970000000",
"network": "vodacom",
"country_code": "CD"
}
}
All API endpoints work the same way in sandbox mode:
GET /api/v1/merchant/transactions - List all sandbox transactionsGET /api/v1/merchant/transactions/{id} - Get sandbox transaction statusPOST /api/v1/merchant/transactions/{id}/resend-webhook - Resend sandbox webhook