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

# One-off price allowance has no duration

An allowance on a price with no `billing_cycle` needs `grant.duration`, which sets how long the credit lasts after purchase.

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

---

## Example

```json
{
  "error": {
    "type": "request_error",
    "code": "price_allowance_grant_duration_required_for_one_off_price",
    "detail": "allowance for usage balance unit ubu_01kw8ta2j8x5t7q4v9m1kd6phz is on a price with no billing_cycle, so grant.duration is required",
    "documentation_url": "https://developer.paddle.com/errors/prices/price_allowance_grant_duration_required_for_one_off_price"
  },
  "meta": {
    "request_id": "00000000-0000-0000-0000-000000000000"
  }
}
```

## Details

| Attribute | Value |
| --- | --- |
| Status code | 400 |
| Error code | `price_allowance_grant_duration_required_for_one_off_price` |
| Error message | allowance for usage balance unit %s is on a price with no billing_cycle, so grant.duration is required |

## Common causes

- An entry in `allowances` on a price with no `billing_cycle` omits `grant`, or omits `grant.duration` or sets it to `null`.
- The request sets `billing_cycle` to `null` on a price whose allowances have no `grant.duration`.

## Common solutions

- Set `grant.duration` on each allowance to how long the credit lasts after purchase, for example `{ "interval": "year", "frequency": 1 }`. It can be at most 3 years.
- To make the price recurring instead, set a `billing_cycle`.
