Calendar & Scheduling

Commission Packages

A CommissionPackage defines the commission rates a practitioner earns. Each package can have multiple rates with individual thresholds, date ranges, and evaluation periods.

get/shop/commission-packages

List CommissionPackages

listCommissionPackages

Use this endpoint to retrieve a list of CommissionPackages for a site.

Query parameters

  • pageintegeroptional

    The page to retrieve results from

  • per_pageintegeroptional

    The number of results to return per page

  • site_idstringoptional

    Filter results by the site they belong to

Responses

  • 200

    The CommissionPackages were successfully retrieved.

  • 401

    The user is unauthenticated

  • 404

    The resource couldn't be found

post/shop/commission-packages

Create CommissionPackage

createCommissionPackage

Use this endpoint to create a new CommissionPackage for a site.

Query parameters

  • site_idstringoptional

    Filter results by the site they belong to

Request body

  • namestringoptional

    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.

  • requested_surcharge_percentagenumberoptionalnullable

    An optional surcharge percentage applied to requested practitioner bookings.

  • ratesobject[]optional

    The commission rates for this package.

Responses

  • 201

    The CommissionPackage was successfully retrieved.

  • 401

    The user is unauthenticated

  • 403

    The authenticated user does not have permission.

  • 404

    The resource couldn't be found

  • 422

    The request didn't pass validation

get/shop/commission-packages/{commissionPackageId}

Show CommissionPackage

getCommissionPackage

Use this endpoint to retrieve a single CommissionPackage.

Path parameters

Query parameters

  • site_idstringoptional

    Filter results by the site they belong to

Responses

  • 200

    The CommissionPackage was successfully retrieved.

  • 401

    The user is unauthenticated

  • 404

    The resource couldn't be found

put/shop/commission-packages/{commissionPackageId}

Update CommissionPackage

updateCommissionPackage

Use this endpoint to update a CommissionPackage.

Path parameters

Query parameters

  • site_idstringoptional

    Filter results by the site they belong to

Request body

  • namestringoptional

    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.

  • requested_surcharge_percentagenumberoptionalnullable

    An optional surcharge percentage applied to requested practitioner bookings.

  • ratesobject[]optional

    The commission rates for this package.

Responses

  • 200

    The CommissionPackage was successfully retrieved.

  • 401

    The user is unauthenticated

  • 403

    The authenticated user does not have permission.

  • 404

    The resource couldn't be found

  • 422

    The request didn't pass validation

delete/shop/commission-packages/{commissionPackageId}

Delete CommissionPackage

deleteCommissionPackage

Use this endpoint to delete a CommissionPackage.

Path parameters

Query parameters

  • site_idstringoptional

    Filter results by the site they belong to

Responses

  • 204

    The CommissionPackage was successfully deleted.

  • 401

    The user is unauthenticated

  • 403

    The authenticated user does not have permission.

  • 404

    The resource couldn't be found