Skip to main content
GET
List totals

Authorizations

Authorization
string
header
required

An API key prefixed with finta_, or the access token from a Finta CLI browser login (finta login), prefixed with finta_oat_. A CLI login's access token lasts one hour and the CLI renews it itself.

Query Parameters

category_id
string

A cat_ ID returned by GET /categories. Send this or category; without either, 400 parameter_missing.

Pattern: ^cat_[A-Za-z0-9]+$
category
string

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.

Maximum string length: 200
group_by
enum<string>
required

merchant, 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.

Available options:
merchant,
month,
card,
department,
tag
start_date
string<date>

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.

end_date
string<date>

Exact inclusive final calendar date in Pacific Time, as YYYY-MM-DD. Required for periodic categories and any group_by=month. The last calendar month's row stops at this date, including for point-in-time categories.

date
string<date>

Exact inclusive cutoff calendar date in Pacific Time for a point-in-time category with any group_by but month, as YYYY-MM-DD. Rejected for periodic categories and with group_by=month.

merchant
string

Exact, case-sensitive merchant or counterparty name. Blank means all merchants.

order
enum<string>

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.

Available options:
asc,
desc
limit
integer

Number of rows to return, from 1 to 500, taken from the start of whichever order applies. Defaults to 100 for every grouping but months; months return every month unless it is given.

Required range: 1 <= x <= 500
starting_after
string

The next_cursor value from the previous response, unchanged. Use it with the same request parameters; a cursor from a different request is rejected. Pages are not a frozen snapshot, so rows can shift if data changes between requests.

Response

The category total, grouped

object
enum<string>
required
Available options:
list
url
enum<string>
required
Available options:
/api/v1/aggregations/totals
group_by
enum<string>
required

The requested grouping.

Available options:
merchant,
month,
card,
department,
tag
order
enum<string> | null
required

The order used. Null for months requested without order, which are in calendar order, oldest first.

Available options:
asc,
desc
category_id
string
required

The requested public category ID.

Pattern: ^cat_[A-Za-z0-9]+$
Example:

"cat_o5p6q7r8s9t0u1"

merchant
string | null
required

The exact merchant filter, or null when no merchant filter was applied.

start_date
string<date> | null
required

The actual inclusive periodic start calendar date in Pacific Time, or the date selecting the first displayed month for point-in-time month groups. Null for a point-in-time category grouped by anything but month.

end_date
string<date> | null
required

The actual inclusive periodic end or final monthly closing calendar date in Pacific Time. Null for a point-in-time category grouped by anything but month.

date
string<date> | null
required

The actual inclusive point-in-time cutoff calendar date in Pacific Time. Set only for a point-in-time category grouped by anything but month.

point_in_time
boolean
required

When true, merchant, card, department and tag rows are cumulative through date, and month rows through each month's closing date, with the last calendar month's cutoff at end_date. When false, rows are activity within the exact inclusive requested period.

currency
enum<string>
required

ISO 4217 currency code for every amount in data.

Available options:
USD
refreshed_at
integer | null
required

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.

has_more
boolean
required

True when more rows follow. Always false for months requested without limit.

next_cursor
string | null
required

Pass as starting_after, with the same request parameters, for the next page. Null when has_more is false.

data
object[]
required
category_resolution
object

Which category the request's category name was read as, and how. Present only when the request sent category. Use id for the next page and later calls, so the name isn't read again.