Skip to content
Oclavex is in private preview, available to selected users. Public signup is blocked. Request access at [email protected].

Previews the license a device activating the entitlement now would receive — or, for an offer, a license issued from it — or the refusal it would get. A dry run: the activation runs in a transaction that is rolled back, so no session, seat, trial start, event or audit entry remains, and the returned token is unsigned. A refusal is a 200 whose outcome is `Refused`.

POST
/api/v1/provision/admin/entitlements/{entitlementId}/license-preview
curl --request POST \
--url https://example.com/api/v1/provision/admin/entitlements/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/license-preview \
--header 'Content-Type: application/json' \
--data '{ "activateAs": "AnonymousDevice", "userId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "offerRecipe": "Order", "applicationScope": "example", "deviceIpAddress": "example", "ignoreDraftState": true, "planSetId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "planName": "example" }'
entitlementId
required
string format: uuid

Entitlement or offer id.

Who activates, and for an offer, how its license is issued.

What a license preview runs: who activates, and for an offer, how its license is issued.

object
activateAs

Who the preview activates as. Never the caller.

Allowed values: AnonymousDevice User
userId

The user to activate as. Required when LicensePreviewIdentity LicensePreviewRequestDto.ActivateAs is LicensePreviewIdentity.User.

null | string format: uuid
offerRecipe
One of:
null
applicationScope

The application scope the device presents. Required when the entitlement restricts activation to application scopes.

null | string
deviceIpAddress

The address the device activates from, checked against the activation policy’s allowed ranges.

null | string
ignoreDraftState

Issue the license even though the offer or a product is still Draft, to check it before they are published. Preview only: a real activation or issue is refused, and string? LicensePreviewDto.IgnoredDraftRefusal says with what. A Draft feature is never a refusal: the token leaves it out (LicensePreviewFeatureVerdict.SuppressedInCatalog).

boolean
planSetId

The plan set string? LicensePreviewRequestDto.PlanName is in. Defaults to the plan set the entitlement or offer is on.

null | string format: uuid
planName

Preview the license on this plan instead of the one the entitlement, or the order placed from the offer, is on. The plan is applied inside the preview only; the entitlement keeps its own. Not for a sign-up or anonymous try license, whose plan comes from the offer.

null | string

OK

What a device activating now would receive, from a dry run of the activation that leaves nothing behind: no session, no seat, no started trial or activation period, no events. The license token is unsigned, so no application that pins a signing key accepts it as a license.

object
outcome

Whether the device would be issued a license.

Allowed values: Unknown Issued Refused
refusalCode

The error code the device would receive when refused.

null | string
refusalMessage

The message the device would receive when refused.

null | string
enabledForPreview

The entitlement is offline for editing, and the preview enabled license activation first: the license shown is the one a device receives once activation is enabled.

boolean
license
One of:
null
features

Every feature the entitlement grants, including the ones the token withholds.

Array<object>

One feature the entitlement grants, with what the license token does with it.

object
featureCode

The feature’s code.

string
productId

The product that grants it; empty for a feature granted by an add-on.

string format: uuid
value

The feature’s value on the license.

null | string
verdict

Whether the token carries it, and if not, why.

Allowed values: Unknown InToken InTokenDenied NotInLicenseToken ExcludedByPlan SuppressedInCatalog PaidWithheldDuringTrial NotEnabled EntitlementRevoked Expired
signingKeyId

The key a real activation signs the token with.

string
ignoredDraftRefusal

With bool LicensePreviewRequestDto.IgnoreDraftState: the refusal a real activation or issue gets because the offer or a product is still Draft. Null when nothing Draft was ignored.

null | string
planName

The plan the license was issued on. Null when it is on none.

null | string
temporaryPlanName

A temporary plan the preview’s issue or activation laid over string? LicensePreviewDto.PlanName, such as a trial’s plan or a running promotion’s: the license carries its values while it lasts. Null when none was.

null | string

Bad Request

object
type
null | string
title
null | string
status
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
detail
null | string
instance
null | string

Not Found

object
type
null | string
title
null | string
status
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
detail
null | string
instance
null | string

Service Unavailable