Transactions

Get facet counts for transactions

Returns per-source-account and per-category counts for the non-deleted transactions in the authorized scope and optional inclusive occurred_on window (same date semantics as the list). Search, status, direction, sort and the source/category selections do not narrow the counts. Each source account counts unique rows matching either their bank or integration account ID, as selecting that source does in the list. Distinct source buckets may overlap, so their sum may exceed the number of rows. unassignedSourceCount counts rows with both source IDs absent. Category counts and unassignedCategoryCount partition the rows in the window. Used to populate multi-select filter chips in the transaction list UI.

get/companies/{companyId}/transactions/facets

Request

  • Base URL
    https://api.medianfi.com/api/v1
  • Auth
    HTTP bearer

Path parameters

companyId, string uuid required

Query parameters

entityId, union
string uuid
OR
'consolidated'

Concrete legal entity. consolidated requires all-entity access; omitted scopes to the actor's grants.

dateFrom, string date

Inclusive lower bound on occurred_on (YYYY-MM-DD, a real calendar date).

dateTo, string date

Inclusive upper bound on occurred_on (YYYY-MM-DD, a real calendar date).

Response

Facet counts

object required
success, boolean
data, object

Changes

No recorded changes to this operation across all 110 revisions of this API.