Transactions

List transactions with filters

Changed on
get/companies/{companyId}/transactions

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.

status, 'needs_review' | 'categorized'
direction, 'in' | 'out'
dateFrom, string date
dateTo, string date
bankAccountId, string uuid
sourceProvider, string

Source provider filter. Distinct from category filters.

sourceAccountId, union
string uuid
OR
string[]

Integration account or bank account source filter. Distinct from categoryGlAccountId. Accepts a single UUID, comma-separated UUIDs, or repeated params (OR semantics within dimension; max 50).

categoryGlAccountId, union
string uuid
OR
string[]

GL account category filter. Distinct from sourceAccountId. Accepts a single UUID, comma-separated UUIDs, or repeated params (OR semantics within dimension; max 50).

classId, string uuid

Accounting class filter. Distinct from categoryGlAccountId.

tagId, union
string uuid
OR
string[]

Accounting tag filter (#1166). Comma-separated or repeated; a transaction matches when it carries ANY listed tag. ORed with untagged, ANDed with every other filter. An existence test, so a transaction with several selected tags appears once.

untagged, 'true' | 'false'

When true, include transactions with no tag (ORed with tagId).

categoryState, 'uncategorized'

Filters transactions by category assignment state. uncategorized keeps meaning "null category only" and ANDs with the other filters (with categoryGlAccountId ids it matches nothing, as before).

includeUnassignedSource, 'true' | 'false'

true also selects rows with no source (neither bank nor integration account). With sourceAccountId the source dimension is ids OR unassigned; alone it is unassigned-only. false or absent adds nothing.

includeUnassignedCategory, 'true' | 'false'

true also selects rows with no category GL account. With categoryGlAccountId the category dimension is ids OR unassigned; alone it is unassigned-only. false or absent adds nothing.

search, string
sort, 'date_desc' | 'date_asc' | 'amount_desc' | 'amount_asc' | 'confidence_desc' | 'confidence_asc'

Ordering of the whole scan, applied identically to every page. The returned meta.nextCursor is bound to this sort: pass the same sort on every page, or the request is rejected with 422 instead of returning a page from a different order. Ties break on occurredOn descending then id; date_asc is fully ascending; NULL confidence sorts last under both confidence sorts.

limit, integer
cursor, string
page, string

Not supported. Present only so the rejection is explicit; this list pages with limit and cursor. Any value returns 422.

offset, string

Not supported. Present only so the rejection is explicit; this list pages with limit and cursor. Any value returns 422.

Response

Paginated list of transactions

TransactionsListResponse required
success, boolean
data, Transaction[]
meta, PaginationMeta

Changes

    • info

      added the new optional query request parameter offset

    • info

      added the new optional query request parameter page

    • info

      added the non-success response with the status