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

# Contracts vs subscriptions

> Compare subscription-based and contract-based billing and understand how their main objects relate.

Subscriptions and Contracts both apply billing terms to a customer. They organize pricing differently.

With subscriptions, pricing is configured on a Plan through fees and charges. With Contracts, Products, Rate Cards and Rates define pricing that you can reuse across Plans.

Use this page to compare the models and understand how their objects relate.

> [!NOTE]
>
> API v2 is in beta (`2.0.0-beta`), served under `/api/v2`. API v1 (`/api/v1`) stays supported. The two versions document separate objects: v2 invoice and fee endpoints return Contract invoices and Product fees, not v1 subscription fees.

## Why a new model?

The contract-based model gives you more flexibility to manage pricing as your business evolves. Prices are defined in Rates and organized into Rate Cards, separately from Plans. This makes it easier to introduce new prices, define pricing phases and override pricing for individual items.

Explore the documentation to understand how Products, Rate Cards, Plans and Contracts work together, or start with [Your first invoice](https://getlago.com/docs/v2/guide/introduction/your-first-invoice.md) to build a complete example.

## What changed

In v1, a Plan holds charges, and a charge prices one billable metric with a charge model. The Plan also carries the subscription fee and a single billing interval.

In v2, pricing is split into reusable layers:

* A [Product](https://getlago.com/docs/v2/guide/product-catalog/products) defines what you sell. A fixed Product uses a configured quantity. A metered Product uses a billable metric to measure usage.
* A [Rate Card](https://getlago.com/docs/v2/guide/rate-cards/overview.md) holds Rates and shared billing settings for a Product or [Product filter](https://getlago.com/docs/v2/guide/product-catalog/product-filters.md), including currency, billing timing and adjustments for part of a billing period.
* A [Rate](https://getlago.com/docs/v2/guide/rate-cards/rates.md) defines the price, pricing model, effective date and billing interval.
* A [Plan](https://getlago.com/docs/v2/guide/plans/overview.md) combines applied Rate Cards in one currency. Each applied Rate Card can define `units` and a sequence of `rate_phases`.
* A [Contract](https://getlago.com/docs/v2/guide/contracts/overview.md) applies billing terms to a customer.

```mermaid theme={"dark"}
flowchart LR
  subgraph V1["v1 · Subscriptions (Legacy)"]
    direction TB
    S["Subscription"] --> P1["Plan"]
    P1 --> F1["Subscription fee + Plan interval"]
    P1 --> C1["Charges"]
    C1 --> BM1["Billable metric"]
  end
  subgraph V2["v2 · Contracts"]
    direction TB
    K["Contract"] --> P2["Plan"]
    P2 --> ARC["Applied Rate Cards and rate phases"]
    ARC --> RC["Rate Card"]
    RC --> R["Rates: prices, effective dates and billing intervals"]
    RC --> PR["Product or Product filter"]
    PR --> BM2["Billable metric (for metered Products)"]
  end
```

## Compare the billing models

| Subscriptions (v1) | Contracts (v2) | What changed |
| - | - | - |
| Subscription | [Contract](https://getlago.com/docs/v2/guide/contracts/overview.md) | Applies terms to one customer. |
| Plan with charges | Plan with applied Rate Cards | A Plan references reusable Rate Cards instead of owning its charges. |
| Charge | Applied Rate Card + Rate | Not a 1:1 mapping. The Rate Card holds billing settings, the Rate holds the price. |
| Charge filters | [Product filters](https://getlago.com/docs/v2/guide/product-catalog/product-filters.md) | Filters are catalog objects on a metered Product. A Rate Card can target one. |
| Plan subscription fee | Fixed Product + Rate Card + `standard` Rate, applied with `units` | The recurring fee is a Product like any other. |
| Plan interval | Billing interval on each Rate | Each Rate has its own billing interval. |

> [card] [Your first invoice](https://getlago.com/docs/v2/guide/introduction/your-first-invoice.md)
>
> Build the $100 monthly fee plus $0.01 per API call example.

> [card] [Product Catalog](https://getlago.com/docs/v2/guide/product-catalog/overview.md)
>
> Define the Products you sell and their filters.

> [card] [Rate Cards](https://getlago.com/docs/v2/guide/rate-cards/overview.md)
>
> Configure billing settings and prices over time.

> [card] [API reference](https://getlago.com/docs/v2/api-reference/intro.md)
>
> Find endpoints and request fields under `/api/v2`.


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