Get operation
const url = 'https://example.com/api/v1/provision/admin/entitlements/operations/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';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/entitlements/operations/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Authorization: Bearer <token>'Returns a background operation: whether it waits, runs, succeeded or failed, how many items it has done, and once it succeeded, what it made. A batch’s codes are listed only to a caller who may read activation codes in full.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The operation, as the request that started it answered.
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”The operation.
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
The operation’s identifier.
What the operation does.
Where the operation is.
How many items the operation has done so far.
How many items the operation does in all; null until the operation knows.
When the operation was started.
When the server began to run the operation; null while it waits.
When the operation succeeded or failed; null while it runs.
The batch the operation made, once an OperationKind.ActivationCodeBatch operation succeeded.
object
Identifier the created workflows are tagged with, for later filtering and export.
Label echoed from the request.
Codes asked for.
Codes actually created.
The issued codes, in generation order. Large batches may return this empty and expose the codes through the batch export endpoint instead; read CreatedCount for the tally.
Items that could not be minted, e.g. after exhausting the collision retry limit.
Why one item of a batch was rejected.
object
Zero-based position of the item in the submitted list.
The offending code, when reporting it is meaningful.
Human-readable explanation, e.g. a duplicate or a policy mismatch.
What the push changed, once an OperationKind.OfferPush operation succeeded.
object
True when nothing was changed and the counts say what the push would do.
The offer’s plan the push sets; null when the offer has none, and plans are left as they are.
The add-ons the offer gives, which the push grants where they are missing.
The promotion the push gives: the offer’s, when the push includes it and it is running. Null otherwise, and promotions are left as they are.
object
The campaign it runs under; each entitlement given it counts as a plan-override touch of the campaign.
Recorded as the reason of each temporary override it becomes.
The entitlements made from the offer, try licenses left out.
Entitlements the push changed, or would change.
Entitlements that already hold what the offer gives.
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.
Entitlements the push could not change, or would not be able to; Failed says why.
Every entitlement that deviates from the offer, with why, whether it was skipped or included.
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
Admin-controlled lifecycle state of an entitlement.
True when at least one facet deviates; Deviations says which and why.
Each facet whose current value differs from what the offer gave the entitlement, with the reason.
A facet of an entitlement whose current value differs from what its offer gave it.
object
A part of an entitlement that an offer gives it and that can later be changed for that customer alone.
What changed and, where it is recorded, what changed it; for example an approved plan-change request.
The entitlements the push could not change, each with the reason. The others are changed all the same.
An entitlement a push could not change, and why.
object
Example
{ "kind": "ActivationCodeBatch", "status": "Queued", "offerPush": { "deviating": [ { "status": "Draft", "deviations": [ { "facet": "Plan" } ] } ] }}Headers
Section titled “Headers”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).
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.
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.
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.
No such operation.
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.