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 session plan

GET
/api/v1/provision/consumer/me/session/plan
curl --request GET \
--url https://example.com/api/v1/provision/consumer/me/session/plan \
--header 'Authorization: Bearer <token>'

The plan context of the license session whose token authenticates the call: the plan applied now and the plans it may change to. A signed-in user reads a license’s through entitlements/{entitlementId}/plan.

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

The plan context for an entitlement or session: what is applied, and what is available.

object
entitlementId
required
string format: uuid
assignedPlanName
required
null | string
overrideRevertPlanName
required

The plan a temporary override reverts to, while one is in force.

null | string
overrideReason
required

Why the temporary override is in force (self-service-signup-trial, payment-lapsed, …); null when none is active. What tells a lapsed account apart from one on a trial.

null | string
overridePlanName
required

The plan a running temporary override puts in force, such as the plan a trial lets the customer use; null when no override is in force.

null | string
overrideEndsAt
required

When the running temporary override ends; null when none is in force or it has no end.

null | string format: date-time
appliedPlan
required
One of:
null
availablePlans
required
Array<object>

A plan a consumer can see or switch to, and what it includes.

object
id
required
string format: uuid
name
required
string
description
required
string
sortOrder
required
integer format: int32
featureValues
required

What the plan includes: one entry per feature it sets.

Array<object>

One feature’s value for the calling user: a fixed value, or a metered allowance.

object
featureCode
required
string
featureName
required

The feature’s display name from the vendor’s catalog, for rendering; null when the server could not resolve the code, in which case the code is all there is to show.

null | string
metricName
required

The meter a metered feature reads, or null for a fixed value.

null | string
featureType
required

The feature’s type in the vendor’s catalog: Boolean, Numeric, Text, Enumeration, Metered or JsonField, as a stable name; null when the code resolves to no catalog entry. A Metered feature with a single value is a quota the server enforces, not a fixed limit.

null | string
units
required

What the value is counted in (GB, seats, calls), from the vendor’s catalog; null when it names none.

null | string
enforcementType
required

SingleValue, TieredAbsolute, TieredPercentage, Denied or NotIncluded, as a stable name; the last two carry no value and no bands.

string
value
required

The value of a fixed feature — a flag, a count, a setting. Null for a metered one.

null | string
bands
required

The bands a metered feature is enforced in, in ladder order. Empty for a fixed value.

Array<object>

One band of a metered feature’s ladder: where it starts and ends, and what the plan does there.

object
startUsage
required
null | number format: double
endUsage
required
null | number format: double
quotaUsagePolicy
required

None, NotifyOnly, AllowWithGrace, AllowWithOverage, RateLimit, Deny or SuspendUsage, as a stable name.

string
effectiveFeatureValues
required

What the holder is entitled to under the applied plan, add-on grants merged in and internal features left out — the values a license page renders.

Array<object>

One feature’s value for the calling user: a fixed value, or a metered allowance.

object
featureCode
required
string
featureName
required

The feature’s display name from the vendor’s catalog, for rendering; null when the server could not resolve the code, in which case the code is all there is to show.

null | string
metricName
required

The meter a metered feature reads, or null for a fixed value.

null | string
featureType
required

The feature’s type in the vendor’s catalog: Boolean, Numeric, Text, Enumeration, Metered or JsonField, as a stable name; null when the code resolves to no catalog entry. A Metered feature with a single value is a quota the server enforces, not a fixed limit.

null | string
units
required

What the value is counted in (GB, seats, calls), from the vendor’s catalog; null when it names none.

null | string
enforcementType
required

SingleValue, TieredAbsolute, TieredPercentage, Denied or NotIncluded, as a stable name; the last two carry no value and no bands.

string
value
required

The value of a fixed feature — a flag, a count, a setting. Null for a metered one.

null | string
bands
required

The bands a metered feature is enforced in, in ladder order. Empty for a fixed value.

Array<object>

One band of a metered feature’s ladder: where it starts and ends, and what the plan does there.

object
startUsage
required
null | number format: double
endUsage
required
null | number format: double
quotaUsagePolicy
required

None, NotifyOnly, AllowWithGrace, AllowWithOverage, RateLimit, Deny or SuspendUsage, as a stable name.

string
Examplegenerated
{
"entitlementId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"assignedPlanName": "example",
"overrideRevertPlanName": "example",
"overrideReason": "example",
"overridePlanName": "example",
"overrideEndsAt": "2026-04-15T12:00:00Z",
"appliedPlan": {
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"name": "example",
"description": "example",
"sortOrder": 1,
"featureValues": [
{
"featureCode": "example",
"featureName": "example",
"metricName": "example",
"featureType": "example",
"units": "example",
"enforcementType": "example",
"value": "example",
"bands": [
{
"startUsage": 1,
"endUsage": 1,
"quotaUsagePolicy": "example"
}
]
}
]
},
"availablePlans": [
{
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"name": "example",
"description": "example",
"sortOrder": 1,
"featureValues": [
{
"featureCode": "example",
"featureName": "example",
"metricName": "example",
"featureType": "example",
"units": "example",
"enforcementType": "example",
"value": "example",
"bands": [
{
"startUsage": 1,
"endUsage": 1,
"quotaUsagePolicy": "example"
}
]
}
]
}
],
"effectiveFeatureValues": [
{
"featureCode": "example",
"featureName": "example",
"metricName": "example",
"featureType": "example",
"units": "example",
"enforcementType": "example",
"value": "example",
"bands": [
{
"startUsage": 1,
"endUsage": 1,
"quotaUsagePolicy": "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.

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.

Conflict

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.