Skip to main content
GET
Home > Field momentum header (Phase 003 Card 1)

Authorizations

Authorization
string
header
required

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

country
string

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.

Example:

"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.

active_yesterday
integer
required
Required range: x >= 0
typical_for_weekday
integer | null
required

Same-weekday 12-week median; null when history is too thin.

Required range: x >= 0
weekday
string
required

Day-name of yesterday in the store timezone (e.g. "Friday").

Example:

"Thursday"

active_this_month
integer
required
Required range: x >= 0
rep_revenue_mtd
string
required

Decimal string of attribution-scoped revenue in the company default currency.

Example:

"12345.67"

rep_revenue_share_pct
string | null
required

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.

Example:

"24.3"

currency
string
required

ISO currency code (e.g. "USD").

Example:

"USD"

meta
object