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

# Contracts

## Find a contract

Find a [contract](https://zenskar.com/docs/20260301/product-modules/contracts/glossary.md#contract) in the **Contracts** list by name, or narrow the list with filters and sorting.

### Prerequisites

* You need a role with the **Can Read Contract** permission. See [Permissions](https://zenskar.com/docs/20260301/product-modules/contracts/reference/contracts.md#permissions).

### Search for a contract by name

1. Go to **Contracts**.
2. In **Search by name**, enter part of the contract name.
3. Select the contract from the results.

The contract page opens. The search ignores case.

### Filter the contract list

1. Go to **Contracts**.
2. Click **FILTER**.
3. In **Filter by...**, select **Contract**, **Status**, **Customer**, **Currency**, **Created At**, or **Updated At**.
4. Select a condition, such as **is any of**, and a value.
5. Click **APPLY FILTER**.

The list shows only the contracts that match. To remove all filters, click the **Clear All Filters** icon.

### Sort the contract list

1. Go to **Contracts**.
2. Click a column header. The list sorts by that column in ascending order.
3. Click the column header again to sort in descending order.
4. Click the column header a third time to remove the sorting.

You can sort by **Contract**, **Contract Period**, **Updated On**, and **Created On**.

## Create a contract

Create a contract for a customer, with its first [products](https://zenskar.com/docs/20260301/product-modules/products/glossary.md#product). The **New Contract** panel collects the details of the contract and its products. The contract page then opens, where you set up the [line items](https://zenskar.com/docs/20260301/product-modules/contracts/glossary.md#line-item) and save or publish the contract.

### Prerequisites

* You need a role with the **Can Read Contract** and **Can Create Contract** permissions. You also need permissions to read customers, products, and [pricing presets](https://zenskar.com/docs/20260301/product-modules/products/glossary.md#pricing-preset). See [Permissions](https://zenskar.com/docs/20260301/product-modules/contracts/reference/contracts.md#permissions).
* The customer must exist.
* Each product must have a [pricing preset](https://zenskar.com/docs/20260301/product-modules/products/glossary.md#pricing-preset) in the currency of the contract. See [Add a pricing preset](https://zenskar.com/docs/20260301/product-modules/products/how-to-guides/pricing-presets.md#add-a-pricing-preset).

### Enter the contract details

1. Go to **Contracts**.
2. Click **CREATE CONTRACT**. The **New Contract** panel opens.
3. In **Customer**, select the customer. The panel can already show a customer, because Zenskar preselects the first customer of the list. When you select a customer, Zenskar selects **USD** in **Currency** and names the contract after the customer.
4. In **Currency**, select the currency of the contract.
5. In **Contract Duration**, select the start date and the end date. The end date must be on or after the start date.
6. Optional: expand **Invoicing config**, and change the [invoicing config](https://zenskar.com/docs/20260301/product-modules/contracts/glossary.md#invoicing-config). See [Set the invoicing config](#set-the-invoicing-config).
7. Optional: expand **Payment term**, and change the [payment term](https://zenskar.com/docs/20260301/product-modules/contracts/glossary.md#payment-term). See [Set a payment term](https://zenskar.com/docs/20260301/product-modules/contracts/how-to-guides/payment-terms.md#set-a-payment-term).
8. Optional: expand **Additional info (Name, Description)**, and change the internal details:
   * In **Contract Name**, change the name of the contract.
   * Click **+ ADD DESCRIPTION**, and enter a description.

Customers do not see the name or the description.

### Add the first products

1. Under **Products**, click **ADD PRODUCTS**. A searchable list of products opens.
2. Search for a product, and select one of its pricing presets. The list shows only the pricing presets in the currency of the contract.
3. Repeat for each product. A product can appear on only one [line item](https://zenskar.com/docs/20260301/product-modules/contracts/glossary.md#line-item) of a contract.
4. Click outside the list. The panel shows a card for each product.
5. Click **PROCEED →**. The contract page opens, with a line item for each product.

Products are optional in the panel. You can add them on the contract page instead. If you change the currency after you add products, Zenskar removes them. If you switch back to the previous currency, Zenskar restores them.

The contract is not saved yet. Set up its line items, and then save or publish it.

> [card] [Edit a line item](https://zenskar.com/docs/20260301/product-modules/contracts/how-to-guides/line-items.md#edit-a-line-item)
>
> This guide shows how to set the pricing, billing, quantity, and other settings of a line item.

> [card] [Save and publish a contract](https://zenskar.com/docs/20260301/product-modules/contracts/how-to-guides/contracts.md#save-and-publish-a-contract)
>
> This guide shows how to save a contract as a draft, or publish it.

## Edit the details of a contract

Change the currency, the [contract duration](https://zenskar.com/docs/20260301/product-modules/contracts/glossary.md#contract-duration), the invoicing config, the payment term, the name, or the description of a contract. The customer cannot change after you create the contract. On an [active contract](https://zenskar.com/docs/20260301/product-modules/contracts/glossary.md#active-contract), the currency and the invoicing config cannot change either.

### Prerequisites

* You need a role with the **Can Read Contract** and **Can Update Contract** permissions. See [Permissions](https://zenskar.com/docs/20260301/product-modules/contracts/reference/contracts.md#permissions).

### Change the contract details

> [!CAUTION]
>
> Changing the currency of a contract that has line items removes all its line items. The removal becomes permanent when you save the contract. To keep the line items, switch back to the previous currency before you save.

1. Open the contract. See [Find a contract](#find-a-contract).
2. Click **Edit details**. The **Edit Contract Details** panel opens.
3. Change the fields that you want to change:
   * In **Currency**, select another currency. If the contract has line items, Zenskar asks you to confirm. To continue, click **REMOVE**.
   * In **Contract Duration**, change the start date or the end date.
   * Under **Invoicing config**, change the invoicing config. See [Set the invoicing config](#set-the-invoicing-config).
   * Under **Payment term**, change the payment term. See [Set a payment term](https://zenskar.com/docs/20260301/product-modules/contracts/how-to-guides/payment-terms.md#set-a-payment-term).
   * Under **Additional info (Name, Description)**, change the name or the description.
4. Click **SAVE**. The panel closes.
5. Save the contract. See [Save and publish a contract](#save-and-publish-a-contract).

The changes in the panel apply to the contract only when you save the contract.

## Set the invoicing config

Choose how Zenskar invoices an increase to a period whose invoice is already approved. You can change the [invoicing config](https://zenskar.com/docs/20260301/product-modules/contracts/glossary.md#invoicing-config) until you publish the contract.

### Prerequisites

* For a new contract, you need a role with the **Can Read Contract** and **Can Create Contract** permissions. For a [draft contract](https://zenskar.com/docs/20260301/product-modules/contracts/glossary.md#draft-contract), you need **Can Read Contract** and **Can Update Contract**. See [Permissions](https://zenskar.com/docs/20260301/product-modules/contracts/reference/contracts.md#permissions).

### Choose where increases go

1. Open the invoicing config:
   * In the **New Contract** panel, expand **Invoicing config**.
   * On a draft contract, click **Edit details**, and expand **Invoicing config**. Click the edit icon of the invoicing config. The **Edit invoice config** dialog opens.
2. In **BILLING INCREASES AFTER APPROVAL**, select an option:
   * **Raise a back-dated invoice**: Zenskar creates a separate invoice for the increase, dated back to the approved period. This is the default.
   * **Add to the next invoice**: Zenskar adds the increase to the next invoice of the customer.
3. In the **Edit invoice config** dialog, you can also change the **Date Range** of the invoicing config. By default, it covers the whole contract duration. Click **SAVE**.

The invoicing config applies when you save the contract. See [Save and publish a contract](#save-and-publish-a-contract). After you publish the contract, the invoicing config cannot change.

## Save and publish a contract

Save a contract as a [draft contract](https://zenskar.com/docs/20260301/product-modules/contracts/glossary.md#draft-contract), or publish it to make it an [active contract](https://zenskar.com/docs/20260301/product-modules/contracts/glossary.md#active-contract). Only an active contract produces invoices.

### Prerequisites

* For a new contract, you need a role with the **Can Read Contract** and **Can Create Contract** permissions. For an existing contract, you need **Can Read Contract** and **Can Update Contract**. See [Permissions](https://zenskar.com/docs/20260301/product-modules/contracts/reference/contracts.md#permissions).
* To publish, the contract needs at least one line item. Every taxed line item also needs complete tax settings. See [Draft and active contracts](https://zenskar.com/docs/20260301/product-modules/contracts/concepts/contracts.md#draft-and-active-contracts).

### Save a draft

1. On the contract page, click **SAVE DRAFT** for a new contract, or **SAVE** for a draft contract. **SAVE** is available when the contract has unsaved changes.

Zenskar confirms the save. A draft contract produces no invoices.

### Publish the contract

> [!CAUTION]
>
> After you publish a contract, you cannot delete it. You cannot change its currency or its invoicing config either. Check the [invoice preview](https://zenskar.com/docs/20260301/product-modules/contracts/glossary.md#invoice-preview) before you publish. See [Preview the invoices of a contract](https://zenskar.com/docs/20260301/product-modules/contracts/how-to-guides/invoices.md#preview-the-invoices-of-a-contract).

1. On the contract page, click **PUBLISH**. On a draft contract with unsaved changes, the button is **SAVE & PUBLISH**.

Zenskar saves the contract and activates it. If Zenskar cannot activate the contract, it shows the reasons on the page. A draft contract with unsaved changes then stays saved as a draft. An active contract has an **Invoices** tab, and Zenskar starts to produce its invoices.

### Save changes to an active contract

1. Change the contract.
2. Click **SAVE**.

Zenskar saves the changes and starts [invoice regeneration](https://zenskar.com/docs/20260301/product-modules/contracts/glossary.md#invoice-regeneration). If someone else saved the contract after you opened it, Zenskar rejects your save. Reload the contract, and make your changes again.

## Delete a draft contract

Delete a draft contract that you no longer need. Only a draft contract can be deleted.

### Prerequisites

* You need a role with the **Can Read Contract** and **Can Delete Contract** permissions. See [Permissions](https://zenskar.com/docs/20260301/product-modules/contracts/reference/contracts.md#permissions).

### Delete the draft

> [!CAUTION]
>
> Deleting a draft contract also deletes its line items. You cannot undo the deletion.

1. Open the draft contract. See [Find a contract](#find-a-contract).
2. Click **DELETE**. Zenskar asks you to confirm.
3. Click **DELETE**.

Zenskar deletes the contract and returns to the **Contracts** list. You can also delete a draft contract from its row in the **Contracts** list.


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