Get the trial balance as of a date
Changed onReturns 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.
Request
- Base URLhttps://api.medianfi.com/api/v1
- AuthHTTP bearer
Path parameters
Query parameters
Concrete legal entity to read. Mutually exclusive with reportingScopeId/scopeAsOf. Omission is accepted only when the actor is authorized to exactly one concrete entity.
Immutable within-company consolidated reporting-scope identity. Must be supplied with scopeAsOf and cannot be combined with entityId.
ISO date used to pin the effective sealed reporting-scope hierarchy version. Must be supplied with reportingScopeId.
#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.
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.
Alias for asOfDate (backward compatibility).
YYYY-MM or YYYY-MM-DD month string (legacy; prefer asOfDate).
Response
Trial balance
Changes
- warning
added the new
cashenum value to thedata/reportBasisresponse property for the response status - info
added the new optional
queryrequest parameterbasis - info
added the optional property
data/cashBasisto the response with the status
- warning