---
title: "Daily Runway and Receivables lines for the Home hero tiles"
method: GET
path: "/companies/{companyId}/metrics/daily-trends"
tags: ["Overview"]
---

# Daily Runway and Receivables lines for the Home hero tiles

`GET /companies/{companyId}/metrics/daily-trends`

## Request

- Base URL: `https://api.medianfi.com/api/v1`
- URL: `https://api.medianfi.com/api/v1/companies/{companyId}/metrics/daily-trends`
- Auth: HTTP bearer

One point per day over the last six months (today and the same day six months back, inclusive, UTC) for the Home Runway and Receivables tiles. Runway uses the Live tile's formula: posted-books cash at the close of the day divided by the trailing-90-day posted operating net burn ending that day (divided by 3, half away from zero), floored; a day with no posted P&L line in its 90-day window has no point. Receivables is the posted balance of the AR control accounts at the close of the day, from the first posted day of the books. Both are exact minor-unit strings; each line fails closed on its own with a reason. Requires one concrete authorized legal entity, resolved like /metrics/burn-runway.

## Query parameters

- `entityId` string, uuid

## Response `200`

Daily trend lines

- 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
- `422`: Request failed validation
- `503`: The legal-entity scope authority could not be read

---

[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)
