Skip to main content

Dimensional pricing model

This document explains what the dimensional pricing model is, how dimensions form combinations, how each combination is charged, what happens to the quantity that no combination price covers, and how the pricing period, the quantity, and a line item work with the model.
For each period, a billable metric or a fixed quantity gives the quantity of each combination. A combination that has a combination price is charged with that combination price. Unmatched quantity is charged with the fallback price. Without a fallback price, the invoice does not show it. The amounts of all combinations add up to the amount of the line item for the period. Each combination is charged on its own, so the tiers of one combination count only the quantity of that combination.

Dimensional pricing model: a price for each combination

The dimensional pricing model is the pricing model that splits the quantity by combinations of dimension values and charges each combination with its combination price or the fallback price.

Set up the dimensional pricing model

Steps to define the dimensions, set the combination prices, and set the fallback price of a pricing preset.

Example: a messaging platform

This document explores the dimensional pricing model through one example. Each section uses this example. A messaging platform charges its business customers for each message that it sends for them. The price depends on two dimensions: the region that the message goes to, and the channel, SMS or email. The product is a point-in-time product, and a billable metric counts the messages. Its pricing preset uses the dimensional pricing model. Five of the six combinations of region and channel have their own combination price, shown in Dimensions: what prices vary by. Unmatched quantity costs $0.01 per message, through the fallback price.

Dimensions: what prices vary by

A dimension is a category by which data is grouped and compared. See Dimension (data warehouse). The dimensional pricing model splits the quantity by dimensions and sets a separate price for each combination of dimension values. A dimension value is one of the values that a dimension can take. A combination is a set of dimension values that has exactly one value for each dimension. In the example, region has the dimension values US, IN, and EU, and channel has the dimension values SMS and email. The number of combinations is the product of the numbers of dimension values. In the example, three regions and two channels give 3 × 2 = 6 combinations. Each combination has its own combination price, except [EU · Email]: In general, if the dimensions have n₁, n₂, …, nₖ dimension values, the number of combinations is n₁ × n₂ × … × nₖ. Four dimensions with five dimension values each give 5 × 5 × 5 × 5 = 5⁴ = 625 combinations.
A pricing preset with the dimensional pricing model has at most four dimensions and at most 625 combinations.
Each dimension has a unique name and at least one dimension value. The dimension values of one dimension are unique. Removing a dimension value also removes every combination price that uses it. In the example, removing EU removes the combination price of [EU · SMS].

Combination prices: a price for each combination

A combination price is the price, with its own pricing model, that the dimensional pricing model charges for one combination. An uncovered combination is a combination that has no combination price. Every combination starts as an uncovered combination. A combination stops being uncovered only when it gets a combination price. In the example, the six combinations of region and channel start uncovered, and five of them get a combination price. [EU · Email] stays uncovered. Each combination price uses the per-unit, percent, volume, or tiered pricing model. A combination price cannot use the dimensional pricing model. The example uses three pricing models: tiered for [US · SMS], volume for [EU · SMS], and per unit for the other three combination prices. A new combination price uses the per-unit pricing model with a price per unit of 0. A pricing preset with the dimensional pricing model has at least one combination price, and at most one combination price for each combination. Zenskar rejects a second combination price for the same combination, such as a second price for [US · SMS]. The quantity of an uncovered combination goes to the fallback price. Each combination is charged on its own. The tiers of a combination price count only the quantity of its combination. In the example, one month has 15,000 [US · SMS] messages and 20,000 [IN · SMS] messages: The 20,000 [IN · SMS] messages do not count toward the tiers of [US · SMS]. For a point-in-time product, a combination price with the volume or tiered pricing model has its own tier-reset period. In the example, [US · SMS] and [EU · SMS] each have their own tier-reset period.

Fallback price: the price for everything else

