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

# Step 4: Create contract and add products

This step involves creating the contract for your customer and then directly adding and configuring the specific products (CPU and storage) with their usage-based pricing within that contract.

***

## Prerequisites

<Cards columns={2}>
  <Card title="Contracts" href="https://docs.zenskar.com/docs/contract" icon="fa-info-circle" target="_blank">
    A contract in Zenskar is a structured digital representation of a commercial agreement between you and your customer.
  </Card>

  <Card title="Products" href="https://docs.zenskar.com/docs/product" icon="fa-info-circle" target="_blank">
    A product in Zenskar is a structured, reusable representation of a good or service offered by your business.
  </Card>
</Cards>

***

## Create the basic contract

1. Log in to your Zenskar dashboard.
2. Navigate to the **Contracts** > **Contracts**.
3. Click **+ ADD NEW CONTRACT**.
4. You will see the **Create Contract**. Fill in the contract details:
   * **Get started with a plan (optional):** Leave this  empty, as we will add products manually.
   * **Contract information:**

     | Field                       | Description / Example                                                                                            |
     | :-------------------------- | :--------------------------------------------------------------------------------------------------------------- |
     | **Customer**                | Start typing `ACME Inc.` and select your customer from the dropdown (the one created in step 1).                 |
     | **Contract name**           | Enter a descriptive name, e.g., `ACME Inc. Direct Billing Contract`.                                             |
     | **Contract period**         | Set the start and end dates for the contract (e.g., `July 01, 2025` to `June 30, 2026` for a one-year contract). |
     | **Start billing cycle on**  | Choose the date when billing cycles for this contract should begin (e.g., `July 01, 2025`).                      |
     | **Currency**                | Select `USD`.                                                                                                    |
     | **Contract renewal policy** | Choose an appropriate policy (e.g., `don't renew automatically` for this quickstart).                            |
   * **Optional**: Add description, tags, or custom attributes if needed.
5. Once all the required fields are filled, click **PROCEED** to create the contract.

***

## Add and configure products within the contract

Zenskar will navigate you to the newly created contract's summary page. This page provides an overview and allows you to add and configure products.

Now, you will manually add and define the pricing for your compute and storage products.

<Accordion title="CPU usage product" icon="fa-step">
  1. Click the "ADD PRODCUT" button.

  2. This will open the "Add Product" modal dialog.

  3. In this modal, select **+ CREATE NEW PRODUCT**.

  4. You will then see the **Create Product** form:

     * **Product name**: Enter `Compute Usage`.
     * (Optional: Fill in `description`, `SKU`, `tax code`, or `custom attributes` if needed).

  5. Click "SAVE & PROCEED".

  6. You will be returned to the "Add Product" modal, with your new product (`compute`) selected. Now, under **Pricing Details**, click **+ ADD PRICE**.

  7. This action will lead you to the \*\*Add Pricing Details" form.

  8. **Pricing Model:** Select `per unit`.
     * **Currency:** `USD`.
     * **Price:** Enter `0.05`.

  9. **Usage:** Select **Metered**.
     * **Billable metric**: Select `Total CPU Hours` (the metric you defined in step 3).
     * **Unit**: Enter `per CPU hour`.

  10. **Billing Cadence:** Select `recurring`, `every 1 month`.

  11. Click **CONFIRM**.
</Accordion>

<Accordion title="Storage usage product" icon="fa-step">
  1. Click the "ADD PRODCUT" button.

  2. This will open the "Add Product" modal dialog.

  3. In this modal, select **+ CREATE NEW PRODUCT**.

  4. You will then see the **Create Product** form:

     * **Product name**: Enter `Storage Usage`.
     * (Optional: Fill in `description`, `SKU`, `tax code`, or `custom attributes` if needed).

  5. Click "SAVE & PROCEED".

  6. You will be returned to the "Add Product" modal, with your new product (`compute`) selected. Now, under **Pricing Details**, click **+ ADD PRICE**.

  7. This action will lead you to the \*\*Add Pricing Details" form.

  8. **Pricing Model:** Select `per unit`.
     * **Currency:** `USD`.
     * **Price:** Enter `0.05`.

  9. **Usage:** Select **Metered**.
     * **Billable metric**: Select `Total Storage GB-Months` (the metric you defined in step 3).
     * **Unit**: Enter `per GB-Month`.

  10. **Billing Cadence:** Select `recurring`, `every 1 month`.

  11. Click **CONFIRM**.
</Accordion>

Once both products are configured, your contract is fully set up for usage-based billing.
