Docs

Log into read the version of docs relevant to your site.

Unable to regenerate pending invoice

Problem Statement

In Chargebee, if an invoice contains only metered items and the first invoice is generated in Pending status, there is a limitation when you try to delete or void it. Once deleted or voided, it cannot be regenerated via the UI or API.

Why this happens:

  • Metered items — Usage-based items (for example, data consumption, number of transactions) that accumulate over time and are billed at the end of a billing period.
  • Pending status — The invoice is created but not yet finalized or paid. If deleted or voided in this state, it cannot be regenerated because it is tied to the usage data of the previous term.

Solution

To work around this limitation and regenerate the invoice, add a non-metered item to the subscription. This can be any item that is not usage-based, such as a fixed-price add-on or a one-time fee.

Configuration steps

  1. Add a non-metered item — Create a non-metered add-on (such as a fixed-price charge or setup fee). The amount can be set to $0.
  2. Hide zero-value items — After adding the $0 non-metered item, hide items with zero value from the invoice. Go to Settings > Configure Chargebee > Billing LogIQ > Zero Value Line Items.
  1. Regenerate the invoice — After making these changes, you can regenerate the invoice from the UI.

Was this article helpful?