If you are a PC 2.0 user, Click here
To enable metered billing on your Chargebee site, follow these steps:
Click Settings > Configure Chargebee > Billing LogIQ.
In the Billing LogIQ settings, select Notify and wait to close Invoices.
Select the Invoice date that you want to display to your customers. You can select either the Invoice closing date or the Invoice generation date.
- Date of closing invoice: The date when you close the invoice(via API or UI) to add all the metered charges.
- Date of invoice generation: The date when the subscription is renewed and the invoice gets generated in pending status.
Click Update Billing LogIQ.
Metered Billing via API
When Metered Billing is enabled, Chargebee will create a pending invoice and a pending_invoice_created event will be triggered during one of these 2 conditions:
Plan changes (upgrade/downgrade or quantity changes) in the subscription
You will receive generated invoices in your webhook handler, and after receiving the invoice, you can use the ID of the invoice resource to add the usage charges to the invoice received.
The invoice number of a pending invoice will not be taken from the main sequence. A temporary invoice number in the ‘draft_inv_' format will be assigned to it.