Home > Field momentum header (Phase 003 Card 1)
Returns the three tiles above the Field tab’s 14-day rep-
activity chart: reps active on the store-local calendar
yesterday (with a same-weekday 12-week median for the
sub-label), reps active month-to-date, and the sum of
attribution-scoped revenue MTD in the company default
currency. typical_for_weekday is null when the tenant has
fewer than four same-weekday dates on record — the FE drops
the sub-label in that case.
When country is set: the two order-side aggregates
(rep_revenue_mtd, rep_revenue_share_pct) filter on
orders.country_id. The active-rep tiles (active_yesterday,
active_this_month) and typical_for_weekday remain
aggregate — share.visited events do not carry a reliable
country signal today (see BE service TomDoc for the
analytics_events.country_code coverage gap). Consumers
should present the active-rep counts as company-wide even
under a country pick until ingest populates the column.
Authorizations
Bearer token authentication. Requires a company-admin token
whose role holds reports.view. Additionally, the caller's
company must have ANALYTICS_DASHBOARD enabled — otherwise
every endpoint returns 404.
Query Parameters
ISO alpha-2 code of one of the requesting company's configured
countries (see GET /countries). When present, every service
on this endpoint filters its data to that country and reports
money in the country's own currency. Omit (or send "all")
for the aggregate-across-countries view, which is the default
and matches pre-Phase-004 behavior. Unknown ISO codes or ones
the company is not configured for return 400.
"US"
Response
Field momentum header payload
Home > Field momentum header (Phase 003 Card 1). Three tiles
that sit above the 14-day rep-activity chart. active_yesterday
counts distinct reps active on the store-local calendar
yesterday, where "active" means either a share.visited event
keyed to the rep via analytics_events.member_id OR a paid
order with orders.attribution_member_id = rep.id.
typical_for_weekday is the median across the twelve trailing
same-weekday dates, or null when fewer than four of those
dates carried any activity. active_this_month and
rep_revenue_mtd cover the current calendar month.
x >= 0Same-weekday 12-week median; null when history is too thin.
x >= 0Day-name of yesterday in the store timezone (e.g. "Friday").
"Thursday"
x >= 0Decimal string of attribution-scoped revenue in the company default currency.
"12345.67"
rep_revenue_mtd / total_company_revenue_mtd × 100, rounded to one
decimal, as a decimal string. Null when total company revenue MTD
is zero — the FE hides the sub-label in that case rather than
rendering 0% of $0.
"24.3"
ISO currency code (e.g. "USD").
"USD"