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

# Contract overrides

> Adjust one customer's pricing before their Contract starts.

Contract overrides let you give one customer different pricing from the Plan. Configure them while the Contract is pending. Changes apply to that Contract without changing the Plan or other customers' terms.

## How overrides work

When you create a Contract from a Plan, the Plan supplies the Contract's applied Rate Cards with their phases and overrides. The Contract holds its own configuration. Pricing without an override still follows the active Rate; the copied configuration does not freeze that price. An override belongs to the customer's applied pricing, not to the Product, its category or the Rate Card.

Pricing overrides go through `rate_override` on the Contract's [rate phases](https://getlago.com/docs/v2/guide/plans/plan-phases.md). Structural Rate Card fields such as `currency`, `billing_timing` and `proration` are not overridable.

## Before you start

| Contract status | Can you edit overrides? |
| - | - |
| `pending` | Yes. Prepare the customer's terms before the Contract starts. |
| `active` | No. Applied Rate Cards and phases cannot be edited. |

Create the Contract with a future `started_at` when you need to adjust its terms before billing starts.

## What you can change on a pending Contract

| Action | What to update |
| - | - |
| Set or change a pricing override | [Update the phase](https://getlago.com/docs/v2/api-reference/contract-rate-phases/update.md) with `rate_override`. |
| Remove a pricing override | Set `rate_override: null` on the phase. This does not delete the phase. |
| Add or delete a phase | Use the [create](https://getlago.com/docs/v2/api-reference/contract-rate-phases/create.md) or [delete phase](https://getlago.com/docs/v2/api-reference/contract-rate-phases/delete.md) operation. |
| Change a fixed quantity or billing anchor | [Update the applied Rate Card](https://getlago.com/docs/v2/api-reference/contract-applied-rate-cards/update.md) with `units` or `billing_anchor_date`. |
| Add a Rate Card in the same currency | [Create an applied Rate Card](https://getlago.com/docs/v2/api-reference/contract-applied-rate-cards/create.md). |
| Remove a Rate Card | [Delete the applied Rate Card](https://getlago.com/docs/v2/api-reference/contract-applied-rate-cards/delete.md). |

Only one Rate Card may price each Product or Product filter combination on a Contract.

## Example

A customer signs the `introductory_offer` Plan from [Plan phase & overrides](https://getlago.com/docs/v2/guide/plans/plan-phases.md), but negotiates 40 USD instead of 50 USD during the introductory phase. Their pending Contract is `contract_intro`, starting March 1, 2027.

| Phase | Plan price | Contract price |
| - | - | - |
| `introductory` (2 cycles) | 50 USD per month | 40 USD per month |
| `transition` (3 cycles) | 80 USD per month | 80 USD per month |
| `ongoing` | Active rate | Active rate |

This illustration uses one fixed unit over five full monthly periods in UTC, with no proration, spending minimum or other adjustment. The calculated amount is 2 × 40 USD + 3 × 80 USD = **320 USD before tax**, compared with 340 USD under the Plan's pricing. Other Contracts keep their existing terms.

```bash 1. List the contract's phases theme={"dark"}
LAGO_URL="https://api.getlago.com"
API_KEY="__YOUR_API_KEY__"

curl --location --request GET "$LAGO_URL/api/v2/contracts/contract_intro/applied_rate_cards/monthly_service_usd/rate_phases" \
  --header "Authorization: Bearer $API_KEY"
```

```bash 2. Override the introductory phase theme={"dark"}
LAGO_URL="https://api.getlago.com"
API_KEY="__YOUR_API_KEY__"

curl --location --request PUT "$LAGO_URL/api/v2/contracts/contract_intro/applied_rate_cards/monthly_service_usd/rate_phases/introductory" \
  --header "Authorization: Bearer $API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
    "rate_phase": {
      "rate_override": {
        "rate_model": "standard",
        "rate_properties": { "amount": "40" },
        "billing_interval_count": 1,
        "billing_interval_unit": "month"
      }
    }
  }'
```

```bash Remove an override theme={"dark"}
LAGO_URL="https://api.getlago.com"
API_KEY="__YOUR_API_KEY__"

curl --location --request PUT "$LAGO_URL/api/v2/contracts/contract_intro/applied_rate_cards/monthly_service_usd/rate_phases/introductory" \
  --header "Authorization: Bearer $API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
    "rate_phase": {
      "rate_override": null
    }
  }'
```

`PUT` and `PATCH` accept partial updates. `rate_override: null` removes the override, so the phase inherits the active rate. It does not change the phase's duration.

## Check the pricing

Check the phase's pricing settings and the fixed quantity separately. For the billing period you are reviewing, identify whether pricing comes from an override or the Rate Card, then compare the calculated fee.

A phase with an override keeps its price. A phase without an override follows newly effective Rates. See [Billing timeline](https://getlago.com/docs/v2/guide/contracts/billing-timeline.md#how-phases-interact-with-rate-changes) for the two-customer example, and [Current usage](https://getlago.com/docs/v2/guide/events/retrieve-usage.md#retrieve-current-usage) to inspect provisional quantities and amounts.

> [card] [Plan phase & overrides](https://getlago.com/docs/v2/guide/plans/plan-phases.md)
>
> Phase rules shared by Plans and Contracts.

> [card] [Contract lifecycle](https://getlago.com/docs/v2/guide/contracts/lifecycle.md)
>
> When a Contract stops being editable.

> [card] [Update a Contract rate phase (API)](https://getlago.com/docs/v2/api-reference/contract-rate-phases/update.md)
>
> `PUT .../rate_phases/{code}`

> [card] [List Contract applied Rate Cards (API)](https://getlago.com/docs/v2/api-reference/contract-applied-rate-cards/list.md)
>
> `GET /contracts/{contract_external_id}/applied_rate_cards`


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