Reports

Cash flow statement (indirect method)

Changed on

Cash flow computed via the indirect method. Starts from net income and reconciles by adjusting for non-cash balance sheet movements. The sum of operating + investing + financing always equals the actual cash movement for the period; any unclassified drift is surfaced as "Other net adjustments" in operating. Accepts a date range; comparePeriod returns a side-by-side comparison column.

get/companies/{companyId}/reports/cash-flow

Request

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

Path parameters

companyId, string uuid required

Query parameters

entityId, string uuid

Concrete legal entity to read. Mutually exclusive with reportingScopeId/scopeAsOf. Omission is accepted only when the actor is authorized to exactly one concrete entity.

reportingScopeId, string uuid

Immutable within-company consolidated reporting-scope identity. Must be supplied with scopeAsOf and cannot be combined with entityId.

scopeAsOf, string date

ISO date used to pin the effective sealed reporting-scope hierarchy version. Must be supplied with reportingScopeId.

startDate, string date

Inclusive period start (YYYY-MM-DD). Must be supplied together with endDate.

endDate, string date

Inclusive period end (YYYY-MM-DD). Must be supplied together with startDate.

allTime, 'true'

true reports from the first through the last posted month on the P&L and cash flow, where omitting startDate/endDate still returns only the latest posted month, so "all time" must be requested by name. The general ledger reads an omitted range as the whole ledger either way. Cannot be combined with startDate/endDate, month or a comparePeriod other than none (400).

comparePeriod, 'none' | 'prior-period' | 'prior-year'

Comparison mode. prior-period shifts back by the range length (snapped to full calendar months when the range is month-aligned). prior-year shifts both dates back 12 months. none (default) returns no comparison.

granularity, 'month' | 'quarter' | 'year'

Override inferred granularity. Advisory; the service still validates the actual range.

classId, string

Optional class filter for class-aware report endpoints. Pass a company-scoped accounting class UUID, or unassigned for journal lines with no class. Customer-facing use returns data only for active approved company classes.

basis, 'accrual' | 'cash'

#4962 / #4981: the basis a customer statement (P&L, account drilldown, balance sheet, cash flow, trial balance, and the P&L and balance sheet exports) is calculated on. Omitted: the company's configured statement basis (configuredBasis, the source the accountant app reads) on the range's end date; cash only when it is cash, accrual otherwise. An explicit value wins. When cash is only the default and the cash view refuses (for example policy_unreviewed), the answer is the accrual calculation, labelled reportBasis: accrual; an explicitly asked cash is refused instead. Display only: nothing is written to the ledger. Any other value is a 400.

month, string

Legacy month param (YYYY-MM). Prefer startDate/endDate.

Response

Cash flow payload. checks independently evaluates exact beginning-plus-statement-movement-equals-ending identity and the one-cent-tolerance ending-cash versus monthly-balance cross-check. Legacy differenceFromBalanceSheetCents remains an integer (zero when skipped); legacy isConsistent is false for any executed failure and true otherwise, including skipped checks. Optional comparison object on the payload when a comparison was requested.

object required
success, boolean
data, intersection

Changes

    • info

      added the new optional query request parameter basis

    • warning

      added the new cash-basis-v2 enum value to the data/allOf[#/components/schemas/StatementBasisMetadata]/cashBasis/policyId response property for the response status

    • info

      removed the cash-basis-v1 enum value from the data/allOf[#/components/schemas/StatementBasisMetadata]/cashBasis/policyId response property for the response status