Skip to content
Oclavex is in private preview, open to existing MonetizeIt users. New users who would like to evaluate Oclavex before the public launch can request access at info@revenusion.com.

Get campaign performance report

GET
/api/v1/provision/admin/reports/campaign-performance
curl --request GET \
--url 'https://example.com/api/v1/provision/admin/reports/campaign-performance?from=2026-04-15T12%3A00%3A00Z&to=2026-04-15T12%3A00%3A00Z&period=Day' \
--header 'Authorization: Bearer <token>'

Returns campaign performance over a range: entitlements issued, current activity, trial conversions, promotion touches, and attributed MRR per campaign. Revenue is first-touch attributed and reported per currency; amounts in different currencies are never summed.

  • oidc
    provision.campaign.read
from
required
string format: date-time
to
required
string format: date-time
period

The bucket size of a report’s time series.

default: Day
Allowed values: Day Week Month
X-Correlation-Id
string

An id of your own for the call. The answer returns it in the same header, and the server log carries it; when you send none, the server makes one.

OK

Media typeapplication/json

Campaign performance over a time range: entitlements issued, current activity, trial conversions, promotion touches, and attributed monthly recurring revenue per campaign. Revenue follows first-touch attribution (each entitlement’s earliest Issuance/Manual touch), so no entitlement is counted under two campaigns. Amounts are reported per currency and are never summed across currencies. Plans priced in relative units are reported apart from money again, as a share of the total rather than an amount.

object
generatedAt
required
string format: date-time
rows
required

One row per campaign (soft-deleted campaigns included, flagged), highest issued count first.

Array<object>

One campaign’s performance over the range.

object
campaignId
required

Null on the Unattributed row.

null | string format: uuid
name
required
string
code
required
string
isRunning
required

True when the campaign is enabled and inside its window at generation time.

boolean
isDeleted
required

True when the campaign has been deleted; its history stays visible.

boolean
entitlementsIssued
required

Entitlements issued in the range whose acquisition attribution is this campaign.

integer format: int32
issuedSeries
required

Issued count per bucket, oldest first, bucketed by the requested period.

Array<object>

One bucket of a count time series.

object
startsAt
required

Start of the bucket (UTC).

string format: date-time
count
required
integer format: int32
currentlyActive
required

Entitlements attributed to this campaign that are currently active.

integer format: int32
trialsStarted
required

Of the issued cohort, entitlements that carried a trial policy.

integer format: int32
trialsConverted
required

Of the issued cohort, trials whose window has elapsed while the entitlement stayed published.

integer format: int32
planOverrideTouches
required

Temporary plan overrides applied under this campaign within the range.

integer format: int32
addOnGrantTouches
required

Add-on grants made under this campaign within the range.

integer format: int32
mrrByCurrency
required

Attributed MRR of the currently active entitlements, grouped per currency.

Array<object>

An amount of money in one currency. Every money value on the Oclavex wire has this shape, under a name that says what the money is: "monthlyPrice": { "amount": 49.00, "currency": "EUR" }.

object
amount

The amount, as a decimal number in the currency’s major unit (49.00 is forty-nine euros).

number format: decimal
currency

The ISO 4217 code of the currency, upper-case (for example EUR).

string
relativeRevenue
required

Attributed relative revenue of the currently active entitlements on relative-priced plans: the sum of the weights their plans carry. Unitless — never rendered as money, and never added to a currency amount.

number format: decimal
relativeRevenueSharePercent
required

This row’s share of the report’s totalRelativeRevenue, as a percentage. Computed at report time rather than keyed in, so the shares add up to exactly 100.00 on their own (the 2-decimal rounding apportions the remainder to the largest fractions) and survive plans being added or removed. Zero when the report carries no relative revenue.

number format: decimal
relativeActiveCount
required

Active attributed entitlements counted into RelativeRevenue.

integer format: int32
freeActiveCount
required

Active attributed entitlements on plans that capture nothing — priced 0, or weighted 0 in relative units.

integer format: int32
unpricedActiveCount
required

Active attributed entitlements whose plan has no price, no weight, or could not be resolved — excluded from both revenue figures, not counted as free.

integer format: int32
unattributed
required

Entitlements with no acquisition attribution; CampaignId is null on this row.

object
campaignId
required

Null on the Unattributed row.

null | string format: uuid
name
required
string
code
required
string
isRunning
required

True when the campaign is enabled and inside its window at generation time.

boolean
isDeleted
required

True when the campaign has been deleted; its history stays visible.

boolean
entitlementsIssued
required

Entitlements issued in the range whose acquisition attribution is this campaign.

integer format: int32
issuedSeries
required

Issued count per bucket, oldest first, bucketed by the requested period.

Array<object>

One bucket of a count time series.

object
startsAt
required

Start of the bucket (UTC).

