Retrieve granular time-series breakdowns of invoice data at hourly or daily intervals. This endpoint transforms standard invoices into detailed timelines, enabling you to track usage patterns, identify consumption spikes, and provide customers with transparency into their billing details throughout the billing period.
An array of BreakdownInvoice objects, each containing:
breakdown_start_timestamp
: Start of the specific time windowbreakdown_end_timestamp
: End of the specific time windownext_page
: Pagination cursor for large result setswindow_size
to hour or day based on your analysis needsstarting_on
and ending_before
to focus on specific periodsskip_zero_qty_line_items=true
to exclude periods with no usageBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Cursor that indicates where the next page of results should start.
Invoice status, e.g. DRAFT or FINALIZED
If set, all zero quantity line items will be filtered out of the response
Max number of results that should be returned. For daily breakdowns, the response can return up to 35 days worth of breakdowns. For hourly breakdowns, the response can return up to 24 hours. If there are more results, a cursor to the next page is returned.
1 <= x <= 100
The granularity of the breakdowns to return. Defaults to day.
hour
, day
, HOUR
, DAY
, Hour
, Day
Invoice sort order by issued_at, e.g. date_asc or date_desc. Defaults to date_asc.
date_asc
, date_desc
Only return invoices for the specified credit type
RFC 3339 timestamp. Breakdowns will only be returned for time windows that start on or after this time.
RFC 3339 timestamp. Breakdowns will only be returned for time windows that end on or before this time.
Success
The response is of type object
.