Skip to main content
GET
List totals

Authorizations

Authorization
string
header
required

API key prefixed with finta_

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>

First selected month, as YYYY-MM-DD. Required for a periodic category, and for any category with group_by=month. The day is ignored. The deprecated start_month and end_month of GET /aggregations/total are not supported here.

end_date
string<date>

Last selected month, included, as YYYY-MM-DD. Required for a periodic category, and for any category with group_by=month. The day is ignored.

date
string<date>

Selected month for a point-in-time category with group_by=merchant, as YYYY-MM-DD. Rejected for periodic categories and with group_by=month. The day is ignored.

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 requested start date. Null for a point-in-time category with group_by=merchant.

end_date
string<date> | null
required

The requested end date. Null for a point-in-time category with group_by=merchant.

date
string<date> | null
required

The requested point-in-time date. Set only for a point-in-time category with group_by=merchant.

point_in_time
boolean
required

When true, each row is a balance through the end of its month (or through date) rather than activity over the period.

currency
enum<string>
required

ISO 4217 currency code for every amount in data.

Available options:
USD
refreshed_at
integer | null
required

Unix timestamp of the most recent change to data in the returned rows. Null when no data matches.

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