Contract-level discounts
Walkthroughs
Walkthroughs
You can start with a walkthrough instead of reading this document first. A walkthrough is the practical extension of the concepts in this document. It puts them into practice through one example with concrete values. Each part of the walkthrough explains the concepts that its steps apply and links to the sections that cover them.
Map of concepts
Map of concepts
Contract-level discounts: one reduction across the products of a contract
A contract-level discount is a reduction to the charges of all or selected products of a contract, for a range of dates, in addition to their line-item discounts.Set on the contract
You set a contract-level discount once, on the contract. It reduces the charges of all its covered products. It is distinct from a line-item discount, which is set on one line item and reduces only the charge of that line item. For example, 5% on the contract reduces seats and support, but 5% on the line item of seats reduces only seats. See Line-item and contract-level discounts compared. A contract has at most one contract-level discount. Its settings can change on a date that you choose. See Dates and versions of a contract-level discount.A percentage discount or a fixed-amount discount
A contract-level discount is a percentage discount or a fixed-amount discount:Applied after the line-item discounts
Zenskar applies a contract-level discount after the line-item discounts, to what is left of each charge. For example, an invoice charges $200 for product A and $800 for product B. Product A has a line-item discount of 10%, and the contract-level discount is 5% on all products:
The 5% applies to $980, not to $1,000. Zenskar works out each charge in a fixed order. See Contract-level discounts and minimum commitments.
A contract-level discount never reduces a charge below zero. A charge that its line-item discounts bring to zero gets no contract-level discount.
Covered products: what the discount covers
A contract-level discount covers products in one of two ways:
Some products cannot be covered products. With every product covered, a product that you add later must meet the same conditions as the others. See Products that a percentage and a fixed amount can cover.
Dates and versions of a contract-level discount
The settings of a contract-level discount can change over time. A discount version is the set of settings of a contract-level discount for one range of dates within the contract duration. Each discount version has its own settings:- a percentage discount or a fixed-amount discount, with its value;
- the covered products;
- the label of the row on the invoice;
- for a fixed-amount discount, whether Zenskar prorates a shorter discount cadence. See A fixed amount off: how Zenskar splits one amount among the covered products.
Rules for the start and end dates
A charge covers its whole billing period, and a discount version must cover the whole billing period too. The charge of a billing period is not always a sum of equal daily parts, for example with the tiered pricing model. So there is no correct way to prorate the discount over part of a billing period. The whole charge gets one discount version, or none. The dates of a discount version follow these rules:- If the start date of a discount version falls inside a billing period of a covered product, it must be the first day of that billing period.
- If the end date of a discount version falls inside a billing period of a covered product, it must be the last day of that billing period.
This conceptual diagram shows four possible dates of a discount version on seats and a platform fee.
Products added during the contract
A product that you add during the contract has billing periods of its own. Without an anchor date, the billing periods of the product start on its start date, not on the days when the billing periods of the other covered products start. Fewer dates then follow the rules for the start and end dates for all the covered products. An anchor date on the line item of the product lines up its billing periods with those of the other covered products. See Anchor dates: where billing periods start. For example, a contract runs for 2027. Seats are billed every quarter from January 1. You add support on February 10, so support is billed every quarter from February 10. While both products are billed, no day starts a billing period of both. So a discount version that covers both products can only run from January 1 to December 31. A discount version that ends on June 30, for example, cuts the billing period of support from May 10 to August 9:This conceptual diagram shows the only dates of a discount version on seats and support.
A percentage off: how Zenskar reduces and rounds each charge
When a contract-level discount is a percentage discount, it takes its percentage off the charge of each covered product. The percentage is more than 0 and at most 100. At 100%, the covered products are free for the dates of the discount version, unless a contract-level minimum commitment covers them on the same dates. See Contract-level discounts and minimum commitments. A percentage discount reduces each charge on its own. It can therefore cover products with different billing cadences, and prepaid and postpaid products together. For example, 10% can cover seats, billed every month, and a platform fee, billed every quarter.Each charge rounded to the nearest unit
Zenskar rounds the charge after the percentage half up to the nearest smallest unit of the currency, such as a cent. The contract-level discount is the difference between the charge and the rounded result. For example, with 5% off:Prices spread over several billing periods
When a price is spread over several billing periods, such as a yearly price billed every month, Zenskar rounds the results together, so that they add up to the total rounded once. The contract-level discount of one billing period can then differ by a cent from the others. For example, a contract-level discount of 5% covers a price of $1,000 a year, billed every month. Zenskar charges $83.33 in January, $83.34 in February, and $83.33 in March, and takes 5% off each charge, exactly. It then rounds the running total, and bills each month the difference from the rounded total of the month before:
The contract-level discounts are $4.17, $4.16, and $4.17, which add up to $12.50, exactly 5% of $250.
A fixed amount off: how Zenskar splits one amount among the covered products
When a contract-level discount is a fixed-amount discount, it takes its amount off the charges of the covered products together, in each discount cadence. The amount is more than 0, in the currency of the contract. The discount cadence is the billing cadence of the covered products. You do not choose it. The first discount cadence starts on the start date of the discount version, and Zenskar takes the amount off once in each discount cadence. For example, $300 off every quarter from January 1 to June 30, 2027, takes $300 off twice.Split in proportion to the charges
In each discount cadence, Zenskar splits the amount among the charges of the covered products, in proportion to the charges. For example, a contract-level discount takes $120 off every month. In March, seats charge $500 and support charges $300:
When the amount is more than the charges of a discount cadence, Zenskar reduces each charge to zero. The rest of the amount does not carry forward to the next discount cadence. For example, $120 off in a month in which the covered products charge $100 brings them to $0, and the other $20 is lost.
Cents left over by rounding
Zenskar rounds each share down to the smallest unit of the currency, such as a cent. The rounded shares can add up to a few cents less than the amount. Zenskar gives those cents, one at a time, to the shares that rounding cut the most. For example, a contract-level discount takes $10 off three charges of $7, $11, and $5:
When rounding cuts two shares equally, the cent goes to the product that comes first on the contract. For example, $100 off three charges of $300 each gives $33.34 to the first product and $33.33 to each of the others.
Shorter discount cadences
A discount cadence is shorter than usual at the start or the end of a discount version that starts or ends with a short billing period, or where the anchor date of the covered products changes. For example, a contract starts on January 15, and its products are billed from the 1st of each month. Their first billing period runs from January 15 to January 31, so a discount version that starts on January 15 has a first discount cadence of the same dates. For such a discount cadence, the contract-level discount either prorates the amount or gives the whole amount. A prorated amount is in proportion to the part of a full discount cadence that the shorter one covers. Zenskar measures that part as it does for the charge of the line item: whole months count as months, and anything else counts its days, out of the days of a full billing period.Contract-level discounts on the invoice
On the invoice, the contract-level discount appears as a row under each invoice line item whose amount it reduces. It never reduces the invoice subtotal as a whole. The row shows the label of the contract-level discount, or “Contract discount” when the contract-level discount has no label. For example, a contract-level discount labeled “Renewal offer” that covers seats and support shows a “Renewal offer” row under seats and another under support. When you change a contract-level discount for dates that are already on an approved invoice, Zenskar does not change that invoice. A change that raises the charge, such as a smaller discount, goes where the invoicing configuration of the contract decides. A change that lowers the charge, such as a bigger discount, is subtracted from the next invoices of the contract. For example, you change 10% to 15% for March after the March invoice is approved. The March invoice stays as it is, and the extra 5% off is subtracted from the next invoices. See Invoicing configurations: increases after approval.Products that a percentage and a fixed amount can cover
A product can be a covered product only when it meets these conditions:- Carrier product: the shortfall replaces the charges of the carrier product, so the carrier product has no charge of its own for a contract-level discount to reduce. The carrier product is never a covered product.
- Dimensional pricing: the product charges a separate amount for each combination of dimension values, such as each region, so Zenskar cannot tell which combination a reduction should come off. If a product of the contract uses it, the contract-level discount can cover only selected products.
- Recurring charge: a one-time charge, or a charge for each purchase, falls in no discount cadence. A percentage discount applies the discount version whose dates include the charge.
- Same billing: the same billing cadence, billing periods that start on the same days, and the same payment timing, so that all the covered charges of a discount cadence are on one invoice. For example, prepaid seats are invoiced before the charge for postpaid API calls is known.
- Billing change: a change to any of these inside a discount cadence splits it across two or more invoices, even for the only covered product.
Contract-level discounts and minimum commitments
The order of calculation
Zenskar works out the charge of each invoice line item in this order:- The quantity of the line item. Zenskar first raises it to its minimum-quantity commitment, and then takes off the free units of its quantity discounts.
- The price of the line item for that quantity.
- Its minimum-spend commitment.
- Its other line-item discounts, in their discount order. Zenskar then rounds the charge to the smallest unit of the currency.
- The contract-level discount.
- The contract-level minimum commitment.
- Tax.
Contract-level minimum commitments
A contract-level minimum commitment applies after the contract-level discount. Only what is left of the charges counts toward the minimum commitment. The shortfall gets no contract-level discount. So your customer still pays at least the minimum commitment in each commitment period. For example, a contract has a contract-level minimum commitment of $1,000 a month across API calls and storage, both billed postpaid. It also has a contract-level discount of 20% on both. In March, API calls charge $800 and storage charges $400:A 100% discount under a contract-level minimum commitment
A contract-level discount of 100% does not make the covered products free when a contract-level minimum commitment covers them on the same dates. For example, a contract-level minimum commitment of $1,000 a quarter covers API calls and storage, which charge $600 in the quarter:To make the covered products free for some dates, set the dates so that the contract-level discount and the contract-level minimum commitment do not overlap.