Skip to main content

Payee and category reports

Two report endpoints answer "how much did I spend at Tesco each month" and "how many grocery transactions did I have in Q3". Each returns an amount and a distinct transaction count per row, with a zero-filled breakdown per period.

Both need the reports:read scope, are available on every plan, and draw on the api.report-generation rate-limit policy.

GET /api/v1/workspaces/{workspaceID}/reports/payees
GET /api/v1/workspaces/{workspaceID}/reports/categories

The operation IDs are get-payee-report and get-category-report. Both are also available to AI assistants as the get_payee_report and get_category_report MCP tools.

Query parameters​

Both endpoints take the same parameters.

ParameterDescription
startDate, endDateRequired, inclusive, YYYY-MM-DD. At most 15 years apart.
intervalday, week, biweekly, semimonthly, month (default), quarter, year or total. total returns one bucket for the whole range.
accountIdRepeatable. Only transactions in these accounts.
categoryIdRepeatable. Only splits in these categories. A category group ID expands to all of its child categories.
payeeIdRepeatable. Only transactions with these payees.
createdByRepeatable. Only transactions created by these members. See Spending by member.
typeexpense (default) or income.
sortamount (default) or count. Always descending.
limitMaximum rows returned. Default 50, maximum 500.

Empty filter values are ignored. An account, category or payee ID that does not belong to the workspace is rejected with 422, as are an unknown interval, type or sort.

What counts​

The reports use the same calculation as spending by payee and spending by category:

  • With type=expense, only expense transactions count. With type=income, only income transactions count. Either kind counts when it is recorded without a category (allowed on loan accounts). It is reported as a single Uncategorized row (categoryId: null) in the category report and counts toward its payee in the payee report, so summary.totalAmount equals the income or expense in income-vs-expense for the same range. A categoryId filter leaves it out.
  • Transfers, credit card payments and loan payments are always excluded.
  • Pending transactions count.
  • The category filter applies per split, so a split transaction contributes only the matching lines to the amount. The payee filter applies per transaction.
  • Amounts are positive integers in the workspace's minor currency unit, wrapped in a money object (minor and a formatted display).

Counts​

A count is the number of distinct transactions, never splits.

  • A transaction split across two categories counts once in each of them.
  • It counts once in a category group that contains both, not twice. A group's transactionCount is the number of distinct transactions touching any of its categories, so it can be lower than the sum of its categories' counts.
  • It counts once in the report's summary.totalCount.

Ordering and limits​

Rows are ordered by sort, descending. Ties break by amount (for count), then by name, then by ID, so the order is stable. Rows beyond limit are removed from the list and summed in summary.otherAmount and summary.otherCount. summary.rowCount is the number of rows before the limit. summary.totalAmount and summary.totalCount always cover every row.

Payee report​

GET /api/v1/workspaces/wks_…/reports/payees?startDate=2026-01-01&endDate=2026-12-31&interval=month&payeeId=vnd_…
{
"meta": { "startDate": "2026-01-01", "endDate": "2026-12-31", "interval": "month", "type": "expense", "sort": "amount" },
"summary": {
"totalAmount": { "minor": 4500, "display": "$45.00" },
"totalCount": 3,
"rowCount": 1,
"otherAmount": { "minor": 0, "display": "$0.00" },
"otherCount": 0
},
"periods": [
{ "index": 0, "startDate": "2026-01-01", "endDate": "2026-01-31", "label": "2026-01", "amount": { "minor": 3000, "display": "$30.00" }, "transactionCount": 2 }
],
"payees": [
{
"payeeId": "vnd_…",
"payeeName": "Tesco",
"rank": 1,
"total": { "minor": 4500, "display": "$45.00" },
"transactionCount": 3,
"percentage": 100,
"periods": [
{ "index": 0, "startDate": "2026-01-01", "endDate": "2026-01-31", "label": "2026-01", "amount": { "minor": 3000, "display": "$30.00" }, "transactionCount": 2 }
]
}
]
}

The top-level periods array holds the totals across all rows (not only the returned ones). Each row's periods has the same length and order, with zeros for empty periods. Transactions without a payee are reported in one row with a null payeeId and the name No payee. percentage is the row's share of summary.totalAmount, or null when that is zero.

