Skip to main content

Line-item discounts

Line-item discounts: what reduces the charge of a line item

A line-item discount is a reduction to the charge of a line item for a range of dates. A line item can have several line-item discounts, each with its own dates within the line-item duration. The dates of two line-item discounts can overlap. Line-item discounts and line-item minimum commitments apply in a fixed sequence. See Discount types compared. A contract can also have a contract-level discount, which applies after the line-item discounts. See Line-item and contract-level discounts compared. The dates of a line-item discount cannot overlap a pricing version whose pricing preset uses the dimensional pricing model.

Discount order: which line-item discount applies first

The discount order is the position of a line-item discount in the sequence in which Zenskar applies the line-item discounts of a line item. Zenskar applies the line-item discounts of a line item one after another, lowest discount order first. Each line-item discount applies to the result of the one before. Each discount order is unique within a line item. Quantity discounts apply in a sequence of their own, before Zenskar calculates the charge. See Discount types compared. The discount order changes the result. For example, a line item charges $1,000 for a month, with two line-item discounts: 10% and $100: Take, as an example, a contract for 2027 that charges for two products, each on its own line item: seats, from January to December, and dedicated servers, from April to December. In this contract, seats have two line-item discounts: 10% off until June, and USD 50 off each month from April to June. The two line-item discounts overlap from April to June, where they apply in their discount order: first the 10%, then the USD 50. Dedicated servers have no line-item discounts.

This conceptual diagram shows two line-item discounts of one line item in the example, which overlap and apply in their discount order.

Discount types: how a line-item discount reduces the charge

A discount type is the kind of reduction that a line-item discount makes: a percentage of the charge, a fixed amount, or a number of free units. Each line-item discount has one discount type. The discount type decides what the line-item discount reduces, and whether it applies before or after Zenskar calculates the charge.

Percentage discounts: a share of the charge

A percentage discount is a line-item discount or a contract-level discount that reduces a charge by a percentage. A percentage discount applies to the charge of each billing period. For example, a percentage discount of 15% reduces a charge of $1,000 to $850.

Fixed-amount discounts: an amount in each discount cadence

A fixed-amount discount is a line-item discount or a contract-level discount that reduces a charge by an amount of money in each discount cadence. A discount cadence is how often the amount of a fixed-amount discount, or the free units of a quantity discount, become available again. The amount is in the currency of the contract. A discount cadence is a whole number of months or years. Within each discount cadence, the amount is used up across the billing periods, in date order. What is left at the end of the discount cadence does not carry forward. A fixed-amount discount never reduces a charge below zero. For example, a fixed-amount discount gives $100 every quarter, and the line item is billed monthly: In April, a new quarter starts, and the full $100 is available again. When the dates of a fixed-amount discount cover only part of a discount cadence, Zenskar either prorates the amount to the part that the dates cover, or gives the full amount.

Quantity discounts: free units in each discount cadence

A quantity discount is a line-item discount that gives a number of free units of a line item in each discount cadence. Zenskar subtracts the free units from the quantity before it calculates the charge. Within each discount cadence, the free units are used up across the billing periods, in date order. Unused free units do not carry forward. For example, a quantity discount gives 1,000 free API calls every month. A customer makes 1,500 calls in a month. Zenskar charges for 500 calls. When the dates of a quantity discount cover only part of a discount cadence, Zenskar either prorates the free units to the part that the dates cover, or gives all the free units. Zenskar rounds a prorated number of free units down to a whole unit.

Discount types compared

Zenskar applies the line-item discounts and the line-item minimum commitments of a line item in this sequence:
  1. A minimum-quantity commitment raises the quantity to its minimum.
  2. Quantity discounts reduce the quantity, in discount order.
  3. Zenskar calculates the charge from the quantity that is left.
  4. A minimum-spend commitment raises the charge to its minimum.
  5. Percentage discounts and fixed-amount discounts reduce the charge, in discount order.
The discount order decides the sequence only within each group of line-item discounts. A quantity discount always applies before a percentage discount or a fixed-amount discount, whatever their discount orders. For example, a line item charges $1 for each API call. A customer makes 1,500 calls in a month. The line item has a percentage discount of 10% with discount order 1, and a quantity discount of 1,000 free calls with discount order 2: The quantity discount applies first, although its discount order is higher. See Add a line-item discount.

Line-item and contract-level discounts compared