Costs

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).

post/costs/analytics

Request body

end_timestring date-time
expandstring[]

Expand options - specify which entities to expand

external_customer_idstring

Optional - for specific customer

feature_idsstring[]

Additional filters

limitinteger

Pagination

offsetinteger
start_timestring date-time

Time range fields (optional - defaults to last 7 days if not provided)

Response

OK

currencystring
end_timestring date-time
marginstring

Revenue - Cost

margin_percentstring

(Margin / Revenue) * 100

roistring

(Revenue - Cost) / Cost

roi_percentstring

ROI * 100

start_timestring date-time
total_coststring
total_revenuestring

Derived metrics

Changes