> ## 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.

# How-to guides: Manage line items

> This document shows how to add products to a contract as line items, how to set the duration, pricing, billing, quantity, and anchor dates of a line item, and how to remove it.

## Add products to a contract

Each [line item](https://zenskar.com/docs/20260301/zenskar-modules/contracts/glossary.md#line-item) charges for one [product](https://zenskar.com/docs/20260301/zenskar-modules/products/glossary.md#product), with one of its [pricing presets](https://zenskar.com/docs/20260301/zenskar-modules/products/glossary.md#pricing-preset).

### Prerequisites

* You need a role with the **Can Read Contract** and **Can Update Contract** permissions. For a new [contract](https://zenskar.com/docs/20260301/zenskar-modules/contracts/glossary.md#contract), you need **Can Create Contract** instead of **Can Update Contract**. You also need permissions to read products and pricing presets.
* To create a product or a pricing preset from the list of products, you also need the **Can Create Product** and **Can Create Product Pricing** permissions.

### Steps

1. On the **Summary** tab of the contract screen, click **ADD PRODUCTS**. A searchable list of products opens.

2. Search for a product by name.

   The list shows each product with its pricing presets in the currency of the contract. Products that the contract already has do not appear.

3. Under the product, select a pricing preset.

   Each pricing preset shows its [pricing model](https://zenskar.com/docs/20260301/zenskar-modules/products/glossary.md#pricing-model), and its amount or number of tiers, or its [pricing-preset alias](https://zenskar.com/docs/20260301/zenskar-modules/products/glossary.md#pricing-preset-alias). When a product has several pricing presets in the currency, the [default pricing preset](https://zenskar.com/docs/20260301/zenskar-modules/products/glossary.md#default-pricing-preset) shows **Default**. To change the pricing preset of a product, select another one. To remove a product from the selection, select its pricing preset again.

4. Optional: To create a product, click **Create New Product**, and create the product with its first pricing preset. See [Create a product](https://zenskar.com/docs/20260301/zenskar-modules/products/how-to-guides/products.md#create-a-product). The dashboard adds the new product with its first pricing preset.

5. Optional: To add a pricing preset to a product, point to the product, click **Add price**, and add the pricing preset. See [Add a pricing preset](https://zenskar.com/docs/20260301/zenskar-modules/products/how-to-guides/pricing-presets.md#add-a-pricing-preset). The dashboard adds the product with the new pricing preset.

6. Repeat for each product.

7. Click outside the list.

   The screen shows a card for each new line item. Each line item starts with the billing and the [quantity](https://zenskar.com/docs/20260301/zenskar-modules/contracts/glossary.md#quantity) of its pricing preset. When the pricing preset has no billing, the line item starts with monthly billing, prepaid. When it has no quantity, the line item starts with a [fixed quantity](https://zenskar.com/docs/20260301/zenskar-modules/contracts/glossary.md#fixed-quantity) of 1, under the [recurring quantity strategy](https://zenskar.com/docs/20260301/zenskar-modules/products/glossary.md#recurring-quantity-strategy), with a monthly [quantity cadence](https://zenskar.com/docs/20260301/zenskar-modules/contracts/glossary.md#quantity-cadence), prorated.

8. Save the contract. See [Save and publish a contract](https://zenskar.com/docs/20260301/zenskar-modules/contracts/how-to-guides/contracts.md#save-and-publish-a-contract).

See [Line-item screen: tabs and controls](https://zenskar.com/docs/20260301/zenskar-modules/contracts/reference/line-items.md#line-item-screen-tabs-and-controls).

## Edit a line item

You open the screen of the line item to change its [line-item duration](https://zenskar.com/docs/20260301/zenskar-modules/contracts/glossary.md#line-item-duration) and each of its settings.

### Prerequisites

* You need a role with the **Can Read Contract** and **Can Update Contract** permissions. For a new contract, you need **Can Create Contract** instead of **Can Update Contract**.

### Steps

1. On the contract screen, on the card of the line item, click **EDIT**. The screen of the line item opens on **Pricing**. You can also click a row of the timeline on the card, to open the screen on the matching tab.

2. Optional: In **Line Item Duration**, change the start date or the end date. The line-item duration must stay within the [contract duration](https://zenskar.com/docs/20260301/zenskar-modules/contracts/glossary.md#contract-duration).

   If the screen offers to update the dates of the other settings, click **Apply to all** to move them to the new duration, or **Not now** to keep them. When some of them fall outside the new duration, the button shows **Auto-fix**, followed by the number of items. If the screen lists date issues, click each issue, and fix its dates on the tab that opens. **SAVE CHANGES** is unavailable until no date issue is left.

3. In the rail of tabs, click the setting that you want to change: **Pricing**, **Billing**, **Quantity**, **Commitments**, **Discounts**, or **Anchor Dates**. See the tasks that follow, [Add a line-item discount](https://zenskar.com/docs/20260301/zenskar-modules/contracts/how-to-guides/discounts.md#add-a-line-item-discount), and [Add a line-item minimum commitment](https://zenskar.com/docs/20260301/zenskar-modules/contracts/how-to-guides/minimum-commitments.md#add-a-line-item-minimum-commitment).

4. Click **SAVE CHANGES**. If a tab has errors, the screen names the tabs to fix.

5. Save the contract. See [Save and publish a contract](https://zenskar.com/docs/20260301/zenskar-modules/contracts/how-to-guides/contracts.md#save-and-publish-a-contract).

See [Line-item screen: tabs and controls](https://zenskar.com/docs/20260301/zenskar-modules/contracts/reference/line-items.md#line-item-screen-tabs-and-controls).

## Add a pricing version

Each new pricing preset from a chosen date is a new [pricing version](https://zenskar.com/docs/20260301/zenskar-modules/contracts/glossary.md#pricing-version).

### Prerequisites

* You need a role with the **Can Read Contract** and **Can Update Contract** permissions. For a new contract, you need **Can Create Contract** instead of **Can Update Contract**.

### Steps

1. Open the screen of the line item, and click **Pricing**. See [Edit a line item](#edit-a-line-item).

2. Click **Add version**. The **Import Pricing Version** screen opens. It lists the pricing presets of the product in the currency of the contract, with the first one selected.

3. Select the pricing preset for the new pricing version.

4. Click **IMPORT VERSION**.

   The new pricing version appears at the end of the line item. When the last pricing version runs to the end of the line item, the dashboard splits it on the first day of a month near its middle. When the last pricing version ends before the line item, the new pricing version fills the gap.

5. In **Date Range**, set the start date of the new pricing version. The dashboard moves the end of the previous pricing version to the day before.

   The pricing versions of a line item cover its whole line-item duration, without gaps or overlaps. See [Pricing versions: changes to the pricing](https://zenskar.com/docs/20260301/zenskar-modules/contracts/concepts/line-items/pricing.md#pricing-versions-changes-to-the-pricing).

6. Optional: To delete a pricing version, select it in **Pricing timeline**, and click the delete icon. A neighboring pricing version extends over its dates. A line item always keeps at least one pricing version.

7. Click **SAVE CHANGES**.

See [Pricing tab: pricing versions and overrides](https://zenskar.com/docs/20260301/zenskar-modules/contracts/reference/line-items.md#pricing-tab-pricing-versions-and-overrides).

## Override the price of a line item

A [price override](https://zenskar.com/docs/20260301/zenskar-modules/contracts/glossary.md#price-override) changes the values of a pricing version for this line item only.

### Prerequisites

* You need a role with the **Can Read Contract** and **Can Update Contract** permissions. For a new contract, you need **Can Create Contract** instead of **Can Update Contract**.

### Steps

1. Open the screen of the line item, and click **Pricing**. See [Edit a line item](#edit-a-line-item).

2. If the line item has several pricing versions, select the pricing version in **Pricing timeline**.

3. Change the fields of the pricing model, such as the price per unit or the tier prices. Each changed field shows **Override**.

   The pricing preset does not change, and neither do the other contracts that use it. To return a field to the value of the pricing preset, click **Reset to catalog** next to it.

4. Click **SAVE CHANGES**.

See [Pricing tab: pricing versions and overrides](https://zenskar.com/docs/20260301/zenskar-modules/contracts/reference/line-items.md#pricing-tab-pricing-versions-and-overrides).

## Set the billing of a line item

A change from a chosen date creates a new [billing version](https://zenskar.com/docs/20260301/zenskar-modules/contracts/glossary.md#billing-version).

### Prerequisites

* You need a role with the **Can Read Contract** and **Can Update Contract** permissions. For a new contract, you need **Can Create Contract** instead of **Can Update Contract**.

### Steps

1. Open the screen of the line item, and click **Billing**. See [Edit a line item](#edit-a-line-item).

2. Optional: To change the billing from a date, click **Add version**, and in **Date Range**, set the start date of the new billing version.

   The new billing version starts with the [billing cadence](https://zenskar.com/docs/20260301/zenskar-modules/contracts/glossary.md#billing-cadence) and the [payment timing](https://zenskar.com/docs/20260301/zenskar-modules/contracts/glossary.md#payment-timing) of the previous one. The dashboard moves the end of the previous billing version to the day before. Within each pricing version, the billing versions must cover all the dates, or none.

3. If the line item has several billing versions, select the billing version in **Billing timeline**.

4. In **Cadence**, select **Monthly**, **Quarterly**, **Semi-Annual**, **Annual**, or **Custom**. For **Custom**, enter a number of months or years.

   **Custom** also offers weeks, but Zenskar rejects a billing cadence shorter than a month. The billing cadence must align with the [pricing period](https://zenskar.com/docs/20260301/zenskar-modules/products/glossary.md#pricing-period): one must be a whole multiple of the other. See [Billing and pricing](https://zenskar.com/docs/20260301/zenskar-modules/contracts/concepts/line-items/billing.md#billing-and-pricing).

5. In **PAYMENT TIMING**, select **Prepaid** or **Postpaid**.

   A billing version cannot be prepaid where a [quantity version](https://zenskar.com/docs/20260301/zenskar-modules/contracts/glossary.md#quantity-version) of the line item counts [metered usage](https://zenskar.com/docs/20260301/zenskar-modules/products/glossary.md#metered-usage) with the [on-demand quantity strategy](https://zenskar.com/docs/20260301/zenskar-modules/products/glossary.md#on-demand-quantity-strategy). On an [active contract](https://zenskar.com/docs/20260301/zenskar-modules/contracts/glossary.md#active-contract), the payment timing cannot change on or before the end of the last invoiced [billing period](https://zenskar.com/docs/20260301/zenskar-modules/contracts/glossary.md#billing-period) of the line item.

6. Optional: To delete a billing version, select it in **Billing timeline**, and click the delete icon. A neighboring billing version extends over its dates.

7. Click **SAVE CHANGES**.

See [Billing tab: fields and their rules](https://zenskar.com/docs/20260301/zenskar-modules/contracts/reference/line-items.md#billing-tab-fields-and-their-rules).

## Set the quantity of a line item

A change of the quantity from a chosen date creates a new [quantity version](https://zenskar.com/docs/20260301/zenskar-modules/contracts/glossary.md#quantity-version). A change of a [fixed quantity](https://zenskar.com/docs/20260301/zenskar-modules/contracts/glossary.md#fixed-quantity) within a quantity version is a new [quantity entry](https://zenskar.com/docs/20260301/zenskar-modules/contracts/glossary.md#quantity-entry).

### Prerequisites

* You need a role with the **Can Read Contract** and **Can Update Contract** permissions. For a new contract, you need **Can Create Contract** instead of **Can Update Contract**.
* For metered usage, the [billable metric](https://zenskar.com/docs/20260301/zenskar-modules/usage/glossary.md#billable-metric) must exist. See [Create a billable metric](https://zenskar.com/docs/20260301/zenskar-modules/usage/how-to-guides/billable-metrics.md#create-a-billable-metric).

### Steps

1. Open the screen of the line item, and click **Quantity**. See [Edit a line item](#edit-a-line-item).

2. Optional: To change the quantity from a date, click **Add version**, and in **Date Range**, set the start date of the new quantity version. The dashboard moves the end of the previous quantity version to the day before.

   Within each pricing version, the quantity versions must cover all the dates, or none.

3. If the line item has several quantity versions, select the quantity version in **Quantity timeline**.

4. Under **Mode**, select a cell of the grid. The row sets the [quantity strategy](https://zenskar.com/docs/20260301/zenskar-modules/products/glossary.md#quantity-strategy): **On demand** or **Recurring**. The column sets the source of the quantity: **Fixed value** or **Metered value**.

   A billing version cannot be prepaid where the quantity is **Metered value** under **On demand**. See [Metered usage](https://zenskar.com/docs/20260301/zenskar-modules/contracts/concepts/line-items/quantity.md#metered-usage).

5. For **Recurring**, set the quantity cadence in **CADENCE**, and the [partial-period handling](https://zenskar.com/docs/20260301/zenskar-modules/products/glossary.md#partial-period-handling) in **PARTIAL PERIODS**: **Prorate** or **Charge full**.

   The billing cadence must be a whole multiple of the quantity cadence. See [Quantity cadence: how often a quantity applies again](https://zenskar.com/docs/20260301/zenskar-modules/contracts/concepts/line-items/quantity.md#quantity-cadence-how-often-a-quantity-applies-again).

6. For **Metered value**, in **Billable Metric**, search for the billable metric, and select it.

7. For **Fixed value**, enter the quantity in the value field of entry #1.

8. Optional: To change a fixed quantity from a date, click the button that adds an entry: **ADD AMENDMENT**, **ADD ALLOWANCE**, or **ADD BATCH**. The list of entries is titled after the unit of the product, such as **SEAT AMENDMENTS (1)**. Set the date of the new entry, and enter its quantity. To remove an entry, click its delete icon.

   What a quantity entry does depends on the quantity strategy and the [product type](https://zenskar.com/docs/20260301/zenskar-modules/products/glossary.md#product-type). Under the recurring quantity strategy, an entry has a date range, and the dashboard ends the previous entry on the day before. Under the on-demand quantity strategy, an entry has a single date, and is a separate purchase. See [Fixed quantities and quantity entries](https://zenskar.com/docs/20260301/zenskar-modules/contracts/concepts/line-items/quantity.md#fixed-quantities-and-quantity-entries).

9. When the pricing preset uses the [dimensional pricing model](https://zenskar.com/docs/20260301/zenskar-modules/products/glossary.md#dimensional-pricing-model), enter the units of each combination of [dimension values](https://zenskar.com/docs/20260301/zenskar-modules/products/glossary.md#dimension-value) under **Breakdown** of each entry.

   Each entry of a fixed quantity needs a [quantity breakdown](https://zenskar.com/docs/20260301/zenskar-modules/contracts/glossary.md#quantity-breakdown), except an entry with no units. The number of units of the entry is the sum of its quantity breakdown. See [Quantity breakdowns: units for each combination](https://zenskar.com/docs/20260301/zenskar-modules/contracts/concepts/line-items/quantity.md#quantity-breakdowns-units-for-each-combination).

10. Click **SAVE CHANGES**.

See [Quantity tab: fields and their rules](https://zenskar.com/docs/20260301/zenskar-modules/contracts/reference/line-items.md#quantity-tab-fields-and-their-rules).

## Set anchor dates

Without an [anchor date](https://zenskar.com/docs/20260301/zenskar-modules/contracts/glossary.md#anchor-date), the billing periods of a line item count from the start date of the line item.

### Prerequisites

* You need a role with the **Can Read Contract** and **Can Update Contract** permissions. For a new contract, you need **Can Create Contract** instead of **Can Update Contract**.

### Steps

> [!WARNING]
>
> **Last day of month** has an effect only when the anchor date is the last day of its month. For an anchor date from the 28th to the 30th of a longer month, the billing periods still start on the day of the anchor date. To start every billing period on the last day of its month, choose the last day of a month as the anchor date, such as January 31.

1. Open the screen of the line item, and click **Anchor Dates**. See [Edit a line item](#edit-a-line-item).

2. Click **Add anchor date**.

3. In **Date Range**, set the dates that the anchor date applies to.

   A line item can have several anchor dates, each for its own range of dates within the line-item duration. The ranges cannot overlap, and they do not have to cover the whole line-item duration.

4. In **Anchor Date**, select the anchor date. It must fall within the date range.

5. Optional: If the anchor date is on the 28th or later, select **Last day of month**.

6. Optional: To delete an anchor date, select it in **Anchor dates timeline**, and click the delete icon.

7. Click **SAVE CHANGES**.

See [Anchor Dates tab: fields and their rules](https://zenskar.com/docs/20260301/zenskar-modules/contracts/reference/line-items.md#anchor-dates-tab-fields-and-their-rules).

## Remove a line item

### Prerequisites

* You need a role with the **Can Read Contract** and **Can Update Contract** permissions. For a new contract, you need **Can Create Contract** instead of **Can Update Contract**.

### Steps

1. On the contract screen, on the card of the line item, click the menu icon.
2. Click **Delete**. The card disappears from the screen.
3. Save the contract. See [Save and publish a contract](https://zenskar.com/docs/20260301/zenskar-modules/contracts/how-to-guides/contracts.md#save-and-publish-a-contract).

The removal becomes permanent when you save the contract. To keep the line item, leave the contract screen without saving.

See [Line-item screen: tabs and controls](https://zenskar.com/docs/20260301/zenskar-modules/contracts/reference/line-items.md#line-item-screen-tabs-and-controls).


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