Category report​

GET /api/v1/workspaces/wks_…/reports/categories?startDate=2026-07-01&endDate=2026-09-30&interval=total&categoryId=cat_…

The response has the same meta, summary and periods as the payee report, plus two lists:

  • categories: one row per leaf category with categoryId, categoryName, groupId, groupName, rank, total, transactionCount, percentage and periods. Top-level categories have a null groupId and the group name Ungrouped. Money with no category (an expense, or with type=income income, recorded without one) is one row with a null categoryId and the name Uncategorized.
  • groups: one row per category group that has at least one transaction, with amounts and counts that roll up its categories (see Counts). A group's percentage and periods follow the same rules.

limit applies to categories only. groups is always complete, and summary.rowCount, otherAmount and otherCount describe the category rows.

Account balance forecast​

get-account-balance-forecast-report projects each account's end-of-day balance forward from today in the workspace time zone. It reads only: nothing is created or changed.

GET /api/v1/workspaces/wks_…/reports/account-balance-forecast?horizonDays=90&interval=weekly&accountId=acct_…
ParameterValuesDefault
horizonDays30, 90, 180, 365 (12 months)90
intervaldaily, weekly (seven-day buckets, the last clipped to the horizon)daily
accountIdRepeatable. Restrict to these accounts; foreign IDs are rejected.all non-archived accounts
fundingFallbacktrue applies items that name no account to a fallback funding account (see below).false

It takes no dates. It needs the reports:read scope and, like every report, is available on every plan.

