Costs

Get combined revenue and cost analytics (V2)

Use when you need the same revenue/cost/ROI analytics but computed from the costsheet usage-tracking pipeline (e.g. for consistency with usage-based cost data).

post/costs/analytics-v2

Request body

end_timestring
expandstring[]

Expand options - specify which entities to expand

external_customer_idstring

Optional - for specific customer

feature_idsstring[]

Additional filters

limitinteger

Pagination

offsetinteger
start_timestring

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

Response

OK

currencystring
end_timestring
marginstring

Revenue - Cost

margin_percentstring

(Margin / Revenue) * 100

roistring

(Revenue - Cost) / Cost

roi_percentstring

ROI * 100

start_timestring
total_coststring
total_revenuestring

Derived metrics

Changes