Introducing the Better Auth Chargebee plugin: Use it to handle subscriptions, billing, and auth seamlessly.Try now
ChargebeechargebeeAPI

Usage summary

Usage summary represents aggregated usage data for a metered feature in a subscription over a specific reporting period. The aggregation is performed based on the aggregation method configured in Billing.

Use this resource to analyze feature-level usage for reporting or analytics purposes, independent of usage billing or invoicing.

Sample Usage summaryJSON

API Index URL

https://[site].chargebee.com/api/v2/usage_summary

Usage summary attributes

subscription_id
required, string, max chars=50

The unique identifier of the subscription for which usage is reported.

feature_id
required, string, max chars=100

The unique identifier of the metered feature for which usage is aggregated.

aggregated_value
required, string, max chars=33

The total usage aggregated over the reporting window defined by aggregated_from and aggregated_to. The aggregation is performed based on the aggregation method configured in Billing.

aggregated_from
required, timestamp(UTC) in seconds

The start timestamp (inclusive) of the aggregation window in UTC.

aggregated_to
required, timestamp(UTC) in seconds

The end timestamp (exclusive) of the aggregation window in UTC.