The response has meta (asOfDate, endDate, horizonDays, interval), assumptions, accounts and unassignedEvents. Each account has currentBalance, endingBalance, lowestBalance with lowestDate, classification (asset or liability), firstNegativeDate and points. A point has startDate, endDate, balance (as of the end of endDate), the bucket's net change and the events behind it. Amounts are {minor, display} in the workspace currency.

  • Events come from open and upcoming bills (the unpaid remainder, from the bill's account), income schedule occurrences (to the destination account; paused, ended and skipped occurrences add nothing), active recurring transactions (a transfer is two events) and issued invoices.
  • An event has source (bill, income_schedule, recurring_transaction or invoice), sourceId, an optional occurrenceKey, name, a signed change, counterAccountId for transfers and overdue. An overdue item is expected today, never in the past.
  • firstNegativeDate is the first end-of-day date an asset account's projected balance is below zero (today if it already is), or null. It is always null for liabilities such as credit cards. It is computed per day, so it does not depend on interval.
  • Bills with no account, income schedules with no destination account and all invoices are returned in unassignedEvents with a reason (no_account, or account_archived) and never change a balance, unless fundingFallback=true (below). A forecast without the parameter is unchanged.
  • With fundingFallback=true, bills with no account, income schedules with no destination account and issued invoices are applied to the first open checking account, else the first open savings, cash or digital wallet account, in the order the accounts are listed. Each such event carries fallbackAccount: true (the field is absent otherwise) and assumptions gains a funding_fallback entry naming the account. If the workspace has no such account the items stay in unassignedEvents and the funding_fallback assumption has included: false. Items on an archived account stay unassigned. If the fallback account is filtered out with accountId, its events are not shown. A scenario forecast does not use the fallback.
  • assumptions is a fixed list of {code, included, description} saying what the forecast accounts for (bills, income schedules, recurring transactions, invoices, the sign of liability balances, a single workspace currency) and what it deliberately leaves out (variable_spending, future_dated_transactions, interest_and_fees). Show it next to the numbers rather than presenting them as a prediction.
  • horizonDays or interval outside the lists above is rejected with a validation error.

Budget performance​

GET /v1/workspaces/{workspaceID}/funding-period-history?from=2026-01-01&to=2026-03-31 (scope funding:read, every plan) returns what each category was assigned and what it spent in every budget period overlapping the inclusive range, up to 60 periods. Both from and to are required YYYY-MM-DD dates; to before from, or too many periods, returns 422 (INVALID_BUDGET_PERIOD_RANGE).

{
"periods": [{"startDate": "2026-03-01", "endDate": "2026-03-31"}],
"summary": [{
"assigned": {"minor": 60000, "display": "$600.00"},
"spent": {"minor": 20000, "display": "$200.00"},
"difference": {"minor": 40000, "display": "$400.00"},
"over": false,
"overCategoryCount": 0
}],
"categoryGroups": [{
"groupId": "cat_...", "groupName": "Everyday", "isSystem": false,
"periods": [{"assigned": {"minor": 60000, "display": "$600.00"}, "spent": {"minor": 20000, "display": "$200.00"}, "difference": {"minor": 40000, "display": "$400.00"}, "over": false}],
"categories": [{"categoryId": "cat_...", "categoryName": "Food", "hidden": false, "periods": ["..."]}]
}]
}

assigned and spent are the funding screen's assigned-this-period and activityThisPeriod for the same period, from the same calculation. spent is positive for spending and a refund reduces it. difference is assigned - spent, and over is true when spent > assigned. Every periods array, and summary, has one entry per period in the order of the top-level periods. Archived categories are listed only when they have a non-zero figure in the range. The MCP tool is get_budget_performance.

Spending by member​

In a shared workspace, you can restrict a report to what particular members entered, and break spending by category down by member. The data is the createdBy recorded on each transaction (the transactions API reports it and filters by it); nothing new is stored.

The createdBy filter​

createdBy is repeatable (up to 100 values) on these operations: get-spending-by-category-report, get-spending-by-payee-report, get-payee-report, get-category-report, get-cash-flow-report and get-income-vs-expense-report. Each value is either:

  • a membership ID (mbr_...), including a member who has since left the workspace, or
  • the literal unattributed, for transactions with no recorded creator (transactions created before attribution existed, and recurring postings from a series created before it).

Values combine as "or": createdBy=mbr_a&createdBy=unattributed returns the transactions from mbr_a plus the unattributed ones. Empty values are ignored. An ID that matches nobody simply matches nothing; it is not an error. More than 100 values is rejected with 422. The filter combines with every other filter as "and", and every report keeps its own rules about what counts, so totals for the same filters still agree between the reports.

groupBy=member​

get-spending-by-category-report also takes groupBy: category (the default) or member. With member, the response gains a members array. Nothing else in the response changes: summary, periods and categoryGroups are exactly what the same request returns without groupBy, so the two always reconcile.

FieldDescription
memberIdMembership ID, still set after the member has left. null for the unattributed row.
displayNameA current member's display name (empty when they have none; use the members list to label them). For a member who has left, the name stored on their transactions, or Former member when none was stored. Empty for the unattributed row.
formerMembertrue when the member is no longer in the workspace.
unattributedtrue for the row of transactions with no recorded creator.
total, percentage, periodsThe member's spending and its share of the report total, with a zero-filled amount per period.
categoryGroupsThe same group and category tree as the report, restricted to that member. It adds up to the member's total.

Rows are ordered by total, largest first. The unattributed row is always last, and is present whenever matching transactions have no creator, even if they net to zero. A member with no matching transactions has no row. The member totals add up to summary.totalSpending.

groupBy and createdBy combine: the filter applies first, then the result is grouped.

Read-only roles (Reviewer, Viewer, Advisor) can use both, with the same access as any other report: reports:read for access tokens, and membership of the workspace. Data exports are unchanged. They do not read these parameters.

Which transactions have a creator: those created by hand, through an access token (the member who owns the token), by approving a Needs review item (the member who approved it, single or bulk), through an import (the member who started it) or by a recurring transaction's posting (the member who created the series). Rows that already existed are not backfilled, so older imports, recurring postings and inbox approvals stay unattributed.

get-spending-trends-report (GET /v1/workspaces/{workspaceID}/reports/spending-trends) compares spending in one period with the period before it, by category and by payee. The server does the money maths and finds the previous period, so a client never has to work out pay-period boundaries.

ParameterDescription
startDate, endDateRequired, inclusive, YYYY-MM-DD: the current period. At most 15 years apart.
compareprevious (default) or none. With none only the current period is returned and previous, previousBasis and every changePercent are null.
accountId, categoryId, createdByRepeatable filters, as on spending by category.

Which period is "previous". If startDate and endDate are exactly one of the workspace's budget periods (calendar months, semi-monthly halves, biweekly or other pay periods), the previous period is the budget period before it, even when the two differ in length (February against January). Otherwise the previous period has the same number of days and ends the day before startDate. previousBasis says which rule applied: budget_period or equal_length.

The response has current and previous date ranges, a total row, and categories and payees arrays, largest current spending first. A category or payee with no spending in either period is left out. Each row has:

FieldDescription
id, nameCategory or payee. id is null for Uncategorized and No payee.
current, previousSpending in each period, positive, as {minor, display} money.
changecurrent minus previous in integer minor units. Negative when spending fell.
changePercentchange as a percentage of previous. null when previous is zero, never infinite.

Spending follows the same rules as spending by category: income, transfers and credit card or loan payments are excluded, and for the same filters total.current equals that report's total. The tool is get_spending_trends_report, and the operation counts against the reports rate limit like the other reports.

CSV downloads​

Nine reports have a CSV twin: the same path with .csv appended, the same query parameters and the same scope (reports:read). The file is rendered from the report the JSON operation returns, so its totals are that report's totals for the same request, not a second calculation. Like the JSON reports they work on every plan and for every role that can read the workspace.

ReportOperationRows
Cash flowget-cash-flow-csvOne per period (inflows, outflows, net), then Total
Income vs. expenseget-income-vs-expense-csvOne per period (income, expense, net), then Total
Net worthget-net-worth-csvOne per period end (assets, liabilities, net worth)
Balance over timeget-balance-over-time-csvOne per period end; mode=accounts adds a column per account
Spending by categoryget-spending-by-category-csvOne per category with an amount per period, its total and share, then Total spending (groupBy=member adds nothing to the file)
Spending by payeeget-spending-by-payee-csvOne per ranked payee, Other when a limit hides payees, then Total
Spending trendsget-spending-trends-csvTotal, then one Category and one Payee row each with current, previous, change and change %; compare=none leaves previous, change and change % empty, and a blank change % means no previous spending
Payee reportget-payee-report-csvOne per payee with an amount per period, total and transaction count, Other, then Total
Category reportget-category-report-csvGroup rows (roll-ups) and Category rows, Other, then Total of the category rows

The business statements already have their own CSV operations (profit and loss, balance sheet, expenses and expense details); they need a business workspace and keep their rules. The other reports (age of money, savings growth, forecasts, goal trackers) have no CSV.

The response is text/csv; charset=utf-8 with Content-Disposition: attachment; filename="cash-flow-2026-01-01-to-2026-03-31.csv" and Cache-Control: private, no-store. Amounts are plain decimals with the workspace currency's precision and a dot, with no symbol or grouping, and a negative amount keeps its minus sign. Text cells (account, category, group and payee names) that start with =, +, -, @, a tab or a carriage return get a leading ' so a spreadsheet never runs them as a formula. Errors are the JSON report's errors (for example 422 for an inverted range), and the MCP assistants keep using the JSON reports.

Relationship to the other reports​

For the same filters and type=expense, summary.totalAmount equals the total of get-spending-by-payee-report and get-spending-by-category-report, and summary.totalCount equals the spending-by-payee transaction count. The older reports do not expand category groups in categoryId; the new ones do.

Investment accounts with a recorded valuation count at their market value in the net worth, net worth forecast, balance over time and account balance forecast reports; see Investment account valuations.

The other report operations are unchanged:

ReportOperationMCP tool
Net worthget-net-worth-reportget_net_worth_report
Cash flowget-cash-flow-reportget_cash_flow_report
Spending by categoryget-spending-by-category-reportget_spending_by_category_report
Spending by payeeget-spending-by-payee-reportget_spending_by_payee_report
Spending trendsget-spending-trends-reportget_spending_trends_report
Income vs. expenseget-income-vs-expense-reportget_income_vs_expense_report
Balance over timeget-balance-over-time-reportget_balance_over_time_report
Savings growthget-savings-growth-reportget_savings_growth_report
Age of moneyget-age-of-money-reportget_age_of_money_report
Net worth forecastget-net-worth-forecast-reportget_net_worth_forecast_report
Account balance forecastget-account-balance-forecast-reportget_account_balance_forecast
Payees by periodget-payee-reportget_payee_report
Categories by periodget-category-reportget_category_report
Goal trackers (details)get-goal-trackers-reportget_goal_trackers_report