Performance, pipeline & forecast

Commission statement

v90: your own quarterly commission statement: period, label, plan, base (orders · invoices · paid), credited, target, attainment (%), rate, prim, adjustments, total, locked, next (what the next tier needs and pays), explain, lines (date, customer, product, ref, amount, rate, prim, notes), items (disputes and adjustments). Admins pass user for a rep's statement. 404 when you have no plan. v92: works with a Bearer token too.

GET/api/v1/prim

Authorization

Authorizationheaderrequired
Bearer token: API key (sk_…), OAuth access token (mcp_…) or mobile session (xk_…).
Scope: crm.read

Query parameters

periodstringoptional
Quarter, e.g. 2026-Q4 (default: this quarter).
userintegeroptional
Admins only: the rep's user id.

Errors

HTTPerrorMeaning
404not_foundRecord not found.
Request
curl https://ornek.solk.app/api/v1/prim \
  -H "Authorization: Bearer $SOLK_API_KEY"
Response