How it works
The Product’s billable metric measures a monetary base, typically a Sum of anamount event property. The Rate applies the percentage in rate_properties.rate to that amount. Optional settings add a fixed fee per event, free allowances, and per-transaction minimums and maximums.
Per-event settings can make the result differ from applying the percentage once to the period total. A per-transaction limit is not the same thing as a rate spending minimum, which applies per billing interval.
Availability
- Fixed Products: not available.
- Metered Products: available with Count, Count unique, Max, Sum and Weighted sum, except when metrics use
recurring: truewith proration. Not available with Latest. Advance billing is available only for Count, non-prorated Count unique and non-prorated Sum.
Configure the rate
Setrate_model to percentage. rate_properties takes:
Example
This example uses a metered Product,payment_volume, with a Sum metric measuring transaction amounts in USD. Over one full monthly billing period, the customer processes 1,000 USD of transactions. The calculation uses 2%, with no fixed fee, free allowance, transaction limits, proration or spending minimum:
The calculated fee is 20 USD before tax. A
fixed_amount or per-transaction limits can change the result because those settings apply per event.
Check the result
Compare the measured monetary amount and percentage with the calculated fee. If you configure per-event options, include those settings and the individual events in your calculation. Use Contract current usage to inspect provisional values. See Rates to check which Rate applies.Graduated percentage
Percentage tiers.
Pricing models
Compare every rate model.
Create a rate
POST /rate_cards/{rate_card_code}/ratesThe rate object
rate_properties fields.