List invoice breakdowns
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.
Use this endpoint to:
- Build usage analytics dashboards showing daily or hourly consumption trends
- Identify peak usage periods for capacity planning and cost optimization
- Generate detailed billing reports for finance teams and customer success
- Troubleshoot billing disputes by examining usage patterns at specific times
- Power real-time cost monitoring and alerting systems
Key response fields:
An array of BreakdownInvoice objects, each containing:
- All standard invoice fields (ID, customer, commit, line items, totals, status)
- Line items with quantities and costs for that specific period
breakdown_start_timestamp: Start of the specific time windowbreakdown_end_timestamp: End of the specific time windownext_page: Pagination cursor for large result sets
Usage guidelines:
- Time granularity: Set
window_sizeto hour or day based on your analysis needs - Response limits: Daily breakdowns return up to 35 days; hourly breakdowns return up to 24 hours per request
- Date filtering: Use
starting_onandending_beforeto focus on specific periods - Performance: For large date ranges, use pagination to retrieve all data efficiently
- Backdated usage: If usage events arrive after invoice finalization, breakdowns will reflect the updated usage
- Zero quantity filtering: Use
skip_zero_qty_line_items=trueto exclude periods with no usage
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Query Parameters
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 <= 100The 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.