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_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
- 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
allowanceson a price with nobilling_cycleomitsgrant, or omitsgrant.durationor sets it tonull. - The request sets
billing_cycletonullon a price whose allowances have nogrant.duration.
Troubleshooting
- Set
grant.durationon 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.