Rate by product

Different rates per product line, looked up from a table.

Worked example

$50,000 of platform pays 12%; $50,000 of services pays 5%.

The plan definition

This is the plan exactly as the product would create it. Rates are decimal strings rather than numbers throughout, because binary floating point cannot represent most of them exactly and a commission rate is not a place to discover that.

id: product-mix
version: 1
effective_from: 2026-01-01
period: monthly
currency: USD
tables:
  product_rates:
    platform: "0.12"
    services: "0.05"
    hardware: "0.03"
components:
  - id: by_product
    label: Product Commission
    basis: allocation.amount
    rate:
      type: table
      table: product_rates
      key: allocation.deal.attributes.product
      default: "0.06"

Starting from this template gives you an editable copy, it is not locked, and the editor validates as you type.

← All templates