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.
{ "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
allowanceshas agrant.rolloverthat, added to the grant duration (the price'sbilling_cyclewhilegrant.durationisnull), is longer than 3 years. - An entry in
allowanceson a price with nobilling_cyclehas agrant.durationlonger 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.rolloverso 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 tonull, so credit expires when its duration ends. - On a price with no
billing_cycle, shortengrant.durationto 3 years or less, for example{ "interval": "month", "frequency": 36 }.