Line item: quantity
This document explains what the quantity of a line item is, where it comes from, how it changes over time, and how it splits across the combinations of a dimensional pricing preset.Map of concepts
Map of concepts
A line item starts with the quantity setting of its pricing preset, or with a recurring fixed quantity of 1. Each quantity version has a quantity strategy and gets its quantity in one of two ways. A fixed quantity is a number that changes through quantity entries. Metered usage gets the quantity from a billable metric. Under the recurring quantity strategy, the quantity applies again after each quantity cadence. Partial-period handling then decides how Zenskar charges a quantity that starts partway through a period. Under a dimensional pricing preset, each quantity entry splits its units across combinations.
Quantity: how many units a line item charges for
The quantity is the number of units that a line item charges for. A line item gets its quantity in one of two ways: as a fixed quantity that you enter, or from metered usage that a billable metric measures.Quantity versions: how many units
A quantity version is the version of the quantity of a line item. Each quantity version has a quantity strategy: on demand or recurring. Each quantity version also gets its quantity in one of two ways: as a number that you enter, or from metered usage. A line item starts with the quantity setting of its pricing preset. If the pricing preset has no quantity setting, the line item starts with a recurring fixed quantity of 1, prorated. The quantity strategy and the source of the quantity form four modes:
Within each pricing version, the quantity versions must cover all the dates, or none. Without quantity versions, the line item uses the quantity setting of its pricing preset.
Fixed quantities and quantity entries
A fixed quantity is a quantity that you enter as a number. A quantity entry is a dated value of a fixed quantity within a quantity version. An example is a new seat count from a date. What a quantity entry does depends on the quantity strategy and the product type:
For example, a seat line item starts with 20 seats. A quantity entry from April changes the count to 25 seats. January to March are charged for 20 seats, and April onward for 25 seats.
Metered usage
With metered usage, a billable metric measures the quantity of the line item. Each quantity version with metered usage has one billable metric. Metered usage with the on-demand quantity strategy cannot be prepaid, because Zenskar cannot know the usage before the billing period. See Line item: billing.Recurring quantities
The quantity cadence is how often a recurring quantity applies again. Monthly is the default. The quantity cadence cannot be longer than the billing cadence. The billing cadence must be a whole multiple of the quantity cadence. For example, a monthly quantity fits monthly or quarterly billing. A recurring quantity also has partial-period handling. It decides how Zenskar charges for a quantity that starts partway through a period:
For example, a customer adds 10 seats on January 16, with monthly billing. With prorate, Zenskar charges the 10 seats from January 16 to January 31. With charge full, Zenskar charges the 10 seats for all of January.
Partial-period handling applies only to the recurring quantity strategy.
Dimensional pricing presets
When the pricing preset of a line item uses the dimensional pricing model, a fixed quantity must say which combination of dimension values its units fall in. Each quantity entry then has a breakdown: the number of units for each combination, such as 500 for region US and 200 for region EU. The combinations in a breakdown must exist in the pricing preset.Set the quantity of a line item
This guide shows how to set the quantity mode and the quantity entries of a line item.