Skip to main content

Quantity of a line item

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.

Quantity: how many units a line item charges for

A quantity is the number of units of a product that a line item charges for, from a number agreed in the contract or from the usage that a billable metric measures, under a quantity strategy. A number agreed in the contract is a fixed quantity, and usage that a billable metric measures is metered usage.

Quantity versions: changes to the quantity

A quantity version is the quantity of a line item for one range of dates within the line-item duration. The quantity of a line item is copied from its pricing preset when you add the product. The line item then has its own copy. A later change to the quantity of the line item does not change the pricing preset. The quantity versions of a line item do not overlap. Within each pricing version, the quantity versions cover all the dates, or none. Where a pricing version has no quantity version, Zenskar copies the quantity of its pricing preset, if the pricing preset has one.

Fixed quantities and quantity entries

A fixed quantity is a quantity from a number agreed in the contract. A quantity entry is the number of units of a fixed quantity for one range of dates within a quantity version. What a quantity entry does depends on the quantity strategy and the product type: 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 one quantity version for the whole year: a fixed quantity under the recurring quantity strategy. The quantity version covers both pricing versions of seats completely. Its quantity entries set 20 seats until March, and 25 seats from April. Dedicated servers have one quantity version for their whole line-item duration: a fixed quantity of 1 server.

This conceptual diagram shows the quantity versions and the quantity entries of the two line items in the example.

Metered usage

With metered usage, a billable metric measures the quantity of a line item. Each quantity version with metered usage has one billable metric. A billing version cannot be prepaid where a quantity version counts metered usage with the on-demand quantity strategy. See Billing and pricing.

Quantity cadence: how often a quantity applies again

The quantity cadence is how often a quantity under the recurring quantity strategy applies again. The billing cadence must be a whole multiple of the quantity cadence. In the example, seats have a monthly quantity cadence, and are billed quarterly from April. Each billing period from April covers three periods of the quantity cadence. A quarterly quantity cadence does not fit monthly billing.

This conceptual diagram shows how one quarterly billing period of seats covers three periods of a monthly quantity cadence.

A quantity version under the recurring quantity strategy also has partial-period handling. See Partial-period handling: how part of a billing period is charged.

Quantity breakdowns: units for each combination

A quantity breakdown is the split of a quantity entry into the number of units for each combination of dimension values. A fixed quantity needs quantity breakdowns when its pricing preset uses the dimensional pricing model. Each quantity entry then has a quantity breakdown, such as 500 units for the region US and 200 units for the region EU. The number of units of the quantity entry is the sum of its quantity breakdown, such as 700. The dimension values of a quantity breakdown must exist in the prices of each pricing version that charges the quantity entry: its price override, if it has one, or its pricing preset. A quantity entry with no units needs no quantity breakdown. See Set the quantity of a line item.