Sub-Ledgers

Expenses sub-ledger view

Demo-parity customer route for an explicitly allowlisted active or test company. Range-driven expenses sub-ledger composing the P&L recognized total (posted JE lines on Expense accounts) with booked documents (bills in processed or reviewed status) and direct categorized transactions. Returns tiles (recognized, booked, prepaid carrying, accrued carrying), a 6-month-floor monthly chart, and a drill-down grouped by GL expense category. All amounts in cents. Posted-only.

get/companies/{companyId}/sub-ledgers/expenses

Request

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

Path parameters

companyId, string uuid required

Query parameters

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.

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.

Headers

X-Median-App-Surface, 'qa'

Optional customer-app bundle marker for production-promoted demo-parity routes. Production customer calls omit this header. When present, qa selects the QA bundle and the server additionally requires an allowlisted test company with persisted client_status=test.

Response

Expenses sub-ledger payload

object required
success, boolean
data, SubLedgerExpensesView

Changes

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