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.

Ingest offline transactions

POST
/api/v1/provision/operational/usage/offline/ingest
curl --request POST \
--url https://example.com/api/v1/provision/operational/usage/offline/ingest \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "meta": { "schemaVersion": 1, "nonce": "example", "requestedAt": "2026-04-15T12:00:00Z", "sdkVersion": "example" }, "body": { "currentLicense": { "licenseToken": "example", "version": 1, "description": "example", "licenseTermsUrl": "example", "activatedFeatures": [ { "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "featureCode": "example", "productId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "moduleName": "example", "name": "example", "metricName": "example", "units": "example", "description": "example", "value": "example", "isEnabled": true, "isAvailableDuringTrialPeriod": true, "isAvailableDuringGracePeriod": true, "isPaidFeature": true, "isDenied": true, "expiresAt": "2026-04-15T12:00:00Z" } ], "products": [ { "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "productCode": "example", "productVersion": "example", "name": "example", "status": "example", "propertyValues": { "additionalProperty": { "key": "example", "value": "example", "metadata": [ { "key": "example", "value": "example" } ], "visibility": "Private" } } } ], "meters": [ { "metricName": "example", "unit": "example" } ] }, "transactions": [ { "transactionId": 1, "sessionId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "apiVersion": 1, "createdAt": "2026-04-15T12:00:00Z", "eventName": "example", "eventData": "example" } ] } }'

Applies the uploaded transactions, extends the session lease, and returns a signed receipt carrying a refreshed license.

  • oidc
    provision.activation.update
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.

Media typeapplication/json

Request artifact for the offline transaction-ingest flow. Carries the SDK’s accumulated usage transactions plus the EndUserLicense the SDK is currently operating under — the embedded license JWT provides server-side provenance that the request actually came from a licensed SDK for the claimed session.

object
meta

Request-instance metadata. Same shape as the activation flow’s OfflineActivationRequestMeta — the schema is intentionally shared.

object
schemaVersion

Wire-format major version. Currently always 1. The server refuses unknown versions to fail fast rather than silently mis-parse.

integer format: int32
nonce

Client-generated request correlation id, populated by the SDK builder as 32 random bytes encoded as base64url without padding. Echoed by the server in the matching response for audit / correlation; has no security property in v1 — the SDK does not currently track outstanding nonces. The real defences are the JWT exp/aud claims and the response signature.

string
requestedAt

UTC timestamp at which the SDK produced the request. Used by the server as part of the idempotency cache key.

string format: date-time
sdkVersion

Version of the SDK assembly that produced the request. Diagnostic only; never load-bearing.

string
body

Payload — current license + accumulated transactions.

object
currentLicense

The license the SDK is currently operating under. The server validates the JWT’s signature using its own public key, extracts the jti (session id) and aud (fingerprint) claims, and uses them to bind the request to a specific session. Required; the JWT must verify.

object
licenseToken

The signed license JWT the SDK validates offline against the provider’s public key.

string
version
integer format: int32
description
string
licenseTermsUrl

Link to the license terms (EULA) the license was issued under: an absolute https URL, or null when the entitlement has none. Unsigned display metadata, read from the entitlement at every issue and refresh.

null | string
activatedFeatures
Array<object>

A feature as activated on an end-user license: the granted value, enablement, trial/grace availability, and optional per-feature expiration.

object
id
string format: uuid
featureCode
string
productId
string format: uuid
moduleName
null | string
name
null | string
metricName

The metric a metered feature’s usage is recorded under, resolved by the issuer. A feature code and its metric name are deliberately different strings (MIRAGE.IMAGE.RENDERS against mirage.image.renders) and the server matches a meter by exact metric name, so this is the only name usage may be reported under. Null for a feature that has no meter, or when the issuer did not resolve one.

null | string
units

What the feature’s value is counted in (GB, seats, calls), read from the vendor’s catalog at every issue, for showing beside the value. Null for a Boolean feature, or when the catalog names none. Unsigned display metadata, like Name.

null | string
description
null | string
value
null | string
isEnabled

The license’s own enable flag for the feature, as the issuer signed it. Whether the feature may be used right now also depends on a running trial or grace period and on the feature’s own expiration, which the SDK’s validation applies at each check.

