---
title: "The p17 Business measures beside /business-metrics (#2587)"
method: GET
path: "/accountant/business-metrics/details"
tags: ["Accountant Portal"]
---

# The p17 Business measures beside /business-metrics (#2587)

`GET /accountant/business-metrics/details`

## Request

- Base URL: `https://api.medianfi.com/api/v1`
- URL: `https://api.medianfi.com/api/v1/accountant/business-metrics/details`
- Auth: HTTP bearer

Firm admin only, the same scope and `months` as `/business-metrics`. `packagesSentAgain`: close packages with version 2 or more, by the month sent. `byPlanStatus`: live (active) and onboarding (test) clients per plan. `byOwnerCloses`: per owner, each client's last 3 closes with a signed final (`onTime` of `closed`), and `late` = signed finals sent after the client's close target plus ended GL months still awaiting a signed final past the client's close target (the Close Board default applies without a confirmed target). `soFar` is the current UTC month: new onboarding clients, clients that went live (status changed to active) or left (subscription cancelled), each with the latest earlier month that had any, clients paid but still in test, and open custom pricing offers. `soFar.changedPlan` lists plan changes this month from the plan.changed history. `reviewHoursPerClient` is untracked: nothing records it. A signed-in person only: every API key is refused, the service token included (404).

## Query parameters

- `months` integer

## Response `200`

The Business measures

- object
  - `success` true, required
  - `data` object, required
    - `month` string, required
    - `packagesSentAgain` object[], required
      - `month` string, required
      - `count` integer, required
    - `reviewHoursPerClient` object, required
      - `tracked` false, required
    - `byPlanStatus` object[], required
      - `plan` string, nullable, required
      - `live` integer, required
      - `onboarding` integer, required
    - `byOwnerCloses` object[], required
      - `owner` object, nullable, required
        - `accountantId` string, uuid, required
        - `name` string, required
        - `initials` string, required
      - `onTime` integer, required
      - `closed` integer, required
      - `late` object[], required
        - `customerId` string, uuid, required
        - `customerName` string, required
        - `month` string, required
        - `state` 'late' | 'open', required
        - `businessDaysLate` integer, required
    - `soFar` object, required
      - `newOnboarding` object[], required
        - `customerId` string, uuid, required
        - `name` string, required
        - `plan` string, nullable, required
      - `wentLive` object, required
        - `items` object[], required
          - `customerId` string, uuid, required
          - `name` string, required
          - `at` string, date-time, required
        - `last` object, nullable, required
          - `month` string, required
          - `count` integer, required
      - `left` object, required
        - `items` object[], required
          - `customerId` string, uuid, required
          - `name` string, required
          - `at` string, date-time, required
        - `last` object, nullable, required
          - `month` string, required
          - `count` integer, required
      - `changedPlan` object, required: Clients whose plan changed this month (from the plan.changed history written with each plan_id change; earlier changes were not recorded), with the latest earlier month that had any. from/to are plan names, retired legacy plans normalized; null when there was no plan row (custom).
        - `items` object[], required
          - `customerId` string, uuid, required
          - `name` string, required
          - `from` string, nullable, required
          - `to` string, nullable, required
          - `at` string, date-time, required
        - `last` object, nullable, required
          - `month` string, required
          - `count` integer, required
      - `paidNotStarted` object[], required
        - `customerId` string, uuid, required
        - `name` string, required
        - `plan` string, nullable, required
      - `offersOpen` integer, required

## Other responses

- `401`: Authentication required
- `403`: Insufficient permissions or not a company member
- `422`: Request failed validation

## Changes

- **2026-11-26** `4a2098becaf9`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/medianfi/apis/median-api/changes/accountant/business-metrics/details/get.md)

---

[API](https://skmtc.dev/medianfi/apis/median-api.md) - [All operations](https://skmtc.dev/medianfi/apis/median-api/llms.txt) - [OpenAPI document](https://skmtc.dev/medianfi/apis/median-api/revisions/4f4c2d34276b?raw)
