Usage charges expose the current, unbilled usage charges for metered features in a subscription during its ongoing usage period. Use this resource to track how much usage a subscription has accumulated so far and to understand any usage that exceeds the included entitlement.
A usage charge is calculated per metered feature and reflects usage recorded from the start of the current usage period up to the present.
Each usage charge includes:
- The metered feature being measured (feature_id)
- The usage included as part of the subscription entitlement for the current period (
included_usage) - The total usage accumulated so far in the current period (
total_usage) - Details of chargeable usage beyond the included limit, such as on-demand usage, pricing, and charge amount (
on_demand_usage,metered_item_price_id, andamount) - The usage window (
usage_fromandusage_to) used to compute the accumulated usage
Sample Usage chargeJSON
API Index URL
Usage charges attributes
Unique identifier of the feature for which usage is tracked.
Usage included in the subscription entitlement for the current usage period.
Identifier of the metered item price used to calculate overage charges. Returned only when amount exists.
ISO currency code in which the overage charges are computed. Returned only when amount exists.
Start timestamp of the usage window used to compute the accumulated total_usage for the feature.
End timestamp of the usage window used to compute the accumulated total_usage for the feature.