string format: date-time
count
required
integer format: int32
currentlyActive
required

Entitlements attributed to this campaign that are currently active.

integer format: int32
trialsStarted
required

Of the issued cohort, entitlements that carried a trial policy.

integer format: int32
trialsConverted
required

Of the issued cohort, trials whose window has elapsed while the entitlement stayed published.

integer format: int32
planOverrideTouches
required

Temporary plan overrides applied under this campaign within the range.

integer format: int32
addOnGrantTouches
required

Add-on grants made under this campaign within the range.

integer format: int32
mrrByCurrency
required

Attributed MRR of the currently active entitlements, grouped per currency.

Array<object>

An amount of money in one currency. Every money value on the Oclavex wire has this shape, under a name that says what the money is: "monthlyPrice": { "amount": 49.00, "currency": "EUR" }.

object
amount

The amount, as a decimal number in the currency’s major unit (49.00 is forty-nine euros).

number format: decimal
currency

The ISO 4217 code of the currency, upper-case (for example EUR).

string
relativeRevenue
required

Attributed relative revenue of the currently active entitlements on relative-priced plans: the sum of the weights their plans carry. Unitless — never rendered as money, and never added to a currency amount.

number format: decimal
relativeRevenueSharePercent
required

This row’s share of the report’s totalRelativeRevenue, as a percentage. Computed at report time rather than keyed in, so the shares add up to exactly 100.00 on their own (the 2-decimal rounding apportions the remainder to the largest fractions) and survive plans being added or removed. Zero when the report carries no relative revenue.

number format: decimal
relativeActiveCount
required

Active attributed entitlements counted into RelativeRevenue.

integer format: int32
freeActiveCount
required

Active attributed entitlements on plans that capture nothing — priced 0, or weighted 0 in relative units.

integer format: int32
unpricedActiveCount
required

Active attributed entitlements whose plan has no price, no weight, or could not be resolved — excluded from both revenue figures, not counted as free.

integer format: int32
totalsByCurrency
required

Attributed MRR across all campaigns, grouped per currency.

Array<object>

An amount of money in one currency. Every money value on the Oclavex wire has this shape, under a name that says what the money is: "monthlyPrice": { "amount": 49.00, "currency": "EUR" }.

object
amount

The amount, as a decimal number in the currency’s major unit (49.00 is forty-nine euros).

number format: decimal
currency

The ISO 4217 code of the currency, upper-case (for example EUR).

string
totalRelativeRevenue
required

Relative revenue across all campaigns and the Unattributed row — the denominator every row’s RelativeRevenueSharePercent is taken against. Unitless weights, so it belongs in no currency and must never be shown as an amount.

number format: decimal
mixesPricingModes
required

True when this report draws on both money-priced and relative-priced plans. The two are different units: display them apart, and never add or compare them.

boolean
Examplegenerated
{
"generatedAt": "2026-04-15T12:00:00Z",
"rows": [
{
"campaignId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"name": "example",
"code": "example",
"isRunning": true,
"isDeleted": true,
"entitlementsIssued": 1,
"issuedSeries": [
{
"startsAt": "2026-04-15T12:00:00Z",
"count": 1
}
],
"currentlyActive": 1,
"trialsStarted": 1,
"trialsConverted": 1,
"planOverrideTouches": 1,
"addOnGrantTouches": 1,
"mrrByCurrency": [
{
"amount": 1,
"currency": "example"
}
],
"relativeRevenue": 1,
"relativeRevenueSharePercent": 1,
"relativeActiveCount": 1,
"freeActiveCount": 1,
"unpricedActiveCount": 1
}
],
"unattributed": {
"campaignId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"name": "example",
"code": "example",
"isRunning": true,
"isDeleted": true,
"entitlementsIssued": 1,
"issuedSeries": [
{
"startsAt": "2026-04-15T12:00:00Z",
"count": 1
}
],
"currentlyActive": 1,
"trialsStarted": 1,
"trialsConverted": 1,
"planOverrideTouches": 1,
"addOnGrantTouches": 1,
"mrrByCurrency": [
{
"amount": 1,
"currency": "example"
}
],
"relativeRevenue": 1,
"relativeRevenueSharePercent": 1,
"relativeActiveCount": 1,
"freeActiveCount": 1,
"unpricedActiveCount": 1
},
"totalsByCurrency": [
{
"amount": 1,
"currency": "example"
}
],
"totalRelativeRevenue": 1,
"mixesPricingModes": true
}
X-Correlation-Id
string

The correlation id of the call: the one you sent, or the one the server made.

Bad Request

Media typeapplication/problem+json

The body of every failed call, served as application/problem+json (RFC 9457) with the members the platform adds: a numeric code, a codeName and a traceId.

object
type

A reference to the code’s entry on the error-codes page.

