Invoices for a subscription are created with a pending status when the subscription has create_pending_invoices attribute set to true. This API call finalizes a pending invoice. Any refundable_credits and excess_payments for the customer are applied to the invoice, and any payment due is collected automatically if auto_collection is on for the customer.
Automation
This operation can be automated by using a site setting. Moreover, the automation can be overridden at the customer and subscription level.
Sample Request
URL Format
Input Parameters
An internal comment to be added for this operation, to the invoice. This comment is displayed on the Chargebee UI. It is not displayed on any customer-facing Hosted Page or any document such as the Invoice PDF .
A note for this particular invoice. This, and all other notes for the invoice are displayed on the PDF invoice sent to the customer.
Set as true
to remove the general note
from this invoice.
Set the invoice date. Must lie between the date when the invoice was generated and current date. Can only be passed when the site setting to allow overriding is enabled. If not passed, then the default value set at the site level is used.
Returns
Resource object representing invoice