> ## Documentation Index
> Fetch the complete documentation index at: https://zenskar.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Concepts: How the pricing of a line item works

> This document explains how the pricing of a line item changes over time through pricing versions, and how a price override changes the values of a pricing preset for one line item.

## Pricing of a line item

> [accordion] Map of concepts
>
> | Concept | Details |
> | - | - |
> | [Price override](#price-overrides-values-changed-for-one-pricing-version) | If a pricing version has a price override, it uses the overridden values instead of those of its pricing preset. |

> [accordion] Related modules
>
> The pricing of a line item uses the following modules:
>
> | Module | Details |
> | - | - |
> | [Products](https://zenskar.com/docs/20260301/zenskar-modules/products/concepts/products.md#pricing-presets-how-you-charge) | Each pricing version uses one pricing preset of the product. A price override changes the values of the pricing model of that pricing preset. |

## Pricing versions: changes to the pricing

A **pricing version** is the pricing of a [line item](https://zenskar.com/docs/20260301/zenskar-modules/contracts/glossary.md#line-item) for one range of dates within the [line-item duration](https://zenskar.com/docs/20260301/zenskar-modules/contracts/glossary.md#line-item-duration), which refers to one [pricing preset](https://zenskar.com/docs/20260301/zenskar-modules/products/glossary.md#pricing-preset) of the [product](https://zenskar.com/docs/20260301/zenskar-modules/products/glossary.md#product) of the line item.

Each pricing version refers to its own pricing preset, so a later pricing version can refer to a different pricing preset of the same product. Every referred pricing preset is in the currency of the [contract](https://zenskar.com/docs/20260301/zenskar-modules/contracts/glossary.md#contract).

For example, the product API calls has two pricing presets. One uses the [per-unit pricing model](https://zenskar.com/docs/20260301/zenskar-modules/products/glossary.md#per-unit-pricing-model), at USD 0.01 a call. The other uses the [tiered pricing model](https://zenskar.com/docs/20260301/zenskar-modules/products/glossary.md#tiered-pricing-model), at USD 0.01 a call for the first 100,000 calls, and USD 0.008 a call after.

```mermaid theme={null}
flowchart LR
  LI["Line item: API calls"]
  P["Product (Products):<br/>API calls"]
  PP1["Pricing preset (Products):<br/>per-unit pricing model,<br/>USD 0.01 a call"]
  PP2["Pricing preset (Products):<br/>tiered pricing model,<br/>USD 0.01 a call up to 100,000 calls,<br/>USD 0.008 a call after"]
  LI -->|"Charges for"| P
  P -->|"Has"| PP1
  P -->|"Has"| PP2
```

This conceptual diagram shows the pricing presets of the product that a line item charges for.

The line item for API calls switches between them in July. The pricing version from January to June refers to the pricing preset with the per-unit pricing model. The pricing version from July to December refers to the pricing preset with the tiered pricing model.

```mermaid theme={null}
gantt
  title Pricing versions of API calls
  dateFormat YYYY-MM-DD
  axisFormat %b
  section API calls
  Line-item duration of API calls                            :2027-01-01, 2027-12-31
  Pricing version, refers to the pricing preset with the per-unit pricing model  :2027-01-01, 2027-06-30
  Pricing version, refers to the pricing preset with the tiered pricing model    :2027-07-01, 2027-12-31
```

This conceptual diagram shows how the pricing versions of a line item switch from one pricing preset to another.

A pricing version has no prices of its own unless it has a [price override](#price-overrides-values-changed-for-one-pricing-version). Without a price override, Zenskar uses the prices of the referred pricing preset each time it calculates the invoices. A price override does not change the referred pricing preset.

A new line item starts with one pricing version, which covers the whole line-item duration. The pricing versions of a line item follow one another, and together cover the whole line-item duration, without gaps or overlaps.

Take, as an example, a [contract](https://zenskar.com/docs/20260301/zenskar-modules/contracts/glossary.md#contract) for 2027 that charges for two [products](https://zenskar.com/docs/20260301/zenskar-modules/products/glossary.md#product), each on its own [line item](https://zenskar.com/docs/20260301/zenskar-modules/contracts/glossary.md#line-item): seats, from January to December, and dedicated servers, from April to December.

In this contract, seats cost USD 20 a seat each month until an introductory price ends in June, and USD 22 a seat from July. Seats therefore have two [pricing versions](https://zenskar.com/docs/20260301/zenskar-modules/contracts/glossary.md#pricing-version). Dedicated servers have one pricing version for their whole [line-item duration](https://zenskar.com/docs/20260301/zenskar-modules/contracts/glossary.md#line-item-duration), at USD 500 a server each month.

```mermaid theme={null}
gantt
  title Pricing versions in the example
  dateFormat YYYY-MM-DD
  axisFormat %b
  section Seats
  Line-item duration of seats                         :2027-01-01, 2027-12-31
  Pricing version of seats, USD 20 a seat             :2027-01-01, 2027-06-30
  Pricing version of seats, USD 22 a seat             :2027-07-01, 2027-12-31
  section Dedicated servers
  Line-item duration of dedicated servers                         :2027-04-01, 2027-12-31
  Pricing version of dedicated servers, USD 500 a server           :2027-04-01, 2027-12-31
```

This conceptual diagram shows the pricing versions of the two line items in the example.

## Adding and removing pricing versions

A line item always has at least one pricing version. Because the pricing versions cover the whole line-item duration, adding a pricing version shortens a neighboring pricing version.

In the example, seats had an introductory price of USD 20 a seat, which the customer agreed would end in June. The pricing version of USD 22 a seat from July was added to a line item that charged USD 20 a seat for the whole year. It shortened the first pricing version to June.

```mermaid theme={null}
gantt
  title Adding a pricing version from July
  dateFormat YYYY-MM-DD
  axisFormat %b
  section Before
  Pricing version of seats, USD 20 a seat    :2027-01-01, 2027-12-31
  section After
  Pricing version of seats, USD 20 a seat    :2027-01-01, 2027-06-30
  Pricing version of seats, USD 22 a seat    :2027-07-01, 2027-12-31
```

This conceptual diagram shows how adding a pricing version shortens its neighbor.

Removing a pricing version lengthens a neighboring pricing version. In the example, the customer could later renegotiate, and keep USD 20 a seat for the whole year. Removing the pricing version from July reverses the change: the first pricing version lengthens to December again.

```mermaid theme={null}
gantt
  title Removing the pricing version from July
  dateFormat YYYY-MM-DD
  axisFormat %b
  section Before
  Pricing version of seats, USD 20 a seat    :2027-01-01, 2027-06-30
  Pricing version of seats, USD 22 a seat    :2027-07-01, 2027-12-31
  section After
  Pricing version of seats, USD 20 a seat    :2027-01-01, 2027-12-31
```

This conceptual diagram shows how removing a pricing version lengthens its neighbor.

## Price overrides: values changed for one pricing version

A **price override** is a change to the values of the [pricing preset](https://zenskar.com/docs/20260301/zenskar-modules/products/glossary.md#pricing-preset) of a pricing version, for that pricing version only.

Without a price override, a pricing version has no prices of its own: it refers to the prices of its pricing preset. A price override copies the prices of the pricing preset into the pricing version, with the values that you change. The pricing version then uses its own copy, and no longer uses the prices of the pricing preset:

| Pricing version | Prices | Prices that Zenskar uses |
| - | - | - |
| Without a price override | Referred | The prices of the pricing preset |
| With a price override | Copied, with the changed values | The pricing version's own copy |

A price override does not change the pricing preset, so other pricing versions that refer to it keep its prices. The other pricing versions of the same line item keep their prices too.

Resetting a price override removes the copy. The pricing version then refers to the prices of its pricing preset again. A price override whose values all match those of the pricing preset is also removed.

For example, the product Seats has a pricing preset with the per-unit pricing model, at USD 20 a seat. Two contracts charge for seats:

| Pricing version | Price override | Price that Zenskar uses |
| - | - | - |
| Pricing version of seats, contract A | USD 18 a seat | USD 18 a seat |
| Pricing version of seats, contract B | None | USD 20 a seat, from the pricing preset |

```mermaid theme={null}
flowchart LR
  PP["Pricing preset (Products):<br/>per-unit pricing model,<br/>USD 20 a seat"]
  A["Pricing version of seats,<br/>contract A"]
  O["Price override:<br/>USD 18 a seat"]
  B["Pricing version of seats,<br/>contract B"]
  A -->|"Refers to"| PP
  A -->|"Has"| O
  B -->|"Refers to"| PP
```

This conceptual diagram shows how a price override changes the price of one pricing version, while its pricing preset and other pricing versions keep the price of the pricing preset.

The pricing version of contract A charges USD 18 a seat, and the pricing version of contract B charges USD 20 a seat. The pricing preset still charges USD 20 a seat.

A price override keeps the [pricing model](https://zenskar.com/docs/20260301/zenskar-modules/products/glossary.md#pricing-model) of the pricing preset. What a price override can change depends on the pricing model:

| Pricing model | A price override can change |
| - | - |
| [Per-unit pricing model](https://zenskar.com/docs/20260301/zenskar-modules/products/glossary.md#per-unit-pricing-model) | The price per unit. On a [period-of-time product](https://zenskar.com/docs/20260301/zenskar-modules/products/glossary.md#period-of-time-product-type), also the [pricing period](https://zenskar.com/docs/20260301/zenskar-modules/products/glossary.md#pricing-period). |
| [Percent pricing model](https://zenskar.com/docs/20260301/zenskar-modules/products/glossary.md#percent-pricing-model) | The percentage. On a period-of-time product, also the pricing period. |
| [Volume pricing model](https://zenskar.com/docs/20260301/zenskar-modules/products/glossary.md#volume-pricing-model) | The tiers and the [tier boundary](https://zenskar.com/docs/20260301/zenskar-modules/products/glossary.md#tier-boundary). Also the pricing period on a period-of-time product, or the [tier-reset period](https://zenskar.com/docs/20260301/zenskar-modules/products/glossary.md#tier-reset-period) on a [point-in-time product](https://zenskar.com/docs/20260301/zenskar-modules/products/glossary.md#point-in-time-product-type). |
| [Tiered pricing model](https://zenskar.com/docs/20260301/zenskar-modules/products/glossary.md#tiered-pricing-model) | The tiers. Also the pricing period on a period-of-time product, or the tier-reset period on a point-in-time product. |
| [Dimensional pricing model](https://zenskar.com/docs/20260301/zenskar-modules/products/glossary.md#dimensional-pricing-model) | The dimensions, the [combination prices](https://zenskar.com/docs/20260301/zenskar-modules/products/glossary.md#combination-price), and the [fallback price](https://zenskar.com/docs/20260301/zenskar-modules/products/glossary.md#fallback-price). On a period-of-time product, also the pricing period. |

See [Add a pricing version](https://zenskar.com/docs/20260301/zenskar-modules/contracts/how-to-guides/line-items.md#add-a-pricing-version).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.