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

# Overview

> Create Lago products, choose between fixed and metered types, link a billable metric, assign a category, and understand what you can change or delete later.

A [product](https://getlago.com/docs/v2/api-reference/products/object.md) represents what your customer is charged for, such as a platform fee, API calls or compute time. Create one product per billable item, then price it with a [rate card](https://getlago.com/docs/v2/guide/rate-cards/overview.md): the product's identity stays separate from its price.

## Choose a product type

`product_type` is set at creation and cannot change.

| Type | Quantity comes from | `billable_metric_code` | Guide |
| - | - | - | - |
| `fixed` | A configured quantity (`units` on the applied rate card) | Not allowed | [Fixed products](https://getlago.com/docs/v2/guide/product-catalog/fixed-products.md) |
| `metered` | A [billable metric](https://getlago.com/docs/v2/guide/billable-metrics/create-billable-metrics.md) aggregating events | Required | [Metered products](https://getlago.com/docs/v2/guide/product-catalog/metered-products.md) |

Only metered products can have [product filters](https://getlago.com/docs/v2/guide/product-catalog/product-filters.md).

## Product fields

| Field | Required | Description |
| - | - | - |
| `name` | Yes | Readable label in the catalog. |
| `code` | Yes | Unique code within your organization, used in API references. |
| `product_type` | Yes | `fixed` or `metered`. Immutable. |
| `billable_metric_code` | Metered only | Billable metric that measures the quantity. Immutable. |
| `product_category_code` | No | Optional [category](https://getlago.com/docs/v2/guide/product-catalog/product-categories.md). Omit for a standalone product. |
| `invoice_display_name` | No | Name used on invoices. Defaults to `name` when blank. |
| `description` | No | Internal description. |

## Example

In the running example, `api_services` groups two products: the fixed `monthly_service` ($100 per month) and the metered `api_calls_product` ($0.01 per call, measured by `api_calls`). In a cloud catalog, Compute and Bandwidth are metered products in a Usage rates category, Seat is a standalone metered product with role filters, and Platform fee is a standalone fixed product.

## Create a product

> [tab] Dashboard
>
> Create a product with these values:
>
> 1. **Name**: `API calls`
>
> 2. **Code**: `api_calls_product`
>
> 3. **Type**: metered
>
> 4. **Billable metric**: `api_calls`
>
> 5. **Product category** (optional): `api_services`
>
> > [!NOTE]
> >
> > The fields match the API. Screen-by-screen Dashboard steps are not documented yet.

> [tab] API
>
> ```bash Create a metered product theme={"dark"}
> LAGO_URL="https://api.getlago.com"
> API_KEY="__YOUR_API_KEY__"
>
> curl --location --request POST "$LAGO_URL/api/v2/products" \
>   --header "Authorization: Bearer $API_KEY" \
>   --header 'Content-Type: application/json' \
>   --data-raw '{
>     "product": {
>       "name": "API calls",
>       "code": "api_calls_product",
>       "product_type": "metered",
>       "billable_metric_code": "api_calls",
>       "product_category_code": "api_services"
>     }
>   }'
> ```

## Verify the product

Retrieve it with `GET /api/v2/products/api_calls_product`. Add `expands[]=billable_metric` or `expands[]=product_category` to include those objects. Check `product_type`, the category and the metric before you add pricing.

To list products, use `GET /api/v2/products`. Filter by `product_type`, `product_category_code[]` or `without_product_category=true`.

## Change or delete a product

`PUT` accepts partial updates of `name`, `code`, `description`, `invoice_display_name` and `product_category_code`. The type and the billable metric cannot change. To change either, create a new product.

> [!WARNING]
>
> `DELETE /api/v2/products/{code}` deletes the product **and** its filters, rate cards and rates. A product attached to a plan cannot be deleted.

> [card] [Fixed products](https://getlago.com/docs/v2/guide/product-catalog/fixed-products.md)
>
> Recurring fees with a configured quantity.

> [card] [Metered products](https://getlago.com/docs/v2/guide/product-catalog/metered-products.md)
>
> Usage measured by a billable metric.

> [card] [Create a product](https://getlago.com/docs/v2/api-reference/products/create.md)
>
> `POST /products`

> [card] [The product object](https://getlago.com/docs/v2/api-reference/products/object.md)
>
> Every product field.


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