Skip to navigation

List Commissions

View as Markdown

Lists commission accruals, newest first by accrued_at. Read-only: rows are written when an invoice carrying a sales personnel is posted, and settled when a commission run bills them. A clawback appears as its own row with a negative amount, so a rep’s balance is the sum of their rows.

The X-Total-Amount response header carries the net total for the whole filter, not just the page in hand.

Each row carries sales_personnel. The document objects (invoice, receipt, bill, account) are resolved on the single-commission endpoint only.

Requires the can_view_sales_invoice permission on the key owner’s role.

Keys: secret key only.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

identitystring
The identity for the active workspace.

Query parameters

limitintegerOptional
Optional. Number of records to return.
statusenumOptional

Optional. Only accruals in this state. ACCRUED is what a run would pick up.

Allowed values:
sales_personnel_idstringOptionalformat: "uuid"
Optional. Only what this rep has earned.
invoice_idstringOptionalformat: "uuid"
Optional. Only what this invoice earned.
bill_idstringOptionalformat: "uuid"
Optional. Only the accruals a given commission bill settled.
fromdateOptional

Optional. Earliest accrued_at, inclusive.

todateOptional

Optional. Latest accrued_at, inclusive.

Response

OK
datalist of objects
pageinteger
countinteger
pagesinteger
statusboolean
messagestring
keysetstring or nullOptional
last_idstring or nullOptional

Errors

401
Unauthorized Error
402
Payment Required Error
403
Forbidden Error