commissionSeries
Commission amount and gross revenue bucketed over a date range, for the Commissions chart, the Billings chart, and the Performance Overview revenue tiles.
Unlike commissionRecentActivity, which spans every source system and tenant for the advisor, this
query covers cloud (SaaS) commissions for a single tenant — hence the mandatory tenant.
Buckets are dense: every bucket in the range is returned, with zero for both measures where the advisor has no commissions, so a client never reimplements gap-filling. An advisor with no commissions at all therefore gets a full range of zeros rather than an empty list, and the number of points is a function of the range and granularity only, never of the data.
This page contains
Arguments
| advisorId ID! | Advisor (tenant) whose commissions are charted. Always applied, so a caller can never read another organization's commissions. |
| tenant String! | Marketplace tenant to chart. |
| salesAgentUuid ID | Optional sales representative filter, matched case-insensitively and narrowing within the advisor scope. Roughly a quarter of commissions carry a rep UUID, so a rep-scoped series is a lower bound on what that rep contributed and never their actual commissions — do not build payout or compensation features on it. An unmatched value returns a fully zero-filled series, not an error. |
| dateFrom DateTime! | Lower bound on which buckets are returned rather than on which commissions qualify: the bucket containing this instant is returned whole, so at |
| dateTo DateTime! | Upper bound on the commission's business date. The bucket containing this instant is returned whole, so at |
| granularity CommissionGranularity! PREVIEW | Bucket width. |
Return Fields
| [CommissionSeriesPoint!]! PREVIEW |
Interactive example
This is an example query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.