Idempotency Supported
Try in API ExplorerThis endpoint is used when metered billing is enabled and it adds a charge-item price to a pending invoice. To collect the accumulated charges by closing the invoice, call Close a pending invoice.
Sample Request
URL Format
POST https://[site].chargebee.com/api/v2/invoices/{invoice-id}/add_charge_item
Input Parameters
optional, string, max chars=300
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 .
optional, string, max chars=50
Identifier of the subscription for which this addon needs to be created. Applicable for consolidated invoice.
Returns
invoiceInvoice object
Resource object representing invoice