ChargebeeAPI

Add a charge-item to a pending invoice

Idempotency Supported
Try in API Explorer

This 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

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

subscription_id
optional, string, max chars=50

Identifier of the subscription for which this addon needs to be created. Applicable for consolidated invoice.

item_price

Object of parameters for item_price

item_tiers

Array containing object of parameters for item_tiers

Returns

invoiceInvoice object

Resource object representing invoice