string
title

A short summary of the problem.

string
status
required

The HTTP status of the answer.

integer format: int32
detail

What went wrong in this call, in a sentence.

string
instance

The path of the call.

string
code
required

The stable numeric error code. The error-codes page lists them.

integer format: int32
codeName
required

The stable name of the error code, for example resource.not_found.

string
traceId
required

The id of the call in the server log. Quote it when you contact support. It equals the X-Correlation-Id of the answer.

string
requires

The scope or condition the caller is missing, on a refusal that names one.

null | string
scope

The limiter that shed the call, on a 429.

null | string
errors

On a validation failure, the messages for each field, keyed by the field’s name.

null | object
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example",
"code": 1,
"codeName": "example",
"traceId": "example",
"requires": "example",
"scope": "example",
"errors": "example"
}
X-Correlation-Id
string

The correlation id of the call: the one you sent, or the one the server made.

Unauthorized

Media typeapplication/problem+json

The body of every failed call, served as application/problem+json (RFC 9457) with the members the platform adds: a numeric code, a codeName and a traceId.

object
type

A reference to the code’s entry on the error-codes page.

string
title

A short summary of the problem.

string
status
required

The HTTP status of the answer.

integer format: int32
detail

What went wrong in this call, in a sentence.

string
instance

The path of the call.

string
code
required

The stable numeric error code. The error-codes page lists them.

integer format: int32
codeName
required

The stable name of the error code, for example resource.not_found.

string
traceId
required

The id of the call in the server log. Quote it when you contact support. It equals the X-Correlation-Id of the answer.

string
requires

The scope or condition the caller is missing, on a refusal that names one.

null | string
scope

The limiter that shed the call, on a 429.

null | string
errors

On a validation failure, the messages for each field, keyed by the field’s name.

null | object
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example",
"code": 1,
"codeName": "example",
"traceId": "example",
"requires": "example",
"scope": "example",
"errors": "example"
}
X-Correlation-Id
string

The correlation id of the call: the one you sent, or the one the server made.

WWW-Authenticate
string

How to authenticate: the bearer challenge.

Forbidden

Media typeapplication/problem+json

The body of every failed call, served as application/problem+json (RFC 9457) with the members the platform adds: a numeric code, a codeName and a traceId.

object
type

A reference to the code’s entry on the error-codes page.

string
title

A short summary of the problem.

string
status
required

The HTTP status of the answer.

integer format: int32
detail

What went wrong in this call, in a sentence.

string
instance

The path of the call.

string
code
required

The stable numeric error code. The error-codes page lists them.

integer format: int32
codeName
required

The stable name of the error code, for example resource.not_found.

string
traceId
required

The id of the call in the server log. Quote it when you contact support. It equals the X-Correlation-Id of the answer.

string
requires

The scope or condition the caller is missing, on a refusal that names one.

null | string
scope

The limiter that shed the call, on a 429.

null | string
errors

On a validation failure, the messages for each field, keyed by the field’s name.

null | object
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example",
"code": 1,
"codeName": "example",
"traceId": "example",
"requires": "example",
"scope": "example",
"errors": "example"
}
X-Correlation-Id
string

The correlation id of the call: the one you sent, or the one the server made.

Too many requests. Wait the seconds in Retry-After, then send the call again (service.too-many-requests).

Media typeapplication/problem+json

The body of every failed call, served as application/problem+json (RFC 9457) with the members the platform adds: a numeric code, a codeName and a traceId.

object
type

A reference to the code’s entry on the error-codes page.

string
title

A short summary of the problem.

string
status
required

The HTTP status of the answer.

integer format: int32
detail

What went wrong in this call, in a sentence.

string
instance

The path of the call.

string
code
required

The stable numeric error code. The error-codes page lists them.

integer format: int32
codeName
required

The stable name of the error code, for example resource.not_found.

string
traceId
required

The id of the call in the server log. Quote it when you contact support. It equals the X-Correlation-Id of the answer.

string
requires

The scope or condition the caller is missing, on a refusal that names one.

null | string
scope

The limiter that shed the call, on a 429.

null | string
errors

On a validation failure, the messages for each field, keyed by the field’s name.

null | object
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example",
"code": 1,
"codeName": "example",
"traceId": "example",
"requires": "example",
"scope": "example",
"errors": "example"
}
X-Correlation-Id
string

The correlation id of the call: the one you sent, or the one the server made.

Retry-After
integer

The seconds to wait before the call is sent again.

X-RateLimit-Limit
integer

The calls the limiter allows in its window, when it knows.

X-RateLimit-Remaining
integer

The calls left in the window, when the limiter knows.

X-RateLimit-Reset
integer

The seconds until the window resets, when the limiter knows.

X-RateLimit-Scope
string

Names the limiter that shed the call.