Overview
Monzoh includes a built-in mock mode that allows you to test your application without making real API calls to the Monzo API. This is particularly useful for:- Development: Test your application logic without affecting real accounts
- Testing: Write unit tests without requiring API credentials
- Demos: Showcase your application with realistic data
- Rate limit avoidance: Develop without consuming your API quota
Enabling Mock Mode
Mock mode is activated by using"test" as your access token:
When using mock mode, no real HTTP requests are made to the Monzo API. All responses are generated from predefined mock data.
Mock Data Coverage
Mock mode provides realistic test data for all major API endpoints:Accounts
- Current account with realistic balance and spend data
- Savings account with different balance information
- Proper account IDs and metadata
Transactions
- Various transaction types (purchases, transfers, direct debits)
- Realistic merchant data with logos and categories
- Different amounts and descriptions
- Proper timestamps and metadata
Balance Information
Pots (Savings)
Other Endpoints
Mock data is also available for:- Webhooks: Mock webhook registration and management
- Attachments: Simulated file upload responses
- Receipts: Mock receipt creation and management
- Feed items: Sample custom feed item creation