Introducing the Chargebee CLI

Sync usages

Open in Postman

Updates the quantity for metered line_items of an invoice to reflect the latest usage data. Note: This operation is done automatically while closing the invoice.

Sample Request

Open in Postman

Sample Result[JSON]

URL Format

POST https://[site].chargebee.com/api/v2/invoices/{invoice-id}/sync_usages

Returns

Invoice object

Resource object representing invoice