AlmondTill/G3N API

DashboardMetricValue

object type

One widget's answered value: available:true carries kind (count | money | percent | rating | series | census) + the matching figure + asOf; available:false carries a plain-words reason (more rows than one honest glance can total, nothing to measure yet, an organization the buy desk has not evaluated, or records your role may not read — the lens: a lane whose family you cannot list is never read) and nothing else. A figure is never clipped, estimated, or silently partial.

Fields

FieldTypeNotes
availableBoolean Boolean!
kindStringcount | money | percent | rating | series | census — present only when available.
countIntThe counted figure.
amountsDashboardMetricAmount [DashboardMetricAmount!]The per-currency sums (kind = money; inventory_value excludes items without a cost basis — no cost, no value opinion).
percentBpIntBasis points, 0..10000 (kind = percent — 3452 = 34.52%; sell_through_30d = net units sold over the trailing 30 UTC days ÷ (net sold + on hand now), the velocity NET convention: a returned unit moves from sold to held).
ratingCentiIntThe average ×100, 100..500 (kind = rating — 437 = 4.37 stars over the published review census).
sampleCountIntThe census behind the rating (kind = rating — an average without its sample size would lie).
unitStringThe plane a series rides: count = whole things (the points carry value) · minor = a money series · quantity = the stock grammar's scale-4 units (25000 = 2.5 — a fractional stock unit is honest physics, never rounded; the points carry value).
currencyStringThe currency of a minor-unit series (kind = series, unit = minor); absent on the other units and on a laned money series (each lane names its own).
pointsDashboardSeriesPoint [DashboardSeriesPoint!]The series points, one per UTC day, oldest first, at most 366 (kind = series — the count series: units_by_day_30d net units sold, sells minus returns · transactions_by_day_30d orders placed, reversals subtracted on their own day · returns_by_day_30d returns refunded — over the trailing 30 days; a day without a row is 0; each point carries value, its amount null). Empty on a money series, whose figures ride lanes.
lanesDashboardSeriesLane [DashboardSeriesLane!]The lanes of a money series: sales_by_day_30d one lane per currency (key = the currency) · tender_mix_30d one lane per tender type and currency (key = the tender type, signed — a refund tender subtracts) · sales_by_organization_30d one lane per selling organization and currency (key = the organization id); each lane carries its currency and its own day points. At most 16 lanes — above that the series answers unavailable with the too-many-lanes reason. Absent on count series.
rowsDashboardCensusRow [DashboardCensusRow!]The rows of the record census: one per kind of record your role may list — styles · products · variants · items · consumers · corporate customers · organization customers · orders · purchase orders · returns · users · collaborators · roles · registers · devices · physical facilities · logical facilities · organizations — in that order, each with its active count (null where the kind's lifecycle has no active state — orders · purchase orders · returns), its total (every row, doomed shells included) and whether the kind holds more than the daily sweep's cap of 5000 (over — read the figures as 5000+). Absent on every other kind.
asOfStringThe instant the figure is true at (ISO-8601; compute-on-read for the live lanes; the substrate-fed lanes carry their fold/evaluation instant).
reasonStringPresent only when unavailable — merchant words naming exactly why.
previousDashboardMetricPreviousThe comparison figure beside a money or count metric: the same figure over the comparable earlier window with the window named in words — sales_today vs the same weekday last week · sales_week vs the seven days before, off the same daily sales ledger. Present when either window had a figure; absent when neither did (no fabricated zero) and on every other metric.