Skip to content

Windowed 30/60/90-day CFO-eyes ROI rollup with drill-down

GET
/api/v1/attribution/roi-rollup

Return the windowed rollup + per-decision drill-down (OAV-04).

Tenant-isolated via UserContext.tenant_id. The summary totals equal the sum of decisions[].weighted_revenue_cents within +/-1 cent (integer rounding) — the OAV-04 success criterion.

Returns 422 for any window not in {30, 60, 90}. Returns 200 with a zeroed summary and empty decisions list for tenants with no attribution data in the window (not 404 — empty is a valid shape).

Authorizations

Parameters

Query Parameters

window
required

Rollup window in days: 30, 60, or 90

integer

Rollup window in days: 30, 60, or 90

Responses

200

Successful Response

object
key
additional properties
any

422

Validation Error

object
detail
Array<object>
object
ctx
object
input
loc
required
Array
msg
required
string
type
required
string