List totals
Splits one category’s total into rows by merchant, card, department, tag or month, in one
call. Merchant, card, department and tag rows across all pages, and periodic month rows, add
up to GET /aggregations/total for the same parameters. Point-in-time month rows are cumulative closing balances, so don’t add them;
the last calendar month’s row matches GET /aggregations/total with date=end_date.
group_by=merchant: one row per merchant or counterparty,order=descby default. Dates follow the category’s rules:start_dateandend_date, ordatefor point-in-time categories.group_by=card,group_by=departmentandgroup_by=tag: ranked and dated like merchants. Each entry has at most one card, department and tag, and activity without one is a single row with a null ID. Card rows use thecard_IDs, names and last four digits fromGET /cards. An entry’s card is its transaction’s card, following split lines, spreads, department splits and capitalizations back to that transaction. Bulk-split entries, entries not from a transaction and Plaid credit cards have no card. A card’snameis the cardholder on Mercury and can be a nickname on Ramp, Brex, Slash and Rho. Department rows are the department assigned to each entry, not its parent group. Tag rows use whole-month tag rollups, and partial months read raw entries; card and department rows read raw entries for the whole range, so long ranges are slower.group_by=month: one row per month, at most 120, in calendar order unlessorderis given. Always takesstart_dateandend_date. Periodic first and last month rows are clipped to those exact inclusive dates. Point-in-time rows include all activity through each month’s closing date, with the last calendar month’s cutoff atend_date;start_dateselects the first displayed month, not the start of cumulative activity.
Dates are calendar dates in America/Los_Angeles (Pacific Time). Whole months use
whole-month rollups, and the current month’s first day through today uses fresh MTD
rollups. Other partial months, including a midmonth periodic start, read raw entries for
only those months and are slower. Stale or unfilled MTD falls back to raw entries.
Whole-month and month-aligned month-to-date/year-to-date requests remain fast when MTD
is fresh. Full-date totals previously ignored the day; honoring it is a behavioral
breaking change shared with GET /aggregations/total.
order ranks by amount in the category’s normal direction, so desc lists the vendors you
spent the most with first under an expense category, and the customers who paid you the
most first under an income category. limit returns the first rows in whichever order
applies; page with next_cursor.
Merchant names are exact, so spelling variants are separate rows; activity without a name
is one row with merchant: null. Response dates are the boundaries actually used.
refreshed_at covers the entire returned page, including MTD and any live raw portion,
not just its whole months. A live raw read is current as of the call even when no raw
entries match. Signs, freshness timestamp selection, and the rejected period and
department_id parameters work as in GET /aggregations/total.
Authorizations
Query Parameters
A category name in place of category_id; send one or the other. An exact name, ignoring case and extra spaces, is used as is. Otherwise the one category whose name is close enough is used; for a match by Finta's model, call POST /categories/resolve first. category_resolution in the response says which category was used and how, and repeats its point_in_time; page with its id. A name that matches several categories exactly, or nothing usable, returns 404 resource_missing with suggestions. Looking up names needs the Accounting setup: View permission; without it, 403 insufficient_permission. At most 200 characters; a blank value returns 400.
200merchant, card, department or tag to rank them, or month for one row per calendar month. For department, a company without departments gets 403 feature_disabled or plan_upgrade_required. See "Early access endpoints" under Errors.
merchant, month, card, department, tag Calendar date in Pacific Time, as YYYY-MM-DD. Exact inclusive start for periodic categories; selects the first displayed month for point-in-time month groups without excluding earlier cumulative activity. Required for periodic categories and any group_by=month. Legacy month parameters are not supported here.
desc lists the largest amounts first and asc the smallest first, measured in the category's normal direction (so desc is the biggest spend first under an expense category). Defaults to desc for every grouping but months. Months without order are in calendar order. Ties are listed by merchant name, in a stable order with the row without an ID first, or by month oldest first. A merchant whose refunds exceeded its charges under an expense category comes last with desc.
asc, desc Response
The category total, grouped
Unix timestamp covering the entire returned page, including partial months, not just full-month rows. For rollup-only reads, the maximum contributing rollup timestamp including MTD. Any live raw-entry portion is current as of the call, even with no matching raw entries. Null only when no contributing timestamp or live raw read is available.