Overview

Customer revenue-mix card (accountant mirror)

Accountant-scoped mirror of GET /companies/{companyId}/metrics/revenue-mix — the same service, so the accountant sees the numbers the customer's Home revenue-mix card shows. 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-mix

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.

Response

Revenue-mix payload (same shape as the customer mount)

RevenueMixResponse required
success, true required
data, RevenueMixData required

Example response

{
  "data": {
    "months": [
      {
        "month": "2026-06"
      }
    ]
  }
}

Changes

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