Portfolio

The money records older than the snapshot’s window

The portfolio a browser is given holds every open item and the last two calendar years of invoices, payments, bank movements and their matches. A screen that looks further back — a lease’s whole ledger, a bank account’s movements, a past year’s figures — reads that scope here and holds it beside the snapshot. What comes back is closed over its own links: a payment arrives with the invoices it paid and the movement it came off, so nothing names a record that is not here.

get/api/v1/portfolio/history

Request

  • Base URL: http://localhost:5180
  • URL: http://localhost:5180/api/v1/portfolio/history
  • Auth: API key in cookie better-auth.session_token

Query parameters

leasestring

Everything ever invoiced, paid and banked for one lease.

contactstring

The same for one person: what they were invoiced and what they paid.

bankAccountstring

Every movement on one bank account, with what each one paid.

fromstring

A period, with to: invoices due or issued in it, payments received in it, movements dated in it.

tostring

The last day of the period, included.

Response

Every record in that scope.

okunknown required

Changes

No recorded changes to this operation across all 1 revision of this API.