Overview

Posted revenue grouped by invoiced customer

Returns the Home "Revenue by client" card: POSTED revenue journal lines (closing entries excluded) grouped by the customer their invoice provenance actually names, resolved through the AR subledger. Revenue with no invoice-to-customer linkage (processor payouts, name-only invoices, unwired subledger) is summed into otherCents — never invented per client. Window is the last months complete months plus the current month-to-date; entity-scoped when entityId is given. available is false when the window holds no posted revenue lines.

get/companies/{companyId}/metrics/revenue-by-client

Request

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

Path parameters

companyId, string uuid required

Query parameters

entityId, string uuid

Optional concrete legal-entity scope for entity-scopable Home reads. Omitted means company-wide; when present it must be a legal entity the actor is authorized to read (the raw value is never trusted).

months, integer

Complete months in the window (the current month-to-date is always included). Clamped 1-12; invalid values fall back to the default.

Response

Revenue-by-client payload

RevenueByClientResponse required
success, true required
data, RevenueByClientData required

Changes

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