Retrieves the list of usages.
Sample Request
Sample Result[JSON]
URL Format
Input Parameters
optional, string filter
Sorts based on the specified attribute. Supported attributes : usage_date
Supported sort-orders : asc, desc
Example → sort_by[asc] = "usage_date"
This will sort the result based on the 'usage_date' attribute in ascending(earliest first) order.
Filter Params
optional, string filter
The id of the subscription to which this usage record belongs. Supported operators : is, is_not, starts_with
Example → subscription_id[is] = "active2"
active2optional, timestamp(UTC) in seconds filter
The time at which this usage occurred. Chargebee bills only those usages whose
usage_date
falls within a time when the subscription status
was active
or non_renewing.
However, the remaining usage records are still stored and are
retrievable.
Note:
If usage_date
corresponds to a time already invoiced, then it is stored but never invoiced unless the invoice is regenerated
.
Supported operators :
after, before, on, between
Example → usage_date[after] = "1601220958"
1601220958optional, string filter
The id of the item price to which this usage belongs. The item price must be a part of the subscription or should have been part of it historically. Supported operators : is, is_not, starts_with
Example → item_price_id[is] = "sprout"
sproutoptional, string filter
When the usage has been invoiced, this is the id
of the invoice.
This is cleared when the invoice is voided
or deleted.
Supported operators :
is, is_not, starts_with, is_present
Example → invoice_id[is] = "null"
Returns
This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter offset.