Reports

Paginated journal-line drill-down for a GL account

Changed on

Returns all journal lines that hit the account, sorted chronologically, with a running balance per the account's normal balance. Supports date-window filtering and cursor pagination.

get/companies/{companyId}/reports/general-ledger/{accountId}/entries

Request

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

Path parameters

companyId, string uuid required
accountId, 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
endDate, string date
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.

limit, integer
cursor, string
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.

Response

Paginated drill-down payload

object required
success, boolean
data, object
meta, object

Changes

    • info

      added the new optional query request parameter basis

    • info

      added the optional property data/reportBasis to the response with the status

    • info

      added the optional property meta/totalItemCount to the response with the status