Error codes
Every API failure returns an RFC 9457
application/problem+json body with two stable extensions: a numeric code and
a dotted codeName. Three refusals carry neither: an access token that is missing or
doesn’t validate gets a plain 401, a token without the scope the endpoint needs gets a
plain 403, and a request body that fails model binding gets the
validation problem at the end of this page.
{ "type": "/docs/reference/error-codes/#license.forbidden_by_policy", "status": 403, "title": "Forbidden by policy", "detail": "Activation is blocked by the entitlement's activation policy.", "code": 2011, "codeName": "license.forbidden_by_policy"}The type of a coded error is this page with the code name as the anchor, so generic
RFC 9457 tooling can tell the problems apart and a reader can follow the link to the row
that explains it. It is a relative reference: it resolves against the host that answered.
The explanation of this occurrence is in detail. An unexpected failure (a 500) carries a
fixed title and detail and a correlation member, never the text of the exception: quote
the correlation id when you ask support about it.
Branch on code or codeName, never on detail or title — those are
human-facing prose and may change; the codes are contract. New codes may be added
over time (an additive, backward-compatible change), so treat unknown codes as a
generic failure of the given HTTP status.
What a refused activation needed
Section titled “What a refused activation needed”When an activation is refused because something it needed was missing, the problem
also carries a requires member, so your application can act without reading the
message:
requires |
What to do |
|---|---|
sign_in |
Sign the user in and activate again, or let the .NET SDK do it. |
verified_email |
Activate again with the user’s email address; they confirm it from the link they receive. |
assigned_user |
The code was issued to another user. Sign in as that user, or ask your software provider for a code of your own. |
code_recipient |
The code was sent to an email address, and the signed-in user’s verified address is another one. Sign in with the account for the code’s address, or ask your software provider for a code of your own. The problem never names the address. |
organization_member |
The license is limited to one organization the signed-in user isn’t a member of. |
verified_user |
Your software provider hasn’t verified this user yet. |
hardware_key |
Activate with a YubiKey, through the hardware-key add-on. |
hardware_key_touch |
Activate with a YubiKey set up to ask for a touch. |
When the user is what’s missing, a caller with no signed-in user sees sign_in or
verified_email, with status 401, code license.authentication_required and a WWW-Authenticate header:
Bearer when no token was sent, or Bearer error="insufficient_user_authentication"
(RFC 9470) when the token has no user behind
it. assigned_user, code_recipient, organization_member and verified_user go to a signed-in
caller, and hardware_key and hardware_key_touch to any caller, all with status 403. An unknown, expired or
used activation code is refused before anything else, as before, and carries no
requires.
Codes are globally unique and grouped in ranges: general platform errors are 1000–1999, licensing 2000–2999, account/directory 3000–3999, webhooks 4000–4999, configuration and onboarding 5000–5999, metering 6000–6999, sign-in and API clients 7000–7999, privacy 8000–8999, usage data 9000–9999, the Stripe connector 10000–10499, hardware keys 11000–11999. No code is issued in the 6000 range yet.
General (1000–1999)
Section titled “General (1000–1999)”Cross-cutting errors any endpoint can return.
| Code | Code name | HTTP | Meaning |
|---|---|---|---|
| 1001 | validation.empty |
400 | A required value was missing or empty. |
| 1002 | validation.duplicate |
409 | The value collides with an existing record. |
| 1003 | validation.failed |
400 | The request failed validation, for example a body that isn’t valid JSON, a query value of the wrong type, or a field over its length limit, such as an activation code longer than 100 characters. errors names each field and what is wrong with it. |
| 1004 | request.unsupported |
405, 406, 413, 415 | The request can’t be served as sent: the method, the media type it sends or asks for, or its size isn’t accepted. |
| 1005 | request.page-token-invalid |
400 | The pageToken doesn’t belong to this list query: it was sent with a different filter or sortOrder, it is damaged, or it comes from an older format. Start the list again without a token. |
| 1010 | resource.not_found |
404 | The resource doesn’t exist. |
| 1011 | resource.expired |
410 | The resource existed but has expired. |
| 1012 | resource.limit-exceeded |
429 | A plan or capacity limit was reached. A device refused because every seat of a license is taken gets license.seat_limit_reached instead. |
| 1020 | operation.invalid |
400 | The operation isn’t valid in the current state. |
| 1021 | operation.pending |
409 | A pending step (e.g. email verification) must complete first. |
| 1022 | operation.idempotency-key-reused |
422 | The Idempotency-Key was already used for a request with a different body. Nothing ran: send a new key for a new operation, or, within 24 hours, repeat the original request exactly to get its result. |
| 1023 | operation.idempotency-key-unsupported |
400 | The operation doesn’t accept an Idempotency-Key, so a retry would run it again. Nothing ran: remove the header, or use an operation that accepts one. |
| 1024 | operation.conflict |
409 | The request conflicts with the current state of the resource, for example a name already in use or an item that something else still refers to. |
| 1030 | auth.forbidden |
403 | The operation isn’t allowed, for example a free try when your plan doesn’t include free tries. A token without the required scope gets this code too. |
| 1031 | auth.required |
401 | The request has no valid access token. Send a bearer token from your API credentials or sign in again. |
| 1040 | service.unavailable |
503 | Temporarily unavailable — retry with backoff. A request that has to look a user or an organization up, such as an activation or the caller’s own licenses, activation codes, plans and usage, answers it while the user directory can’t be reached, and changes nothing. |
| 1041 | service.failure |
500 | Unexpected failure. |
| 1042 | service.too-many-requests |
429 | Rate limit exceeded — honor Retry-After. |
Licensing (2000–2999)
Section titled “Licensing (2000–2999)”Returned by the activation, session and usage endpoints, and by the admin endpoints for
products, entitlements, offers and billing events. These can also answer
service.unavailable (1040, under General above).
| Code | Code name | HTTP | Meaning |
|---|---|---|---|
| 2001 | license.no_active_license |
403 | No active license backs this request. |
| 2002 | license.no_such_entitlement |
404 | The entitlement doesn’t exist. |
| 2003 | license.no_active_session |
409 | No active session for this operation. |
| 2004 | license.not_found |
404 | The record doesn’t exist: a license key that matches no entitlement at activation, or a product, entitlement, offer, activation code, tag or suite an admin endpoint looked up. The license. prefix names the licensing service, not a license: the title is always “Resource not found” and detail names the record, so an app should not read it as “my customer has no license”. An unknown or used activation code at activation answers resource.not_found (1010) instead, and an expired one resource.expired (1011). |
| 2005 | license.invalid_operation |
400 | The operation isn’t valid for this license’s state. |
| 2006 | license.no_permission |
403 | The request isn’t available for this license: your plan doesn’t include end-user ratings and feedback, a free try can’t change plan or be topped up, or the license takes no credit top-ups. |
| 2007 | license.no_such_product |
404 | The product doesn’t exist. |
| 2008 | license.no_such_provider |
404 | Reserved: registered, but no endpoint returns it yet. |
| 2009 | license.validation_error |
400 | The request body or activation code is invalid. |
| 2010 | license.no_credit |
400 | A limit was reached: the active licenses your plan allows, the devices an activation code allows, the feedback a license may send in a period, or a credit balance that is suspended or can’t cover the requested consumption. |
| 2011 | license.forbidden_by_policy |
403 | Blocked by the entitlement’s activation policy, for example offline activation turned off, a code issued to another user, or a YubiKey required. When something specific was missing, requires names it. |
| 2012 | license.operation_pending |
409 | A conflicting operation is already in flight (for example a concurrent upload). Retry. |
| 2013 | license.expired |
403 | The license or credit balance has expired. A license past its end gives this answer to activation, check-in and renewal alike. |
| 2014 | license.spending_disabled |
403 | The balance holds credits, but its owner has switched extra-credit spending off. Distinct from license.no_credit: nothing needs buying. |
| 2015 | license.billing_events_not_included |
403 | Posting billing events isn’t included in your plan. |
| 2016 | license.reserved_scheme |
403 | A billing event names a reference under a scheme a built-in connector or billing mode owns: stripe while the environment has the Stripe connector registered, or sfdc, oclavex, manual, none, operator. Use your billing system’s own. |
| 2017 | license.platform_environment |
403 | The environment can’t take billing events. |
| 2018 | license.billed_elsewhere |
409 | Another provider bills the entitlement through a live subscription; it can take yours once that one is canceled. |
| 2019 | license.provider_owns_end_date |
400 | A billing provider bills the entitlement or offer as a subscription and decides when it ends, so it takes no subscription policy or time restriction that ends it. Set its billing to managed by vendor to use one. |
| 2020 | license.offer_not_orderable |
409 | The offer takes no orders: a Draft offer isn’t open yet, a Disabled or Archived one no longer is, and a paused one is closed until it is resumed. Publish a Draft offer, or resume a paused one, to take orders from it. |
| 2021 | license.metric_not_tracked |
404 | A consume, or a preview of one, named a metric the entitlement doesn’t track, so nothing could be charged. Check the metric name, or add the metric to the plan behind the entitlement. |
| 2022 | license.session_token_rejected |
401 | The license token a session call presented is no longer accepted: its signing key, audience or lifetime doesn’t validate, or its lease has ended. Activate the license again; the SDK does this once on its own. |
| 2023 | license.hardware_keys_not_licensed |
403 | Hardware keys aren’t included in your plan: requiring one on an entitlement or offer, or activating a license that doesn’t require one with a hardware key. Licenses that already require a key keep activating. |
| 2024 | license.usage_metering_not_licensed |
403 | Your plan doesn’t include usage metering, so a new monitored asset, usage uploads, consumes and pre-allocations are refused and nothing is recorded. Monitored assets and credit balances are kept, and recording resumes once your plan includes usage metering again. |
| 2025 | license.unknown_user |
403 | The caller is signed in, but no user on your environment matches its sign-in, so it has no licenses, activation codes or entitlements of its own, and an activation that needs a user (useInteractiveUser, or a code issued to a user or an organization) is refused. Signing in again doesn’t change this: the user must exist under Customers → Users, and a user added after the refusal can take up to five minutes to be recognized. |
| 2027 | license.product_end_of_life |
403 | Every product the application may use is past its End of life, and the device has never activated the license, so it can’t start now, online or offline. Devices activated before keep activating and renewing. Clear the End of life on the product to let new devices activate again. |
| 2028 | license.authentication_required |
401 | The activation needs a signed-in user or a confirmed email address, and the caller has neither. requires says which (sign_in or verified_email); WWW-Authenticate carries the challenge. An offline request needing one is refused with license.forbidden_by_policy instead, since your operator who uploads it is signed in. |
| 2029 | license.version_not_supported |
403 | The activation names a newer version of the application than the license’s maximum version, online or offline, so nothing was activated and no seat was taken. detail names the version the license covers. A request that names no version isn’t refused this way. Raise the maximum version on the entitlement to let the device activate. |
| 2030 | license.user_activation_limit_reached |
403 | The user already holds as many devices on the entitlement as its maximum activations per user allows, so a new device was refused. Releasing one of the user’s devices, or raising the limit on the entitlement, lets the new one activate. Anonymous and offline activations have no user and are never refused this way; the seat count refuses them with license.seat_limit_reached. |
| 2031 | license.try_ended |
403 | The device already had a free try of this offer and it has ended. Show it as “your free try has ended; sign up to keep going”. The device can try again once the ended try is deleted at the end of the offer’s retention window, or when the offer’s try code changes. |
| 2032 | license.stale_version |
409 | The entitlement was changed since the rowVersion you sent was read, so the edit was refused and nothing changed. Read the entitlement again and make the edit again. A conflict found while saving is license.operation_pending (2012): repeat the same request. |
| 2033 | license.token_superseded |
401 | A newer license token was issued for this session, usually because the token was copied to another device, so renewals, borrows, check-ins and releases refuse the older one. Show it as “this license was renewed on another device”. Activate the license again; the SDK does this once on its own, and the other device’s token is then refused at its next renewal. A license file your support team downloads from an activation in the portal is issued as the device’s current token, so downloading it doesn’t cause this error. |
| 2034 | license.device_mismatch |
401 | The renewal, borrow, check-in or release sent the fingerprint of a device other than the one the license was activated on. Activate the license on this device; the SDK does this once on its own. |
| 2035 | license.no_such_customer |
404 | The order names a customerId that matches no organization in your environment, so nothing was created or changed. Leave customerId empty for an order with no organization yet. |
| 2036 | license.seat_limit_reached |
409 | Every seat of the license is in use on another device or hardware key, so this device was refused. The message says so without naming who holds the seat, and says when a seat frees. On a floating license with a lease, that is when the app on that device closes or the lease runs out. On a floating license without a lease, it is when the app gives the seat back on closing, or when you free the seat. On a node-locked license, it is when the seat is released, or when you free it. On a hardware key, it is when the license on that key is released, or when you free it; with a floating lease, the seat also frees by itself when the lease runs out. A seat borrowed for offline use frees when the borrowing period ends. A user who signed in is also pointed to Devices in their account. A user who activated with a code alone has no account, so the message tells them to contact you instead. Show the message, and let the user try again later. |
| 2037 | license.product_not_in_plan |
403 | The application that asked for a license is allowed only for a product that every plan of the order leaves out, the trial plan’s set included, so the license does not cover that application and the device was refused. The license itself also leaves that product out of products. Include the product in a plan of the order, or assign a plan that includes it, to let the application activate. |
| 2038 | license.device_blocked |
403 | You blocked this device for this license, so it can’t activate the license again. The SDK stops serving the license it stored on the device. Unblock the device to let it activate. |
| 2039 | license.already_reviewed |
409 | This feedback was already reviewed, so it can’t be reviewed again. detail says its current state. |
| 2040 | license.live_terms_need_draft_revision |
409 | The order is live, so its terms (policies, features, products, plan and order details) change through a draft revision, and this request tried to change them on the live order. detail names the draft revision when one is open, or the route that starts one. Start a draft revision with POST .../entitlements/{id}/draft-revision, make the change with the draft’s id, then apply it. Applying a plan (apply-plan, apply-plan-name) never answers this code: on a live order the call makes the draft revision and applies it for you. |
| 2041 | license.draft_revision_exists |
409 | A draft revision is already open on this order, and an order has one at a time. detail names it. Edit that draft, or discard it first with DELETE .../entitlements/{id}/draft-revision. |
| 2042 | license.draft_revision_conflict |
409 | The draft revision and the live order both changed the same term since the draft was started, to different values, so applying would lose one of them. Nothing was written. detail names the terms, and GET .../draft-revision/changes lists them. Discard the draft and start a new one from the live order. |
| 2043 | license.apply_takes_away |
409 | Applying the draft revision takes something away from the customer: fewer seats, a feature turned off or lowered, an earlier end, a stricter rule or a product removed. Nothing was written. detail names the changes. Send the apply request again with acceptReductions: true to confirm them. |
| 2044 | license.terms_edited_in_place |
409 | A draft revision was asked for on an order that isn’t live, or on an offer. Those are edited in place: make the change on the order itself. |
| 2045 | license.plan_limit_reached |
403 | Your Oclavex plan’s limit on entitlements, offers, catalog features or active products is reached, so nothing new was created or published. detail names the limit and the way out, such as deleting an entitlement you no longer need or moving to a larger plan. The Your plan page lists every limit. |
Account & directory (3000–3999)
Section titled “Account & directory (3000–3999)”Returned by user and organization endpoints. The organization delete can also answer
service.unavailable (1040, under General above), when the orders on a customer could not be
looked up.
Webhooks (4000–4999)
Section titled “Webhooks (4000–4999)”Returned by the webhook subscription and delivery-management endpoints.
| Code | Code name | HTTP | Meaning |
|---|---|---|---|
| 4001 | subscription.tenant_required |
400 | The request lacks an active environment context. |
| 4002 | subscription.client_id_required |
400 | An OAuth client identity is required. |
| 4003 | subscription.tenant_mismatch |
— | Reserved: registered, but no endpoint returns it yet. |
| 4010 | subscription.not_found |
404 | The subscription doesn’t exist. |
| 4020 | subscription.invalid_state |
409 | Not allowed in the subscription’s current state (e.g. test-fire on an inactive subscription). |
| 4021 | subscription.invalid_transition |
409 | The requested state change isn’t allowed. |
| 4022 | subscription.not_applicable |
400 | The action has no meaning for this kind of subscription (e.g. rotating the secret of a capture subscription, which has no receiver). |
| 4030 | subscription.invalid_secret |
400 | The signing secret isn’t a Standard Webhooks secret: whsec_ followed by the base64 of 24 to 64 random bytes. |
| 4031 | subscription.invalid_overlap |
400 | The rotation overlap window is invalid. |
| 4032 | subscription.invalid_callback_scope |
400 | A requested callback scope isn’t allowed. |
| 4037 | subscription.callback_scope_not_held |
403 | A callback scope names a scope the caller doesn’t hold itself, so it can’t hand it to a receiver. This refusal has no numeric code of its own yet (its code reads 1041); branch on codeName. |
| 4033 | subscription.invalid_url |
400 | The receiver URL is not allowed. |
| 4034 | subscription.invalid_filter |
400 | An attribute filter can never match: its field name is empty, its value is null, or no subscribed event type carries the field it names. |
| 4035 | subscription.invalid_event_type |
400 | An event-type pattern is not * or an exact type from the event catalog: family wildcards such as Entitlement.* are not accepted. |
| 4036 | subscription.callback_write_scope_unconfirmed |
400 | The request gives a receiver a write callback scope (one not ending in .read) without acknowledgeWriteCallbackScopes: true. See Calling back. |
| 4050 | subscription.not_licensed |
403 | Webhooks aren’t included in your plan. |
| 4060 | replay.invalid_selection |
400 | A replay needs either envelopeIds or a from/to window — not both and not neither. |
| 4061 | replay.too_many_envelopes |
400 | The selection matches more envelopes than one replay request may carry; narrow the window or replay in batches. |
| 4062 | replay.rate_limited |
429 | The replay would exceed the hourly envelope quota. |
| 4070 | testfire.unknown_event_type |
400 | The requested event type isn’t in the event catalog. |
| 4071 | testfire.event_type_not_subscribed |
400 | The event type doesn’t match any of the subscription’s event-type patterns. |
| 4073 | testfire.rate_limited |
429 | The subscription has used its test-fires for this hour. |
| 4080 | delivery.ambiguous_envelope |
400 | The envelope reached more than one subscription; pass subscriptionId to choose one. |
| 4081 | delivery.not_found |
404 | No delivery of that envelope exists for your environment. |
| 4090 | dlq.not_found |
404 | No dead-lettered delivery with that id exists: it was never dead-lettered, or it was already requeued or dismissed. |
| 4091 | dlq.confirmation_required |
400 | Dismissing a dead-lettered delivery deletes it. Send {"confirm": true} in the body to confirm. |
Configuration (5000–5999)
Section titled “Configuration (5000–5999)”Returned by the tenant, account, environment, relocation and feature-flag routes.
Sign-in and API clients (7000–7999)
Section titled “Sign-in and API clients (7000–7999)”Returned by the sign-in service’s admin routes (API clients, login providers, MFA and sign-up policy) and by a user’s own list of authorized apps.
Privacy (8000–8999)
Section titled “Privacy (8000–8999)”Returned by the data subject request and processing-activity routes.
Usage data (9000–9999)
Section titled “Usage data (9000–9999)”Returned by the usage history routes: usage events, metrics, ratings and the audit log.
Stripe connector (10000–10499)
Section titled “Stripe connector (10000–10499)”Returned by the Stripe connector’s routes: connector registration, checkout, the billing portal and subscription links. detail says what was refused.
Hardware keys (11000–11999)
Section titled “Hardware keys (11000–11999)”Returned by the hardware-key activation routes, online and offline.
Validation errors
Section titled “Validation errors”Model-binding failures (malformed JSON, wrong types, missing required fields)
return the standard ASP.NET validation problem — a 400 with an errors
dictionary keyed by field name:
{ "status": 400, "title": "One or more validation errors occurred.", "errors": { "activationCode": ["The activationCode field is required."] }}