Accountant Portal

The firm's own business for the p17 Business screen (#4366)

Changed on

Firm admin only (a super-admin reads as Firm admin; a preparer or reviewer gets 403). Every figure covers the clients the caller can see (a human super-admin: every client), read in four SQL statements whatever the client count. top.liveClients counts clients whose client status is active. Plan revenue reads only each Median subscription's quoted amount, a year divided by 12; a live subscription without a quoted amount (or with an interval other than month or year) is counted in unpricedClients, never priced from the plan list. A subscription is live in a month when it was created before the month ends and not ended by then (by now, for the current month). A scheduled cancel stays live while its status is still active; for an ended subscription the cancel request date stands in for the end date, so history can drop a client early. Test clients count in no revenue, plan or trend figure. closesOnTime counts the first final package carrying a reviewer sign-off for each client and month. It is on time when issued by the confirmed client close target (the Close board's default applies if no target is confirmed). top uses each client's last 3 such closes and trend uses the closes for that month's period. Penny cost is the cost of Penny's runs started in the UTC month; budgetCents is the firm's monthly Penny cap. asksPerClient is Penny's questions raised in the month over that month's live clients, null when none. Rows with no source yet come back as { tracked: false }. byOwner groups the p4 roster (#4365) by each client's primary owner, with the roster's status rule for onTrack and the open Inbox items. Display only: nothing is written. A signed-in person only: every API key is refused, the service token included (404).

get/accountant/business-metrics

Request

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

Query parameters

months, integer

Trend months ending with the current UTC month

Response

The p17 Business metrics

object required
success, true required
data, object required

Changes