> For the complete documentation index, see [llms.txt](https://developer.paddle.com/llms.txt).
>
> To search these docs, send a `GET` request to `https://paddle-docs-retrieval.kapa-paddle.workers.dev/?q=<question>` with a URL-encoded question. No authentication needed. It returns a JSON array of `{content, source_url}`, most relevant first.

# Allowance lifetime exceeds maximum

An allowance's `grant.duration` plus `grant.rollover` can't be longer than 3 years. While `duration` is `null`, the billing cycle counts as the duration. On a price with no `billing_cycle`, `grant.duration` alone counts.

> **Early access (beta): usage-based billing**

---

## Example

```json
{
  "error": {
    "type": "request_error",
    "code": "price_allowance_lifetime_greater_than_maximum",
    "detail": "allowance for usage balance unit ubu_01kw8ta2j8x5t7q4v9m1kd6phz lasts 4 years including its grant duration, which is longer than the maximum of 3 years",
    "documentation_url": "https://developer.paddle.com/errors/prices/price_allowance_lifetime_greater_than_maximum"
  },
  "meta": {
    "request_id": "00000000-0000-0000-0000-000000000000"
  }
}
```

## Details

| Attribute | Value |
| --- | --- |
| Status code | 400 |
| Error code | `price_allowance_lifetime_greater_than_maximum` |
| Error message | allowance for usage balance unit %s lasts %s including its grant duration, which is longer than the maximum of 3 years |

## Common causes

- An entry in `allowances` has a `grant.rollover` that, added to the grant duration (the price's `billing_cycle` while `grant.duration` is `null`), is longer than 3 years.
- An entry in `allowances` on a price with no `billing_cycle` has a `grant.duration` longer than 3 years.
- The duration and the rollover use different units, such as months and weeks, and the total is close to 3 years. When the units differ, each month counts as 31 days and each year as 366 days, so a total a few days under 3 years can still be rejected.

## Common solutions

- Shorten `grant.rollover` so that the duration plus the rollover is 3 years or less. On an annual price, that's at most `{ "interval": "year", "frequency": 2 }`.
- Omit `grant.rollover`, or set it to `null`, so credit expires when its duration ends.
- On a price with no `billing_cycle`, shorten `grant.duration` to 3 years or less, for example `{ "interval": "month", "frequency": 36 }`.
