config object whose model decides how the metric’s value becomes an amount. Amounts are in the price’s currency (three-letter ISO code, default USD).
Unit
Charge a fixed amount per unit.Tiered
Charge different unit prices for different ranges. Each tier has anupTo limit (null means no limit), a unitPrice, and an optional flatFee charged once when the tier is reached.
Bulk
Like tiered, but the tier a total falls into sets the unit price for every unit. There are no splits across tiers.Package
Charge per block of units. Asize and a unitPrice define each package; the amount is the number of packages needed, rounded up, multiplied by the package price.
Percentage
Charge a percentage of another metric’s value. Useful for payment-style fees on transaction volume.License
Charge per seat for a license type you allocate to customers withPOST /v1/licenses.
Choosing a model
A price with no metric is a flat fee. Set
metricId to null (or omit it) and use a cadence of monthly, quarterly, annual, or one_time.