Reports

Get the trial balance as of a date

Changed on

Returns the trial balance for the company as of asOfDate (or the latest available month when omitted). The response includes isBalanced: true when |debitTotal - creditTotal| <= 1 cent (REPORT_SELF_CHECK_TOLERANCE_CENTS). Only posted GL entries are included. Uses the same computation as the accountant trial balance but is scoped to the authenticated company member.

get/companies/{companyId}/reports/trial-balance

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.

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.

asOfDate, string date

ISO date (YYYY-MM-DD). Mid-month requests are calculated from posted entries through this exact date when an entity can be resolved; otherwise the response identifies its monthly-cache fallback.

endDate, string date

Alias for asOfDate (backward compatibility).

month, string

YYYY-MM or YYYY-MM-DD month string (legacy; prefer asOfDate).

Response

Trial balance

object required
success, boolean
data, object

Changes

    • warning

      added the new cash enum value to the data/reportBasis response property for the response status

    • info

      added the new optional query request parameter basis

    • info

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