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.

Push offer

POST
/api/v1/provision/admin/entitlements/offers/{offerId}/push
curl --request POST \
--url 'https://example.com/api/v1/provision/admin/entitlements/offers/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/push?dryRun=false' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "includeDeviating": true, "includePromotion": true }'

With includePromotion, each also gets the offer’s running promotion as a temporary plan override that ends on the promotion’s end date, with a plan-override touch of its campaign; it replaces an earlier promotion of the same offer only. Entitlements that deviate from the offer are skipped, unless includeDeviating is set; then the offer wins over the customer’s change, except that an add-on added for that customer alone stays. An entitlement with any other running temporary override (a trial, a lapsed payment, one set for that customer) is always skipped: no push ends one. Under the offer’s own promotion, the offer’s plan becomes the plan the promotion returns to. Each changed entitlement gets an audit entry and the usual plan-applied and add-on events. One the rules refuse is listed under failed with the reason and left as it was, and the push goes on with the rest. Refused for an archived offer.

  • oidc
    provision.entitlement.update
offerId
required
string format: uuid

The offer.

dryRun
boolean

Change nothing, and say what the push would change.

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.

Idempotency-Key
string

A key of your own that makes a retry safe: a call repeated with the same key and the same body answers the first call’s result instead of running again. Send one key per call, and reuse it only to retry that call.

Whether deviating entitlements are included, and whether the promotion is given.

Media typeapplication/json

How an offer’s plan and add-ons are pushed to the entitlements made from it.

object
includeDeviating

Push to the entitlements that deviate from the offer too. The offer then wins over the customer’s change: the plan is set back to the offer’s, an add-on the offer gives is granted again where it was revoked, and a promotion ended for that customer is given again. An add-on added for that customer alone stays, and an entitlement with a running temporary override other than this offer’s promotion (a trial, a lapsed payment) is still skipped. Without it, deviating entitlements are skipped.

boolean
includePromotion

Give the offer’s running promotion too (Promotion), as a temporary plan override that ends on the promotion’s end date. It replaces an earlier promotion of the same offer, and never any other temporary override. Without it, promotions are left as they are.

boolean
Examplegenerated
{
"includeDeviating": true,
"includePromotion": true
}

A dry run: what the push would change.

Media typeapplication/json

What a push of an offer’s plan and add-ons changed on the entitlements made from it, or with a dry run would change. Every entitlement made from the offer is counted once: changed, up to date, skipped or failed.

object
offerId
required
string format: uuid
dryRun
required

True when nothing was changed and the counts say what the push would do.

boolean
planName
required

The offer’s plan the push sets; null when the offer has none, and plans are left as they are.

null | string
addOnNames
required

The add-ons the offer gives, which the push grants where they are missing.

Array<string>
promotion
required
One of:
null
entitlementCount
required

The entitlements made from the offer, try licenses left out.

integer format: int32
changedCount
required

Entitlements the push changed, or would change.

integer format: int32
upToDateCount
required

Entitlements that already hold what the offer gives.

integer format: int32
skippedCount
required

Deviating entitlements left as they are: not included, or held by a running temporary override other than this offer’s promotion, which a push never ends.

integer format: int32
failedCount
required

Entitlements the push could not change, or would not be able to; Failed says why.

integer format: int32
deviating
required

Every entitlement that deviates from the offer, with why, whether it was skipped or included.

Array<object>

One entitlement made from an offer (its OriginOfferId), and whether it deviates from what the offer gave it: a change made to this customer since, which wins over the offer.

object
entitlementId
required
string format: uuid
customerContactEmail
required
string
customerContactName
required
string
assignedPlanName
required
null | string
status
required

Admin-controlled lifecycle state of an entitlement.

Allowed values: Draft Published Disabled Archived
createdAt
required
string format: date-time
deviates
required

True when at least one facet deviates; Deviations says which and why.

boolean
deviations
required

Each facet whose current value differs from what the offer gave the entitlement, with the reason.

Array<object>

A facet of an entitlement whose current value differs from what its offer gave it.

object
facet
required

A part of an entitlement that an offer gives it and that can later be changed for that customer alone.

Allowed values: Plan AddOns Promotion
reason
required

What changed and, where it is recorded, what changed it; for example an approved plan-change request.

string
failed
required

The entitlements the push could not change, each with the reason. The others are changed all the same.

Array<object>

An entitlement a push could not change, and why.

object
entitlementId
required
string format: uuid
customerContactEmail
required
string
reason
required
string
Example
{
"deviating": [
{
"status": "Draft",
"deviations": [
{
"facet": "Plan"
}
]
}
]
}
X-Correlation-Id
string

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

The background operation that pushes the offer. It runs to the end whether or not the caller waits, and once it succeeded it holds the counts of what changed. Send an Idempotency-Key, and a retry answers with the same operation.

Media typeapplication/json

An admin action that runs in the background on the server, such as a large batch of activation codes or an offer push. The request that starts it answers 202 Accepted with this resource; read it again until Status is OperationStatus.Succeeded or OperationStatus.Failed.

object
id
required

The operation’s identifier.

string format: uuid
kind
required

What the operation does.

Allowed values: ActivationCodeBatch OfferPush
status
required

Where the operation is.

Allowed values: Queued Running Succeeded Failed
processedCount
required

How many items the operation has done so far.

integer format: int32
totalCount
required

How many items the operation does in all; null until the operation knows.

null | integer format: int32
createdAt
required

When the operation was started.

string format: date-time
startedAt
required

When the server began to run the operation; null while it waits.

null | string format: date-time
finishedAt
required

When the operation succeeded or failed; null while it runs.

null | string format: date-time
error
required
One of:
null
activationCodeBatch
required
One of:
null
offerPush
required
One of:
null
Example
{
"kind": "ActivationCodeBatch",
"status": "Queued",
"offerPush": {
"deviating": [
{
"status": "Draft",
"deviations": [
{
"facet": "Plan"
}
]
}
]
}
}
X-Correlation-Id
string

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

The offer is archived, or the request is not valid.

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.

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.

No such offer.

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.

A call with the same Idempotency-Key is still running. Send the call again once it has finished.

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.

The body is not sent as application/json (request.unsupported).

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.

The Idempotency-Key was used before with a different request body (operation.idempotency-key-reused).

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.