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 subscription to which the usage charge applies.
Unique identifier of the feature for which usage is tracked.
Usage included in the subscription entitlement for the current usage period.
Total usage accumulated so far for the feature in the current usage period.
Usage beyond the included entitlement for the current usage period. Returned only when overages exist.
Identifier of the metered item price used to calculate overage charges. Returned only when amount exists.
Current overage charge computed from usage recorded so far, in major units of the currency. This value can change until the usage period ends. 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.