Sales Analytics
Top clients by revenue
Powers the Top clients by revenue progress-bar list on the Sales analytics screen.
Ranked by total_contracted_revenue descending. revenue_share_pct is each client’s share of total period revenue, computed as a window function so it always sums to 100% across the returned rows.
GET
Top clients by revenue
Authorizations
Enter your JWT token in the format: Bearer
Query Parameters
Max rows to return. Clamped to 1–50. Default 10.
Period string. Accepted formats:
2026-05— calendar monthQ2-2026— quarter (Q1–Q4)YTD-2026— year to date
Previous
Monthly revenue trendPowers the **Revenue vs target** line chart on the **Overview** screen and the **Commission vs revenue trend** chart on the **Commissions** screen.
Returns one data point per calendar month for the requested year, filling months with zero revenue as `0.00` so the frontend can render a continuous series without gaps.
Next
Top clients by revenue
