Skip to main content
GET
Home > Field 14-day rep activity chart (Phase 003 Card 2)

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

14-day rep activity chart payload

Home > Field 14-day rep activity chart (Phase 003 Card 2). One series of 14 daily points ending yesterday (store-local calendar). Each point carries reps — distinct reps active that day (a share.visited event keyed to the rep via analytics_events.member_id OR a paid order with orders.attribution_member_id = rep.id) — and typical, the median across the twelve prior same-weekday dates. typical is null when fewer than four of those same-weekday dates carried any activity.

series
object[]
required
Required array length: 14 elements
meta
object