> ## Documentation Index
> Fetch the complete documentation index at: https://zenskar.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Concepts: How the minimum commitments of a line item work

> This document explains how a line-item minimum commitment sets the least spend or quantity of one line item, when it applies among the line-item discounts of the line item, how its commitment evaluation modes decide when Zenskar bills a shortfall, and which rules it follows.

## Minimum commitments of a line item

> [accordion] Map of concepts
>
> | Concept | Details |
> | - | - |
> | | [Minimum-spend commitment](#line-item-minimum-commitments-the-least-spend-or-quantity-of-one-line-item): A minimum-spend commitment raises the charge before percentage discounts and fixed-amount discounts apply. |
> | | [Minimum-quantity commitment](#line-item-minimum-commitments-the-least-spend-or-quantity-of-one-line-item): A minimum-quantity commitment raises the quantity before quantity discounts apply. |

> [accordion] Related modules
>
> The minimum commitments of a line item use the following modules:
>
> | Module | Details |
> | - | - |
> | [Products](https://zenskar.com/docs/20260301/zenskar-modules/products/concepts/products.md#pricing-presets-how-you-charge) | A line-item minimum commitment cannot overlap a pricing version whose pricing preset uses the dimensional pricing model. |
>
> The following modules use the minimum commitments of a line item:
>
> | Module | Details |
> | - | - |
> | Invoices | Zenskar bills the shortfall of a line-item minimum commitment on the invoice line items of its line item. |

## Line-item minimum commitments: the least spend or quantity of one line item

A **line-item minimum commitment** is a [minimum commitment](https://zenskar.com/docs/20260301/zenskar-modules/contracts/glossary.md#minimum-commitment) on one [line item](https://zenskar.com/docs/20260301/zenskar-modules/contracts/glossary.md#line-item).

A line-item minimum commitment is one of two types:

| Type | Definition | Before which [line-item discounts](https://zenskar.com/docs/20260301/zenskar-modules/contracts/glossary.md#line-item-discount) it applies |
| - | - | - |
| Minimum-spend commitment | A **minimum-spend commitment** is a line-item minimum commitment on the amount that the line item charges. | Before any [percentage discount](https://zenskar.com/docs/20260301/zenskar-modules/contracts/glossary.md#percentage-discount) or [fixed-amount discount](https://zenskar.com/docs/20260301/zenskar-modules/contracts/glossary.md#fixed-amount-discount) |
| Minimum-quantity commitment | A **minimum-quantity commitment** is a line-item minimum commitment on the number of units of the line item. | Before any [quantity discount](https://zenskar.com/docs/20260301/zenskar-modules/contracts/glossary.md#quantity-discount) |

A line-item minimum commitment is for a line item with [metered usage](https://zenskar.com/docs/20260301/zenskar-modules/products/glossary.md#metered-usage), where the [quantity](https://zenskar.com/docs/20260301/zenskar-modules/contracts/glossary.md#quantity) is not known in advance.

See [Discount types compared](https://zenskar.com/docs/20260301/zenskar-modules/contracts/concepts/line-items/discounts.md#discount-types-compared).

A line item can have several line-item minimum commitments, each with its own dates within the [line-item duration](https://zenskar.com/docs/20260301/zenskar-modules/contracts/glossary.md#line-item-duration). Their dates can overlap. Where the dates of two line-item minimum commitments of the same type overlap, Zenskar applies each in turn, so the higher minimum decides.

### Example of a minimum-spend commitment

A line item for API calls charges \$0.01 a call, with metered usage. It has a minimum-spend commitment of \$500 a month, and a percentage discount of 10%:

| Step | Calculation | Charge |
| - | - | - |
| Charge for 40,000 calls | 40,000 × \$0.01 | \$400 |
| Minimum-spend commitment | \$400 raised to \$500 | \$500 |
| Percentage discount | \$500 − 10% | \$450 |

The minimum applies before the percentage discount, so the customer pays \$450, not \$500.

### Example of a minimum-quantity commitment

The same line item has a minimum-quantity commitment of 100,000 calls a month instead, and a quantity discount of 10,000 free calls a month:

| Step | Calculation | Calls charged |
| - | - | - |
| Actual quantity | | 80,000 |
| Minimum-quantity commitment | 80,000 raised to 100,000 | 100,000 |
| Quantity discount | 100,000 − 10,000 free calls | 90,000 |

Zenskar charges 90,000 × \$0.01 = \$900.

### Partial commitment periods

When the dates of a line-item minimum commitment cover only part of a [commitment period](https://zenskar.com/docs/20260301/zenskar-modules/contracts/glossary.md#commitment-period), Zenskar either prorates the minimum to the part that the dates cover, or applies the full minimum.

### Commitment evaluation modes for line-item minimum commitments

A commitment period can span several [billing periods](https://zenskar.com/docs/20260301/zenskar-modules/contracts/glossary.md#billing-period), such as an annual commitment with monthly billing. Each billing period then has an equal share of the minimum. The spend or quantity of the line item is its spend for a minimum-spend commitment, and its quantity for a minimum-quantity commitment. A line-item minimum commitment uses one of two [commitment evaluation modes](https://zenskar.com/docs/20260301/zenskar-modules/contracts/glossary.md#commitment-evaluation-mode):

| Commitment evaluation mode | How Zenskar compares the actual quantity or spend with the minimum |
| - | - |
| Cumulative | Zenskar compares the spend or quantity of the line item so far in the commitment period, plus the [shortfalls](https://zenskar.com/docs/20260301/zenskar-modules/contracts/glossary.md#shortfall) already billed, with the shares of the minimum so far. Zenskar bills the shortfall on the invoice of each billing period. |
| Greedy | Zenskar compares the spend or quantity of the line item in each billing period with the share of the minimum for that billing period. Zenskar bills the shortfall on the invoice of that billing period. A share is never more than the part of the minimum that is not yet billed. |

With both commitment evaluation modes, a billing period that exceeds its share credits back the shortfalls already billed in the commitment period.

For example, a customer commits to \$300 a quarter, billed monthly. The share of each month is \$100. The charges are \$150 in January, \$50 in February, and \$100 in March.

* With the cumulative commitment evaluation mode, the total billed meets the shares so far in every month. Zenskar bills no shortfall.
* With the greedy commitment evaluation mode, February falls \$50 short of its share, and Zenskar bills a shortfall of \$50 for February. By March, \$50 of the minimum remains. March charges \$100, so Zenskar credits back the \$50 on the March invoice.

```mermaid theme={null}
gantt
  title A quarterly minimum commitment with monthly billing
  dateFormat YYYY-MM-DD
  axisFormat %b
  tickInterval 1month
  section Cumulative
  Quarter, shares met every month          :2027-01-01, 2027-03-31
  section Greedy
  January, share of $100 met               :2027-01-01, 2027-01-31
  February, share missed by $50            :crit, 2027-02-01, 2027-02-28
  March, $50 credited back                 :2027-03-01, 2027-03-31
```

This conceptual diagram shows how the two commitment evaluation modes of a line-item minimum commitment check a quarterly minimum with monthly billing.

### Rules for line-item minimum commitments

* A minimum-spend commitment cannot overlap a prepaid [billing version](https://zenskar.com/docs/20260301/zenskar-modules/contracts/glossary.md#billing-version).
* The commitment period and the [billing cadence](https://zenskar.com/docs/20260301/zenskar-modules/contracts/glossary.md#billing-cadence) align: one is a whole multiple of the other.
* The commitment period is a whole multiple of the [quantity cadence](https://zenskar.com/docs/20260301/zenskar-modules/contracts/glossary.md#quantity-cadence) of each [quantity version](https://zenskar.com/docs/20260301/zenskar-modules/contracts/glossary.md#quantity-version) under the [recurring quantity strategy](https://zenskar.com/docs/20260301/zenskar-modules/products/glossary.md#recurring-quantity-strategy) that it overlaps.
* On a [period-of-time product](https://zenskar.com/docs/20260301/zenskar-modules/products/glossary.md#period-of-time-product-type) with the recurring quantity strategy, the commitment period of a minimum-quantity commitment equals the quantity cadence.
* The dates of a line-item minimum commitment cannot overlap a [pricing version](https://zenskar.com/docs/20260301/zenskar-modules/contracts/glossary.md#pricing-version) whose [pricing preset](https://zenskar.com/docs/20260301/zenskar-modules/products/glossary.md#pricing-preset) uses the [dimensional pricing model](https://zenskar.com/docs/20260301/zenskar-modules/products/glossary.md#dimensional-pricing-model).

See [Add a line-item minimum commitment](https://zenskar.com/docs/20260301/zenskar-modules/contracts/how-to-guides/minimum-commitments.md#add-a-line-item-minimum-commitment).

## Line-item and contract-level minimum commitments compared

There are two kinds of [minimum commitment](https://zenskar.com/docs/20260301/zenskar-modules/contracts/glossary.md#minimum-commitment):

| Minimum commitment | What it sets |
| - | - |
| [Line-item minimum commitment](https://zenskar.com/docs/20260301/zenskar-modules/contracts/concepts/line-items/minimum-commitments.md) | The least spend or [quantity](https://zenskar.com/docs/20260301/zenskar-modules/contracts/glossary.md#quantity) of one [line item](https://zenskar.com/docs/20260301/zenskar-modules/contracts/glossary.md#line-item). Zenskar checks each line item against its own minimum. |
| [Contract-level minimum commitment](https://zenskar.com/docs/20260301/zenskar-modules/contracts/concepts/contract-level-minimum-commitments.md) | The least total spend of the [products](https://zenskar.com/docs/20260301/zenskar-modules/products/glossary.md#product) of the [contract](https://zenskar.com/docs/20260301/zenskar-modules/contracts/glossary.md#contract) that it covers. Zenskar checks the [covered products](https://zenskar.com/docs/20260301/zenskar-modules/contracts/glossary.md#covered-product) together. |

### Example with line-item minimum commitments

A contract charges for four products. API calls, support hours, and messages are metered usage, and the platform fee is fixed. The customer commits to spend \$80,000 a year on API calls and support hours. With line-item minimum commitments, the \$80,000 is split between the line items of those two products:

| Product | Line-item minimum commitment | Actual spend | Result |
| - | - | - | - |
| API calls | \$50,000 | \$60,000 | \$10,000 above the minimum |
| Platform fee | None | \$30,000 | Not checked |
| Support hours | \$30,000 | \$15,000 | \$15,000 below the minimum |
| Messages | None | \$10,000 | Not checked |

The \$10,000 surplus of API calls does not count toward support hours, so Zenskar bills a [shortfall](https://zenskar.com/docs/20260301/zenskar-modules/contracts/glossary.md#shortfall) of \$15,000 for support hours.

### Example with a contract-level minimum commitment

The same contract has one contract-level minimum commitment of \$80,000 that covers only API calls and support hours:

| Product | Covered product | Actual spend |
| - | - | - |
| API calls | Yes | \$60,000 |
| Platform fee | No | \$30,000 |
| Support hours | Yes | \$15,000 |
| Messages | No | \$10,000 |
| Total of the covered products | | \$75,000 |

The total of \$75,000 falls \$5,000 short of the minimum of \$80,000. The surplus of API calls makes up for part of the low spend on support hours, so Zenskar bills a shortfall of only \$5,000.

### Differences in the example

| | Line-item minimum commitments | Contract-level minimum commitment |
| - | - | - |
| Minimum | \$50,000 on API calls, and \$30,000 on support hours | \$80,000 on API calls and support hours together |
| How Zenskar checks the minimum | Each product against its own minimum | The total of both products against one minimum |
| The \$10,000 surplus of API calls | Does not count toward support hours | Counts toward the minimum |
| Shortfall | \$15,000, on support hours | \$5,000, split between API calls and support hours, or on a [carrier product](https://zenskar.com/docs/20260301/zenskar-modules/contracts/glossary.md#carrier-product) |
| Platform fee and messages | Do not count | Do not count |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.