A contract uses one scope or the other. Flexprice rejects a contract commitment combined with a line-item commitment, with the message “Use either subscription-level commitment or line-item-level commitment, not both”.
This page covers legacy contract and line-item commitments. To pool a commitment across several prices, stack reservations, set separate committed and overage prices, or collect a commitment through upfront and scheduled payments, use subscription commitments with billing terms.
How Commitment Works
Both scopes apply the same rule:- Commitment amount: The minimum the customer commits to per billing period (e.g. $1,000/month). This guarantees the revenue floor. A line-item commitment can be a number of units instead, which Flexprice converts to an amount at the charge’s price.
- Overage factor: A multiplier applied to usage cost above the commitment (e.g. 1.5x). When usage exceeds the commitment, the excess is billed at the overage rate.
- Usage calculation:
- If total usage cost ≤ commitment: all usage is charged at the base rate.
- If total usage cost > commitment: the commitment portion is charged at the base rate, and the excess is charged at
base_rate × overage_factor.
Contract Commitment
A contract commitment sets one minimum spend for the whole contract. Flexprice adds up the cost of every usage charge on the contract and applies the commitment to that total. Fixed charges, such as a platform fee, don’t count toward it and are never billed at the overage rate. To set a minimum on one charge instead, use a line-item commitment.Steps to Add a Contract Commitment
Set this legacy scope through the API using the deprecatedcommitment_amount, commitment_duration, overage_factor and enable_true_up fields on subscription create. For new dashboard commitments, use the Commitments section as described in Subscription Commitments.
Line-Item Commitment
A line-item commitment sets a minimum on one usage charge. Only that charge’s usage counts toward it, and only that charge is billed at the overage rate. The contract’s other charges bill at their normal rates. Each usage charge can carry its own commitment, and an add-on’s usage charges take one the same way.Steps to Add a Line-Item Commitment
Set this legacy scope through the API using deprecatedline_item_commitments, keyed by price ID, on subscription create or add-on attach, or the commitment_* fields on line items. The dashboard no longer offers commitment actions on charges or add-ons. Existing charge commitments remain visible read-only on the contract. For new commitments, use Subscription Commitments.
Understanding True-Up
True-up ensures the customer pays the full commitment even when actual usage falls short. Both scopes support it.How True-Up Works
- During the billing period: Flexprice tracks usage and computes the running usage cost.
- At invoice generation:
- Usage cost < commitment AND true-up enabled: Flexprice bills the shortfall. A contract commitment adds it as a separate line item named after the plan, such as Developer True Up. A line-item commitment adds it to that charge’s line item, which then bills the full commitment.
- Usage cost ≥ commitment: standard commitment-and-overage logic applies, and no true-up is needed.
Steps to Add True-Up
For legacy commitments, setenable_true_up through the API with the contract commitment or line-item commitment fields. These deprecated fields are no longer configured in the dashboard. For new dashboard commitments, use Binding in the Commitments section; see Subscription Commitments.

