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

# Product catalog

> Manage product categories, fixed and metered products, and product filters with lago v2.

| Command | Description |
| - | - |
| `v2 product-categories create\|get\|list\|update\|delete` | Group related products. Identifier: `code`. |
| `v2 products create\|get\|list\|update\|delete` | Fixed or metered products. Identifier: `code`. |
| `v2 product-filters create\|get\|list\|update\|delete` | Price a slice of a metered product's usage. Identifiers: `product_code`, then the filter `code`. |

Every `update` also exists as `patch`. All deletes are confirmation-gated.

## Product categories

`create` takes `--name` and `--code` (required), `--description` and `--invoice-display-name`. `list` accepts `--search-term`.

Deleting a category deletes its products, their filters, rate cards and rates. A category attached to a plan cannot be deleted.

## Products

| Flag | Description |
| - | - |
| `--name`, `--code` | Required. |
| `--product-type` | `fixed` or `metered`. Cannot change after creation. |
| `--billable-metric-code` | Required for `metered`, rejected for `fixed`. Cannot change after creation. |
| `--product-category-code` | Optional. On update, a blank value detaches the category. |
| `--description`, `--invoice-display-name` | Optional. The invoice name defaults to `name`. |

`list` filters by `--product-type`, `--product-category-code`, `--without-product-category` and `--search-term`. `get` accepts `--expands` for nested relationships, such as `product_category` or `billable_metric`.

Deleting a product deletes its filters, rate cards and rates. A product attached to a plan cannot be deleted.

## Product filters

Only metered products have filters. `create` takes `--name`, `--code` and `--values` (required). `--values` is a JSON array of `{"key","value"}` entries matched against the billable metric's filter keys. Omit `value`, or set it to `null`, to select every configured value for that key.

On update, supplying `--values` replaces the whole value set. The code cannot change while the product is used by a plan or Contract, and values cannot change while a Contract has a rate card scoped to the filter.

See [product catalog](https://getlago.com/docs/v2/guide/product-catalog/overview.md) and [product filters](https://getlago.com/docs/v2/guide/product-catalog/product-filters.md) for the model.

```bash product-categories theme={"dark"}
lago v2 product-categories create --name "API services" --code api_services
lago v2 product-categories list --search-term api
```

```bash products theme={"dark"}
# Fixed product
lago v2 products create --name "Monthly service" --code monthly_service \
  --product-type fixed --product-category-code api_services

# Metered product
lago v2 products create --name "API calls" --code api_calls_product \
  --product-type metered --billable-metric-code api_calls \
  --product-category-code api_services

lago v2 products list --product-category-code api_services --all
lago v2 products get api_calls_product --expands billable_metric
```

```bash product-filters theme={"dark"}
# Requires a "region" filter on the api_calls metric
lago v2 product-filters create api_calls_product --name "EU" --code api_calls_eu \
  --values '[{"key":"region","value":"eu"}]'
lago v2 product-filters list api_calls_product
lago v2 product-filters get api_calls_product api_calls_eu
```

```bash delete theme={"dark"}
lago v2 product-filters delete api_calls_product api_calls_eu --confirm api_calls_eu
lago v2 products delete api_calls_product --confirm api_calls_product
```

```text create theme={"dark"}
LAGO_ID  1a901a90-1a90-1a90-1a90-1a901a901a90
CODE     api_calls_product
NAME     API calls
```

```json get theme={"dark"}
{
  "product": {
    "billable_metric": {
      "aggregation_type": "count_agg",
      "code": "api_calls",
      "lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
      "name": "API calls"
    },
    "billable_metric_code": "api_calls",
    "code": "api_calls_product",
    "created_at": "2026-12-01T09:30:00Z",
    "deleted_at": null,
    "description": null,
    "invoice_display_name": null,
    "lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
    "name": "API calls",
    "product_category_code": "api_services",
    "product_type": "metered",
    "updated_at": "2026-12-01T09:30:00Z"
  }
}
```


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