Overview

Customer revenue-by-client card (accountant mirror)

Accountant-scoped mirror of GET /companies/{companyId}/metrics/revenue-by-client. Same payload for the same company and window; non-attributable revenue stays in otherCents, never invented per client. 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/revenue-by-client

Request

  • Base URL: https://api.medianfi.com/api/v1
  • URL: https://api.medianfi.com/api/v1/accountant/companies/{customerId}/metrics/revenue-by-client
  • Auth: one of:
    • HTTP bearer
    • API key in header X-API-Key

Query parameters

entityIdstring 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.

monthsinteger

Response

Revenue-by-client payload (same shape as the customer mount)

successtrue required

Changes

No recorded changes to this operation across all 1 revision of this API.