For the specified subscription item, returns a list of summary objects. Each object in the list provides usage information that’s been summarized from multiple usage records and over a subscription billing period (e.g., 15 usage records in the month of September).
The list is sorted in reverse-chronological order (newest first). The first list item represents the most current usage period that hasn’t ended yet. Since new usage records can still be added, the returned summary information for the subscription item’s ID should be seen as unstable until the subscription billing period ends.
Parameters
No parameters.
More parameters
- ending_
beforestring A cursor for use in pagination.
ending_is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting withbefore obj_, your subsequent call can includebar ending_in order to fetch the previous page of the list.before=obj_ bar - limitinteger
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
- starting_
afterstring A cursor for use in pagination.
starting_is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending withafter obj_, your subsequent call can includefoo starting_in order to fetch the next page of the list.after=obj_ foo
Returns
A dictionary with a data property that contains an array of up to limit summaries, starting after summary starting_. Each entry in the array is a separate summary object. If no more summaries are available, the resulting array is empty.
{ "object": "list", "url": "/v1/subscription_items/si_E9xjsAhGRXCCWe/usage_record_summaries", "has_more": false, "data": [ { "object": "list", "url": "/v1/subscription_items/si_E9xjsAhGRXCCWe/usage_record_summaries", "has_more": false, "data": [ { "id": "sis_1Bnyrd2eZvKYlo2CuVcUbXln", "object": "usage_record_summary", "invoice": "in_1Bnyrd2eZvKYlo2CSV57GLV8", "livemode": false, "period": { "end": 1711987200, "start": 1709312400 }, "subscription_item": "si_18UXa82eZvKYlo2CbYoIEZVv", "total_usage": 1 } ] } ]}