Skip to main content
Graduated pricing applies each tier’s unit price to the units within that tier. Use it when units above a threshold have a different price while earlier units keep their tier’s price.

How it works

Tiers are ordered by their upper bound. The quantity fills tier 1 up to its to_value, then tier 2, and so on. Each unit is priced using the per_unit_amount of the tier it falls within. A tier can also carry a flat_amount: a flat fee for the whole tier, on top of its unit prices. The last tier has to_value: null and is open-ended.

Availability

  • Fixed Products: available. Advance billing is unavailable when the Rate Card is prorated.
  • Metered Products: available for every aggregation except Weighted sum with recurring: true and proration. Advance billing is available only for Count, non-prorated Count unique and non-prorated Sum.
See the availability matrix.

Configure the rate

Set rate_model to graduated and describe the tiers in rate_properties.graduated_ranges. Each tier uses these fields: Do not send from_value.

Example

This example prices 250 API calls over one full monthly billing period in USD, with no proration or spending minimum. Each unit is one API call: With 250 calls in the billing period: The calculated fee for these 250 API calls is 155 USD before tax.

Check the result

Check the units in each tier, the tier’s unit price and any applicable flat fee. Add the tier amounts to check the calculated fee. Use Contract current usage to inspect provisional values. See Rates to check which Rate applies.

Volume

One tier price for all units.

Graduated percentage

Percentage tiers on an amount.

Create a rate

POST /rate_cards/{rate_card_code}/rates

Pricing models

Compare every rate model.