type and one matching *_pricing_model object; the type decides which object is required. Use this page to pick the right model for a product before you build a plan or subscription. For the exact request shape of each model, see the pricing models reference; for where prices sit in the object graph, see How Alguna Works.
The eleven types
All amounts are strings (
"0.05", "500.00"), never floats.
Fixed
A flat amount for a set quantity, regardless of usage. The quantity is on the price (units), so a 25-seat licence is price_per_unit: "10.00", units: 25.
Use for: platform access fees, base subscriptions, support tiers, seat licences where the count is contracted rather than measured.
Unit
One rate multiplied by the measured quantity. Use for: metered products where every unit costs the same: storage per GB, emails sent, seats when the count is metered.Tiered
The total quantity decides which tier applies, and every unit is priced at that tier’s rate.
250 units land in tier 2, so all 250 are charged at $0.10 = **$25.00**.
Graduated tiered
Each tier is priced independently, so the quantity is split across the tiers it spans. Same tier table as above. 250 units cost:- First 100 @ $0.15 = $15.00
- Next 150 @ $0.10 = $15.00
- Total = $30.00
price_per_unit: "0.00".
Tiers that reset at renewal
By default, graduated tiers start from zero each billing cycle. On a metered graduated price in a fixed-term contract, the tiers can instead count usage from the start of the current term. Each invoice then prices that cycle’s usage at the tier position reached so far in the term, and the position resets when the contract renews. In the pricing drawer, set Tiers reset to At renewal. The default is Every billing cycle. The quote and the read-only pricing table say “Usage accumulates towards these tiers across the contract term and resets at renewal.” Example, with the tier table above on a monthly-billed 12-month term: a customer uses 80 units in January and 80 in February.
In February the term has reached 160 units, so the first 20 of February’s units fill tier 1 and the other 60 fall in tier 2.
At renewal is not offered when:
- the contract is monthly rolling, because it never renews;
- a metric on the price counts unique values or averages, because those cannot be totalled across a term.
Prepaid with overages
The customer commits to a quantity up front (prepaid_units) at a committed rate, and anything beyond it is charged at the overage tiers. The commitment is billed in advance and drawn down; the overage is billed in arrears.
- Prepaid: 1,000 API calls
- Overage: $0.08 per call beyond 1,000
- 1,500 calls used → the commitment plus 500 × $0.08 = **$40.00** overage
prepaid_fixed_tiered takes the same shape plus overages_charge_interval, which lets overage be invoiced on a different cadence from the commitment.
Use for: committed-usage packages, API bundles, messaging packs, and any deal where cash comes in before consumption. For committed balances that span products, see Credits & Wallets.
Volume percentage
A single percentage of the transaction value, plus an optional fixed fee per event.- Rate: 2.5% + $0.25 per transaction
- $10,000 processed across 100 transactions
- Fee: ($10,000 × 2.5%) + (100 × $0.25) = $250 + $25 = $275
Graduated percentage
Different percentage rates apply to successive slices of the volume.
$250,000 processed:
- First $100K @ 2.5% = $2,500
- Next $150K @ 2.0% = $3,000
- Total = $5,500
Tiered percentage
The total volume picks a tier, and that tier’s percentage applies to the whole amount. Same tiers as above. $250,000 lands in tier 2, so all of it is charged at 2.0% = **$5,000**.Expression
When no standard model expresses the pricing, an expression price computes the quantity and the unit rate from formulas over your metrics. Use it for rates that fall continuously with volume, pricing that combines several metrics, or conditional charges. Example: charge for compute hours at a rate that falls as monthly usage rises, and bill API calls above a free allowance in the same price. See the reference for the expression syntax and the variables available.Matrix
Matrix pricing routes each usage event to a priced cell based on its property values, so the rate can vary along more than one dimension at once. Each cell carries its own pricing model, so one dimension can be flat while another is tiered, and a fallback cell catches anything that does not match. Example: a per-request rate that differs by region and by request type. See the reference for the routing tree, wildcard and fallback behaviour, and a worked example.Fields every price carries
Whatever the type, a price also carriesfee_type, billing_direction (advance or arrears), the billing cadence (billing_interval_unit + billing_interval_count, or the legacy billing_interval), and optional guardrails: minimum_spend, maximum_spend, discount and trial_period_days. These are documented in the reference.
Fixed discounts on instalments and prepaid prices
A fixed discount on a price is an amount per price interval, like the price itself. When the price bills in instalments, for example a yearly price invoiced quarterly, the discount is split across the instalments the same way as the charge, with any rounding remainder on the first instalment of the cycle. A $378,000 yearly price with $238,000 off, invoiced quarterly, bills $94,500 less $59,500 each quarter. The pricing table shows the per-instalment amount next to the discount. On a prepaid price, a fixed discount applies to the commitment, not to the overage. A percentage discount is worked out from each charge of the price. Only advance charges from the fixed-class models (fixed, tiered, graduated_tiered, and prepaid_fixed_tiered billed in advance) are prorated on mid-period changes. Arrears and metered charges never are.
Choosing a model
Next steps
Configure Products
Create the products these prices attach to.
Create Plans
Package priced products into a reusable offer.
Pricing models reference
Request shape and required fields for every type.
Send usage
Feed the metrics that metered prices rate.