boolean
isAvailableDuringTrialPeriod
boolean
isAvailableDuringGracePeriod
boolean
isPaidFeature

When true, the feature is withheld for the duration of a trial even if enabled.

boolean
isDenied

The issuer’s verdict that this license explicitly does not grant the feature. Validation treats it as final, while the feature stays present for display — a locked capability can still be shown, and reaching for it is counted as a denied check.

boolean
expiresAt

When the feature ends; null when it lasts as long as the license. The instant itself is still inside. After it the SDK’s validation refuses the feature and its quota, and still lists the feature for display.

null | string format: date-time
products
Array<object>

A product covered by the license, with the custom properties the vendor marked Public. Display/catalog metadata carried on the unsigned EndUserLicense envelope, like feature names and descriptions, so it must never gate functionality. The product code and version are also in the signed token (SignedProduct); gate on that copy.

object
id
string format: uuid
productCode
string
productVersion

The version of the product the license was issued for, for display; empty when the product has none.

string
name
string
status

Whether the product is in early access or generally available, for display. Gate on Status.

propertyValues
object
key
additional properties

A custom key/value property (e.g. on a product) with optional metadata entries.

object
key
string
value
string
metadata

The property’s metadata entries; [] when it has none.

Array<object>

A key/value metadata entry attached to a PropertyValue.

object
key
string
value
string
visibility

Whether a custom property is sent to the application with its license.

Allowed values: Private Public
meters

The license’s meters, one per metric name, with the unit each counts in.

Array<object>

A meter of the license: the metric name its usage is recorded and limited under (the key in the signed usage_limits claim) and the unit it counts in. Display metadata carried on the unsigned EndUserLicense envelope, read from the same record as the customer API’s meter (Unit), so both report the same unit. A meter of a feature the license withholds is left out, as the feature is.

object
metricName
string
unit

What the meter counts, e.g. renders or minutes; null when the meter names none.

null | string
transactions

Accumulated usage transactions awaiting server processing. Every record’s Guid ClientTransactionRecord.SessionId must match the session id in EndUserLicense OfflineTransactionRequestBody.CurrentLicense; mismatched records cause the entire batch to be refused. May be empty — treated as a ping-to-renew-lease, in which case the receipt still carries a refreshed license.

Array<object>

One usage event in the SDK’s client-side transaction log, uploaded (online or via the offline transaction-ingest flow) for server-side processing.

object
transactionId

Monotonically increasing id assigned by the local transaction store; the server acknowledges the highest processed id.

integer format: int64
sessionId
string format: uuid
apiVersion
integer format: int32
createdAt
string format: date-time
eventName

Type name of the event object serialized into string ClientTransactionRecord.EventData.

string
eventData

The event payload as JSON.

string

Receipt issued successfully.

Media typeapplication/json

Server-issued signed receipt for the offline transaction-ingest flow. Wire format is structurally identical to OfflineActivationResponse (same JWS-flattened-JSON detached-payload envelope, same RSA-SHA256 PKCS#1 v1.5 signature). The inner signed payload identifies itself via protected.artifactType = "offline-transaction-receipt-v1" so SDK importers fail fast if an activation response is mis-fed here or vice versa.

object
signedPayload
required

Base64url-encoded UTF-8 JSON bytes of an OfflineTransactionReceiptSignedPayload. The importer treats this string as opaque — it is base64url-decoded and verified, never re-serialized.

string
signature
required

Base64-encoded RSA-SHA256 (PKCS#1 v1.5) signature over the raw bytes inside string OfflineTransactionReceipt.SignedPayload.

string
Examplegenerated
{
"signedPayload": "example",
"signature": "example"
}
X-Correlation-Id
string

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

Invalid request (schema mismatch, JWT validation failure, session mismatch).

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.

Caller lacks the operational entitlement scope, or your plan does not include usage metering (license.usage_metering_not_licensed).

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.

Session 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.

Another request ingested the same transactions or activated the same license at the same time (license.operation_pending). Upload the same bundle again: usage already recorded is not counted twice.

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.

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.