Overview

Customer SaaS metrics envelope (accountant mirror)

Changed on

Accountant-scoped mirror of GET /companies/{companyId}/metrics/saas. Unlike the customer mount, entityId is optional here — it defaults to the customer's single concrete entity. 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/saas

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.

asOf, string date

Response

SaaS metrics envelope (same shape as the customer mount)

SaasMetricsResponse required
success, true required
data, SaasMetricsData required

Example response

{
  "data": {
    "mrr": {
      "live": {
        "month": "2026-09"
      }
    }
  }
}

Changes

    • warning

      added the new history_gap_before_first_live_month enum value to the data/ltv/reason response property for the response status

    • warning

      added the new incremental_live enum value to the data/mrr/reason response property for the response status

    • info

      added the optional property data/ltv/firstLiveMonth to the response with the status

    2 more changes in this revision