---
title: "Customer daily Runway and Receivables lines (accountant mirror)"
method: GET
path: "/accountant/companies/{customerId}/metrics/daily-trends"
tags: ["Overview"]
---

# Customer daily Runway and Receivables lines (accountant mirror)

`GET /accountant/companies/{customerId}/metrics/daily-trends`

## Request

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

Accountant-scoped mirror of `GET /companies/{companyId}/metrics/daily-trends`. Same service, same fail-closed reasons. 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.

## Response `200`

Daily trend lines (same shape as the customer mount)

- DailyTrendsResponse
  - `success` true, required
  - `data` object, required
    - `runway` DailyRunwayTrendMetric, required: Runway line, one point per day with posted P&L evidence in its 90-day window: `cash` is the day's closing posted-books cash, `netBurn` the trailing-90-day posted operating net burn ÷ 3 (the Live Monthly burn figure), and the state is finite (monthsFloor = floor(cash ÷ netBurn)), depleted (cash at or below zero, monthsFloor 0) or non_burning (netBurn at or below zero, no monthsFloor). Never a negative month count.
      - `available` boolean, required
      - `reason` 'insufficient_history' | 'not_configured' | 'failed' | 'truncated' | 'mixed_currency' | 'entity_scope_unavailable' | 'incomplete_provenance': Why a daily line is withheld. `failed` and `truncated` are the failure class; `not_configured` means the chart has no AR control account; `insufficient_history` means there is nothing to draw yet.
      - `value` object
        - `points` object[], required
          - `date` string, date, required
          - `state` 'finite' | 'depleted' | 'non_burning', required
          - `monthsFloor` integer
          - `cash` ExactMoney, required: Exact money value: signed integer minor units as a string (never a float), with explicit currency and minor-unit exponent.
            - `amountMinor` string, required: Signed integer minor units, e.g. "80000" = $800.00 at exponent 2.
            - `currency` string, required
            - `minorUnitExponent` integer, required
          - `netBurn` ExactMoney, required: Exact money value: signed integer minor units as a string (never a float), with explicit currency and minor-unit exponent.
            - `amountMinor` string, required: Signed integer minor units, e.g. "80000" = $800.00 at exponent 2.
            - `currency` string, required
            - `minorUnitExponent` integer, required
      - `authority` DailyTrendAuthority
        - `companyId` string, required
        - `entityId` string, required
        - `basis` 'posted_books_trailing_90d_runway' | 'posted_books_ar_control', required
        - `asOf` string, date
        - `startDate` string, date
        - `endDate` string, date
      - `completeness` MetricCompleteness, required: Coverage assertion for a per-metric value/authority contract. An available metric carries all three booleans as true.
        - `windowComplete` boolean, required
        - `sourceComplete` boolean, required
        - `provenanceComplete` boolean, required
        - `historyCompleteFrom` string
        - `booksAsOf` string
        - `sourceGeneration` string
    - `receivables` DailyReceivablesTrendMetric, required: Receivables line: the posted balance of the AR control accounts (AR_CONTROL role, the set the AR aging reconciles against) at the close of each day, from the first posted day of the books.
      - `available` boolean, required
      - `reason` 'insufficient_history' | 'not_configured' | 'failed' | 'truncated' | 'mixed_currency' | 'entity_scope_unavailable' | 'incomplete_provenance': Why a daily line is withheld. `failed` and `truncated` are the failure class; `not_configured` means the chart has no AR control account; `insufficient_history` means there is nothing to draw yet.
      - `value` object
        - `points` object[], required
          - `date` string, date, required
          - `money` ExactMoney, required: Exact money value: signed integer minor units as a string (never a float), with explicit currency and minor-unit exponent.
            - `amountMinor` string, required: Signed integer minor units, e.g. "80000" = $800.00 at exponent 2.
            - `currency` string, required
            - `minorUnitExponent` integer, required
      - `authority` DailyTrendAuthority
        - `companyId` string, required
        - `entityId` string, required
        - `basis` 'posted_books_trailing_90d_runway' | 'posted_books_ar_control', required
        - `asOf` string, date
        - `startDate` string, date
        - `endDate` string, date
      - `completeness` MetricCompleteness, required: Coverage assertion for a per-metric value/authority contract. An available metric carries all three booleans as true.
        - `windowComplete` boolean, required
        - `sourceComplete` boolean, required
        - `provenanceComplete` boolean, required
        - `historyCompleteFrom` string
        - `booksAsOf` string
        - `sourceGeneration` string

## Other responses

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

---

[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/20090ea32b0d?raw)
