A CommissionPackage defines the commission rates a practitioner earns. Each package can have
multiple rates with individual thresholds, date ranges, and evaluation periods. A rate pays
either a percentage of the item's value or a flat amount per item, and a package's weekly
or bi_weekly evaluation period can be configured to start on any day of the week.
Display name of the commission package, shown in the
admin UI when assigning packages to practitioners and on
commission reports. Pick a name that summarises the
package's rate structure. 1-120 characters.
The default period over which commission earned under this
package is aggregated and paid out. Determines whether
targets and tiers reset weekly, monthly, etc. Accepts the
EvaluationPeriod enum values.
Display name of the commission package, shown in the
admin UI when assigning packages to practitioners and on
commission reports. Pick a name that summarises the
package's rate structure. 1-120 characters.
The default period over which commission earned under this
package is aggregated and paid out. Determines whether
targets and tiers reset weekly, monthly, etc. Accepts the
EvaluationPeriod enum values.
Use this endpoint to retrieve a list of UserCommissionAssignments,
optionally filtered by site or user. Each assignment attaches a
CommissionPackage to a plain User at a site, for staff who earn
commission but aren't modelled as a Practitioner.
Use this endpoint to assign a CommissionPackage to a User at a
site. Fails with 422 if the user already has an assignment at
that site — update the existing UserCommissionAssignment instead.
Use this endpoint to change the CommissionPackage assigned to a
UserCommissionAssignment. The assignment's user_id and
site_id cannot be changed — delete and recreate the assignment
instead.
Use this endpoint to remove a UserCommissionAssignment. The user
stops earning commission under the assigned package going forward;
past commission calculations are unaffected.