Legal metrics envelope (three GL-only cards)
Changed onReturns the Home legal-metrics pack (#3927), every figure scoped to the one legal entity resolved exactly as /overview resolves it (entityId when given, else the actor's single authorized entity; echoed as data.entityId). Owner draws against profit (year to date — from the saved fiscal year start when companies.fiscal_year_end is set, else January 1, the window's label says which — and trailing 12 months): drawsCents is the debits to the chart's active owner-draw / member-distribution equity accounts over posted, non-closing entries in the window that move something other than equity; credits to those accounts are reported separately as returnedCents and never netted, and an entry whose every line is equity (a year-end sweep of draws into capital) is skipped; netIncomeCents is the P&L's net income for the same dates. Cash after card balances is the overview's operatingCashAvailable (posted cash less short-term debt) for the same entity, as /overview serves it. Collections for the trailing 3 and 12 months is the P&L's revenue for the window; kind is collections only when the configured statement basis is cash (the ledger's revenue, which is cash collected while the ledger carries no receivables); on accrual or unset books it is recognized_revenue, and basisSource says whether a basis was saved at all. Draws are equity, never an expense: no P&L or burn figure changes. Honest denominators: a card whose input is absent reports available: false with a reason and a readable detail (a chart with no active owner-draw account reports no_owner_draw_account, never a zero). Each card carries the proven minorUnitExponent of its currency and each window the inclusive dates the reports tie to. Returns 404 unless legal_metrics is in the company's additionalMetrics list; the surface does not exist for an unlisted company.
Request
- Base URLhttps://api.medianfi.com/api/v1
- AuthHTTP bearer
Path parameters
Query parameters
Concrete legal entity to read on Home. Omission is accepted only when the actor is authorized to exactly one concrete entity. Consolidated or group scope is not silently collapsed to an arbitrary entity.
Response
Legal metrics envelope
Changes
- info
endpoint added
- info