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 usage overview

GET
/api/v1/provision/admin/entitlements/{entitlementId}/usage-overview
curl --request GET \
--url https://example.com/api/v1/provision/admin/entitlements/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/usage-overview \
--header 'Authorization: Bearer <token>'

Returns a usage overview (per-metric consumption, period state) for the entitlement.

  • oidc
    provision.entitlement.read
entitlementId
required
string format: uuid

Entitlement id.

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

Admin read model that explains an entitlement’s effective usage configuration: the plan in effect, active add-on grants, and the per-feature value resolution.

object
planSource
required

Where the plan in effect comes from: "Assigned plan" or "Temporary override".

string
planSetId
required
null | string format: uuid
planSetName
required
null | string
planName
required
null | string
addOnGrants
required
Array<object>

An add-on grant on an entitlement as returned by the admin API, denormalized with the add-on and suite display fields.

object
id
required
string format: uuid
addOnId
required
string format: uuid
addOnCode
required
string
addOnName
required
string
suiteId
required

The suite this add-on overlays.

string format: uuid
suiteName
required

Display name of that suite.

string
startsAt
required
string format: date-time
expiresAt
required
null | string format: date-time
isRevoked
required
boolean
revokedAt
required
null | string format: date-time
reference
required
null | string
campaignId
required

Campaign the grant was made under, when it was part of one.

null | string format: uuid
isActive
required

True when the grant is inside its start/expiry window and not revoked.

boolean
features
required
Array<object>

Per-feature value resolution inside an EntitlementUsageOverview: the plan-provided value, the add-on-computed value, and which one won.

object
featureCode
required
string
planValue
required

Value contributed by the plan in effect; null when the plan does not set this feature.

null | string
planTiers
required

The plan’s usage tiers for a tiered feature, whose quota is its tiers rather than PlanValue; empty otherwise.

Array<object>

Represents a tier of usage with associated credits and severity status.

object
startUsage

Gets or sets the start usage for the tier.

null | number format: double
startPercentage

Tier start as a percentage of the feature value (percentage-based enforcement).

null | number format: double
endUsage

Gets or sets the end usage for the tier. Nullable.

null | number format: double
endPercentage

Tier end as a percentage of the feature value (percentage-based enforcement).

null | number format: double
baseCredits

Gets or sets the flat fee credits for the tier.

number format: decimal
creditsPerUnitOfConsumption

Gets or sets the credits per unit of consumption for the tier.

number format: double
name

Gets or sets the name of the usage tier.

string
quotaUsageLevel

Gets or sets the overage severity status for the tier.

Allowed values: None Normal Warning Critical OverUsage
quotaUsagePolicy

What the server does with usage in a quota tier. Only Deny and SuspendUsage refuse a consume; every other policy accepts it and is reported in the usage status, which carries the policy the tier’s level made apply.

Allowed values: None NotifyOnly AllowWithOverage AllowWithGrace RateLimit Deny SuspendUsage
fundingBalanceMetric

Metric name of the credit balance, on the same entitlement, that pays for consumption in this tier. Only meaningful on an OverUsage tier whose policy is AllowWithOverage, the one level where that policy applies as configured: name a balance and every unit past the tier’s start is priced and charged to it on commit, refusing the commit when it cannot be paid for; leave it empty and the overage is allowed and merely reported.

string
addOnComputedValue
required

Value computed from the active add-on grants; null when no add-on touches this feature.

null | string
addOnComputedOperation
required
One of:
null
effectiveValue
required

The value that actually applies to the entitlement after resolution.

null | string
effectiveTiers
required

The tiers that apply once the add-ons have moved, scaled or replaced PlanTiers: what the meter enforces. Empty for a feature without tiers.

Array<object>

Represents a tier of usage with associated credits and severity status.

object
startUsage

Gets or sets the start usage for the tier.

null | number format: double
startPercentage

Tier start as a percentage of the feature value (percentage-based enforcement).

null | number format: double
endUsage

Gets or sets the end usage for the tier. Nullable.

null | number format: double
endPercentage

Tier end as a percentage of the feature value (percentage-based enforcement).

null | number format: double
baseCredits

Gets or sets the flat fee credits for the tier.

number format: decimal
creditsPerUnitOfConsumption

Gets or sets the credits per unit of consumption for the tier.

number format: double
name

Gets or sets the name of the usage tier.

string
quotaUsageLevel

Gets or sets the overage severity status for the tier.

Allowed values: None Normal Warning Critical OverUsage
quotaUsagePolicy

What the server does with usage in a quota tier. Only Deny and SuspendUsage refuse a consume; every other policy accepts it and is reported in the usage status, which carries the policy the tier’s level made apply.

Allowed values: None NotifyOnly AllowWithOverage AllowWithGrace RateLimit Deny SuspendUsage
fundingBalanceMetric

Metric name of the credit balance, on the same entitlement, that pays for consumption in this tier. Only meaningful on an OverUsage tier whose policy is AllowWithOverage, the one level where that policy applies as configured: name a balance and every unit past the tier’s start is priced and charged to it on commit, refusing the commit when it cannot be paid for; leave it empty and the overage is allowed and merely reported.

string
addOnValueUsed
required

True when EffectiveValue came from the add-on computation rather than the plan.

boolean
appliedAddOnIds
required

Add-ons that contributed to the computed value.

Array<string>
valueSource
required

Origin of EffectiveValue: "Plan", "Add-on", "Add-on merged", or "None".

string
Example
{
"features": [
{
"planTiers": [
{
"quotaUsageLevel": "None",
"quotaUsagePolicy": "None"
}
],
"addOnComputedOperation": "Replace",
"effectiveTiers": [
{
"quotaUsageLevel": "None",
"quotaUsagePolicy": "None"
}
]
}
]
}
X-Correlation-Id
string

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

The request carries no valid access token (auth.required).

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.

The caller may not make this call. The code and requires members say why: a missing scope, or a plan that does not include it.

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.

Not Found

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.