Unmatched quantity is the quantity that matches no combination price. A fallback price is the price, with its own pricing model, that the dimensional pricing model charges for unmatched quantity. The fallback price is optional. Like a combination price, it uses the per-unit, percent, volume, or tiered pricing model. In the example, the fallback price is $0.01 per message, with the per-unit pricing model. Unmatched quantity comes from three cases:
  • The quantity of an uncovered combination. In the example, the 300 [EU · Email] messages of one month are unmatched quantity.
  • A quantity for a value that the pricing preset does not declare. In the example, the billable metric reports 500 SMS messages to BR. BR is not a declared dimension value of region, so no combination price matches. This case occurs only with metered usage, because a fixed quantity accepts only declared dimension values.
  • A quantity that is not split by combination, such as the quantity of a billable metric that does not report the dimensions.
Zenskar charges the unmatched quantity of each set of values on its own. In the example, [EU · Email] and [BR · SMS] are charged separately, each at $0.01 per message. Charging them separately changes the amount only for a fallback price with the volume or tiered pricing model. In a variant of the example with a tiered fallback price, [EU · Email] and [BR · SMS] would each fill the tiers from the first tier. Without a fallback price, Zenskar does not charge unmatched quantity. The invoice does not show it. Like a new combination price, a new fallback price uses the per-unit pricing model with a price per unit of 0. This default leads to two outcomes:
  • A combination price that stays at 0 charges its combination $0. The fallback price does not apply to that combination, because the combination has a combination price.
  • A combination without a combination price is uncovered, and the fallback price applies. A fallback price that stays at 0 also charges $0.
Thus, a combination is charged a non-zero amount only when its combination price has a non-zero amount, or, for an uncovered combination, when the fallback price has one. In the example, if [EU · Email] had a combination price of $0, its 300 messages would cost $0.00, and the fallback price would not apply. One month of the example gives the following amounts: Without the fallback price, the invoice does not show the last two rows, and the total is $220.00.

Pricing period on period-of-time products

For a period-of-time product, the pricing period belongs to the whole pricing preset. A combination price and the fallback price have no pricing period of their own. A new pricing preset starts with a monthly pricing period. In a variant of the example, the platform sells reserved sending capacity by region and channel as a period-of-time product with a monthly pricing period. All six combinations and the fallback price then use the monthly pricing period. Each combination is charged with its own pricing model and the pricing period of the pricing preset. The period ratio, the partial-period handling, the recurring quantity strategy, and the on-demand quantity strategy apply to each combination as they apply to a pricing preset with that pricing model.

Quantities of each combination

The dimensional pricing model charges the quantity of each combination. The quantity of each combination comes from one of two sources:
  • For a pricing preset with metered usage, a billable metric reports the quantity of each combination. It groups the usage events of the customer by the dimensions and reports a quantity for each group of values that it finds. In the example, it counts the messages by region and channel. See Billable metrics.
  • A fixed quantity of a line item splits its units across the combinations. In a variant of the example, a line item has a fixed quantity of 10,000 messages, split into 6,000 [US · SMS] messages and 4,000 [IN · SMS] messages. See Line item: quantity.
The usage events can contain values that the pricing preset does not declare. If the platform sends 500 SMS messages to Brazil, the billable metric reports a group with region BR, channel SMS, and a quantity of 500. That quantity becomes unmatched quantity. Zenskar matches the dimension values in the quantity without regard to case or to spaces at the start and the end, so us matches US. The quantity carries exactly the dimension names of the pricing preset. Zenskar matches the names in the same way as the dimension values. In the example, a billable metric that reports country instead of region does not match. A mismatch can affect contracts and invoices.

Dimensional pricing model on a line item

A price override on a line item can change the dimensions, the combination prices, the fallback price, and the pricing period of its pricing preset. The pricing model stays dimensional. In a variant of the example, the contract of one business customer changes the combination price of [IN · SMS] to $0.0015 per message.
A line item whose pricing preset uses the dimensional pricing model cannot have minimum commitments or discounts.
See Line item: minimum commitments and Line item: discounts.

Line item: pricing

How a line item charges with its pricing preset, and how a price override changes it.