For AI agents and LLMs: a structured documentation index is available at /llms.txt. Every page has a Markdown sibling — append .md to any URL. 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.

Skip to content
Paddle Docs home

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.

Join usage-based billing early access (beta)

Usage-based billing is in early access (beta). Read how it works, then apply to join. We'll reach out if you meet the program requirements.

Example response
{
"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

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.

Troubleshooting

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

Was this page helpful?