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.
| Parameter | Description |
|---|---|
startDate, endDate | Required, inclusive, YYYY-MM-DD. At most 15 years apart. |
interval | day, week, biweekly, semimonthly, month (default), quarter, year or total. total returns one bucket for the whole range. |
accountId | Repeatable. Only transactions in these accounts. |
categoryId | Repeatable. Only splits in these categories. A category group ID expands to all of its child categories. |
payeeId | Repeatable. Only transactions with these payees. |
createdBy | Repeatable. Only transactions created by these members. See Spending by member. |
type | expense (default) or income. |
sort | amount (default) or count. Always descending. |
limit | Maximum 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. Withtype=income, only income transactions count. Either kind counts when it is recorded without a category (allowed on loan accounts). It is reported as a singleUncategorizedrow (categoryId: null) in the category report and counts toward its payee in the payee report, sosummary.totalAmountequals the income or expense inincome-vs-expensefor the same range. AcategoryIdfilter 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 (
minorand a formatteddisplay).
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
transactionCountis 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 withcategoryId,categoryName,groupId,groupName,rank,total,transactionCount,percentageandperiods. Top-level categories have anullgroupIdand the group nameUngrouped. Money with no category (an expense, or withtype=incomeincome, recorded without one) is one row with anullcategoryIdand the nameUncategorized.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'spercentageandperiodsfollow 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_…
| Parameter | Values | Default |
|---|---|---|
horizonDays | 30, 90, 180, 365 (12 months) | 90 |
interval | daily, weekly (seven-day buckets, the last clipped to the horizon) | daily |
accountId | Repeatable. Restrict to these accounts; foreign IDs are rejected. | all non-archived accounts |
fundingFallback | true 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_transactionorinvoice),sourceId, an optionaloccurrenceKey,name, a signedchange,counterAccountIdfor transfers andoverdue. An overdue item is expected today, never in the past. firstNegativeDateis the first end-of-day date an asset account's projected balance is below zero (today if it already is), ornull. It is alwaysnullfor liabilities such as credit cards. It is computed per day, so it does not depend oninterval.- Bills with no account, income schedules with no destination account and all
invoices are returned in
unassignedEventswith areason(no_account, oraccount_archived) and never change a balance, unlessfundingFallback=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 carriesfallbackAccount: true(the field is absent otherwise) andassumptionsgains afunding_fallbackentry naming the account. If the workspace has no such account the items stay inunassignedEventsand thefunding_fallbackassumption hasincluded: false. Items on an archived account stay unassigned. If the fallback account is filtered out withaccountId, its events are not shown. A scenario forecast does not use the fallback. assumptionsis 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.horizonDaysorintervaloutside 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.
| Field | Description |
|---|---|
memberId | Membership ID, still set after the member has left. null for the unattributed row. |
displayName | A 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. |
formerMember | true when the member is no longer in the workspace. |
unattributed | true for the row of transactions with no recorded creator. |
total, percentage, periods | The member's spending and its share of the report total, with a zero-filled amount per period. |
categoryGroups | The 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.
Spending trends
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.
| Parameter | Description |
|---|---|
startDate, endDate | Required, inclusive, YYYY-MM-DD: the current period. At most 15 years apart. |
compare | previous (default) or none. With none only the current period is returned and previous, previousBasis and every changePercent are null. |
accountId, categoryId, createdBy | Repeatable 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:
| Field | Description |
|---|---|
id, name | Category or payee. id is null for Uncategorized and No payee. |
current, previous | Spending in each period, positive, as {minor, display} money. |
change | current minus previous in integer minor units. Negative when spending fell. |
changePercent | change 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.
| Report | Operation | Rows |
|---|---|---|
| Cash flow | get-cash-flow-csv | One per period (inflows, outflows, net), then Total |
| Income vs. expense | get-income-vs-expense-csv | One per period (income, expense, net), then Total |
| Net worth | get-net-worth-csv | One per period end (assets, liabilities, net worth) |
| Balance over time | get-balance-over-time-csv | One per period end; mode=accounts adds a column per account |
| Spending by category | get-spending-by-category-csv | One per category with an amount per period, its total and share, then Total spending (groupBy=member adds nothing to the file) |
| Spending by payee | get-spending-by-payee-csv | One per ranked payee, Other when a limit hides payees, then Total |
| Spending trends | get-spending-trends-csv | Total, 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 report | get-payee-report-csv | One per payee with an amount per period, total and transaction count, Other, then Total |
| Category report | get-category-report-csv | Group 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:
| Report | Operation | MCP tool |
|---|---|---|
| Net worth | get-net-worth-report | get_net_worth_report |
| Cash flow | get-cash-flow-report | get_cash_flow_report |
| Spending by category | get-spending-by-category-report | get_spending_by_category_report |
| Spending by payee | get-spending-by-payee-report | get_spending_by_payee_report |
| Spending trends | get-spending-trends-report | get_spending_trends_report |
| Income vs. expense | get-income-vs-expense-report | get_income_vs_expense_report |
| Balance over time | get-balance-over-time-report | get_balance_over_time_report |
| Savings growth | get-savings-growth-report | get_savings_growth_report |
| Age of money | get-age-of-money-report | get_age_of_money_report |
| Net worth forecast | get-net-worth-forecast-report | get_net_worth_forecast_report |
| Account balance forecast | get-account-balance-forecast-report | get_account_balance_forecast |
| Payees by period | get-payee-report | get_payee_report |
| Categories by period | get-category-report | get_category_report |
| Goal trackers (details) | get-goal-trackers-report | get_goal_trackers_report |