Skip to main content

Overview

The AccountsAPI provides methods to list accounts and retrieve balance information. All account operations are accessed through the client.accounts property.

Methods

list()

List all accounts owned by the current user.
Parameters:
  • account_type (optional): Filter by account type
    • "uk_retail" - Personal current accounts
    • "uk_retail_joint" - Joint current accounts
Returns: list[Account] - List of account objects Example:

get_balance()

Get balance information for a specific account.
Parameters:
  • account_id: The unique account identifier
Returns: Balance - Account balance information Example:

Data Models

Account

Represents a Monzo account.
Common Account Types:
  • uk_retail - Personal current account
  • uk_retail_joint - Joint current account
  • uk_prepaid - Prepaid card (legacy)

Balance

Represents account balance information.
Note: All monetary amounts are in the account’s base currency unit (pounds for GBP).

Usage Examples

Basic Account Information

Account Type Filtering

Balance Details

Account Summary Dashboard

Error Handling

Working with Account Metadata

Mock Mode

When using mock mode (access_token="test"), the accounts API returns predefined test data:
Mock data includes:
  • 2 sample accounts (current and savings)
  • Realistic balance information
  • Proper account structure and IDs
  • Simulated spend_today values

Best Practices

  1. Cache Account Lists: Account information doesn’t change frequently, so cache the results
  2. Handle Closed Accounts: Check account.closed before performing operations
  3. Currency Awareness: Always check balance.currency when displaying amounts
  4. Error Handling: Wrap API calls in try/catch blocks for robust error handling
  5. Rate Limiting: Be mindful of API rate limits when making multiple balance requests