Get combined revenue and cost analytics
Use when building dashboards or reports that need revenue vs cost, ROI, and margin over a time period (e.g. finance views or executive summaries).
Documentation Index
Fetch the complete documentation index at: https://docs.flexprice.io/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Enter your API key in the format x-api-key <api-key>*
Body
Combined analytics request (start_time/end_time optional - defaults to last 7 days)
Expand options - specify which entities to expand
Optional - for specific customer
Additional filters
Pagination
Time range fields (optional - defaults to last 7 days if not provided)
Response
OK
Cost analytics array (flattened from nested structure)
Revenue - Cost
(Margin / Revenue) * 100
(Revenue - Cost) / Cost
ROI * 100
Derived metrics

