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
required

A cat_ ID returned by GET /categories.

Pattern: ^cat_[A-Za-z0-9]+$
group_by
enum<string>
required

merchant to rank merchants, or month for one row per calendar month.

Available options:
merchant,
month
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 group_by=merchant, 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 merchants. Months without order are in calendar order. Ties are listed by merchant name, 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 merchants; 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
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 with group_by=merchant.

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 with group_by=merchant.

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 with group_by=merchant.

point_in_time
boolean
required

When true, merchant 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