Introducing the Better Auth Chargebee plugin: Use it to handle subscriptions, billing, and auth seamlessly.
Chargebeechargebee API

Sync usages

Idempotency Supported

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

Sample Result[JSON]

URL Format

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

Returns

Invoice object
Resource object representing invoice