Get campaign performance report
const 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';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”The bucket size of a report’s time series.
Header Parameters
Section titled “Header Parameters”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.
Responses
Section titled “Responses”OK
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
One row per campaign (soft-deleted campaigns included, flagged), highest issued count first.
One campaign’s performance over the range.
object
Null on the Unattributed row.
True when the campaign is enabled and inside its window at generation time.
True when the campaign has been deleted; its history stays visible.
Entitlements issued in the range whose acquisition attribution is this campaign.
Issued count per bucket, oldest first, bucketed by the requested period.
One bucket of a count time series.
object
Start of the bucket (UTC).
Entitlements attributed to this campaign that are currently active.
Of the issued cohort, entitlements that carried a trial policy.
Of the issued cohort, trials whose window has elapsed while the entitlement stayed published.
Temporary plan overrides applied under this campaign within the range.
Add-on grants made under this campaign within the range.
Attributed MRR of the currently active entitlements, grouped per currency.
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
The amount, as a decimal number in the currency’s major unit (49.00 is forty-nine euros).
The ISO 4217 code of the currency, upper-case (for example EUR).
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.
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.
Active attributed entitlements counted into RelativeRevenue.
Active attributed entitlements on plans that capture nothing — priced 0, or weighted 0 in relative units.
Active attributed entitlements whose plan has no price, no weight, or could not be resolved — excluded from both revenue figures, not counted as free.
Entitlements with no acquisition attribution; CampaignId is null on this row.
object
Null on the Unattributed row.
True when the campaign is enabled and inside its window at generation time.
True when the campaign has been deleted; its history stays visible.
Entitlements issued in the range whose acquisition attribution is this campaign.
Issued count per bucket, oldest first, bucketed by the requested period.
One bucket of a count time series.
object
Start of the bucket (UTC).
Entitlements attributed to this campaign that are currently active.
Of the issued cohort, entitlements that carried a trial policy.
Of the issued cohort, trials whose window has elapsed while the entitlement stayed published.
Temporary plan overrides applied under this campaign within the range.
Add-on grants made under this campaign within the range.
Attributed MRR of the currently active entitlements, grouped per currency.
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
The amount, as a decimal number in the currency’s major unit (49.00 is forty-nine euros).
The ISO 4217 code of the currency, upper-case (for example EUR).
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.
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.
Active attributed entitlements counted into RelativeRevenue.
Active attributed entitlements on plans that capture nothing — priced 0, or weighted 0 in relative units.
Active attributed entitlements whose plan has no price, no weight, or could not be resolved — excluded from both revenue figures, not counted as free.
Attributed MRR across all campaigns, grouped per currency.
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
The amount, as a decimal number in the currency’s major unit (49.00 is forty-nine euros).
The ISO 4217 code of the currency, upper-case (for example EUR).
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.
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.
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}Headers
Section titled “Headers”The correlation id of the call: the one you sent, or the one the server made.
Bad Request
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
A reference to the code’s entry on the error-codes page.
A short summary of the problem.
The HTTP status of the answer.
What went wrong in this call, in a sentence.
The path of the call.
The stable numeric error code. The error-codes page lists them.
The stable name of the error code, for example resource.not_found.
The id of the call in the server log. Quote it when you contact support. It equals the X-Correlation-Id of the answer.
The scope or condition the caller is missing, on a refusal that names one.
The limiter that shed the call, on a 429.
On a validation failure, the messages for each field, keyed by the field’s name.
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example", "code": 1, "codeName": "example", "traceId": "example", "requires": "example", "scope": "example", "errors": "example"}Headers
Section titled “Headers”The correlation id of the call: the one you sent, or the one the server made.
Unauthorized
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
A reference to the code’s entry on the error-codes page.
A short summary of the problem.
The HTTP status of the answer.
What went wrong in this call, in a sentence.
The path of the call.
The stable numeric error code. The error-codes page lists them.
The stable name of the error code, for example resource.not_found.
The id of the call in the server log. Quote it when you contact support. It equals the X-Correlation-Id of the answer.
The scope or condition the caller is missing, on a refusal that names one.
The limiter that shed the call, on a 429.
On a validation failure, the messages for each field, keyed by the field’s name.
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example", "code": 1, "codeName": "example", "traceId": "example", "requires": "example", "scope": "example", "errors": "example"}Headers
Section titled “Headers”The correlation id of the call: the one you sent, or the one the server made.
How to authenticate: the bearer challenge.
Forbidden
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
A reference to the code’s entry on the error-codes page.
A short summary of the problem.
The HTTP status of the answer.
What went wrong in this call, in a sentence.
The path of the call.
The stable numeric error code. The error-codes page lists them.
The stable name of the error code, for example resource.not_found.
The id of the call in the server log. Quote it when you contact support. It equals the X-Correlation-Id of the answer.
The scope or condition the caller is missing, on a refusal that names one.
The limiter that shed the call, on a 429.
On a validation failure, the messages for each field, keyed by the field’s name.
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example", "code": 1, "codeName": "example", "traceId": "example", "requires": "example", "scope": "example", "errors": "example"}Headers
Section titled “Headers”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).
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
A reference to the code’s entry on the error-codes page.
A short summary of the problem.
The HTTP status of the answer.
What went wrong in this call, in a sentence.
The path of the call.
The stable numeric error code. The error-codes page lists them.
The stable name of the error code, for example resource.not_found.
The id of the call in the server log. Quote it when you contact support. It equals the X-Correlation-Id of the answer.
The scope or condition the caller is missing, on a refusal that names one.
The limiter that shed the call, on a 429.
On a validation failure, the messages for each field, keyed by the field’s name.
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example", "code": 1, "codeName": "example", "traceId": "example", "requires": "example", "scope": "example", "errors": "example"}Headers
Section titled “Headers”The correlation id of the call: the one you sent, or the one the server made.
The seconds to wait before the call is sent again.
The calls the limiter allows in its window, when it knows.
The calls left in the window, when the limiter knows.
The seconds until the window resets, when the limiter knows.
Names the limiter that shed the call.