Mock Fund Wallet
Credit a user wallet directly for integration testing on staging. This creates a completed internal deposit (quote, transaction, and ledger entries) without simulating an external provider webhook or requiring a Virtual Bank Account (VBA).
⚠️ Staging only: This endpoint is blocked in production.
Endpoint
POST /api/v1/client/mock/fund-wallet
Description
Credits a wallet balance for testing. The endpoint:
- Supports any active platform currency (e.g.
USD,GHS,NGN) - Creates a completed internal deposit quote and transaction
- Posts ledger entries so balances match production funding behavior
- Can fund the business owner (
"self") or a customer linked to your business
Use this when you need wallet balance for payouts, transfers, or exchange flows without going through VBA deposit simulation.
When to use something else
- VBA / rail deposit testing — use
POST /api/v1/client/mock/simulate-depositto exercise deposit webhooks and provider rails.- Production or internal ops — admins use
POST /api/v1/admin/wallets/fund(admin JWT; available in all environments, not a mock route).
Authentication
Requires HMAC authentication (Business API Key):
Note: For HMAC authentication details, see the Authentication guide.
Request Body
user_id values
Success Response (201 Created)
Error Responses
Example: cURL
Fund your business owner wallet in USD:
Fund a registered customer in GHS:
Example: HTTP Request
Notes
- Active currencies only — inactive currencies (for example
KESuntil enabled on your environment) return400with an unsupported currency error. UseGET /api/v1/client/currenciesto see which codes are active. - Fees — Wallet deposit fee configuration may reduce the credited amount versus the requested
amount(same as real internal deposits). - Wallet creation — If the user has no wallet for the currency, one is created automatically before funding.
- Production — Returns
403; mock endpoints are not available in production.
Related Documentation
- Mock Endpoints Overview
- Mock Deposit — simulate VBA / provider deposit webhooks
- Mock Payout — simulate payout webhooks
- Wallets API — wallet balances and structure
- Environments — staging base URL