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

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.

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

Troubleshooting

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

Was this page helpful?