Overview

Customer posted-books cash series (accountant mirror)

Accountant-scoped mirror of GET /companies/{companyId}/metrics/cash-history. Without granularity=day it serves the completed-month contract (MonthlyCashHistoryData). Accountant read only (#3884): when the series is withheld, each history.diagnostic.slots entry also carries reason (the series reason) and, when unclassified Asset accounts with posted lines cause it (incomplete_provenance), unclassifiedAccounts [{ id, code, name }]. The withholding rule is the customer's; the customer mount never returns these two fields. Entity scope is resolved from the customer's own entity roster (accountants hold no per-user entity grants): an explicit entityId must be one of the customer's concrete (non-group) entities; absent, the customer's single concrete entity is used; a multi-entity customer without entityId gets 422 ENTITY_SELECTION_REQUIRED and a customer with no entity gets 422 ENTITY_SCOPE_UNAVAILABLE.

get/accountant/companies/{customerId}/metrics/cash-history

Request

  • Base URL
    https://api.medianfi.com/api/v1
  • Auth
    • HTTP bearer
    • or API key in header X-API-Key

Path parameters

customerId, string uuid required

Query parameters

entityId, string uuid

Concrete legal entity to read on Home. Omission is accepted only when the actor is authorized to exactly one concrete entity. Consolidated or group scope is not silently collapsed to an arbitrary entity.

months, integer

Response

Cash-history envelope (same shape as the customer mount)

CashHistoryResponse required
success, true required
data, CashHistoryData required

Changes

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