Skip to main content
PUT
/
api
/
v1
/
sub-entitlement
/
usage
Report usage for an entitlement
curl --request PUT \
  --url https://dev-entitlements-api.iqraa.ai/api/v1/api/v1/sub-entitlement/usage \
  --header 'Content-Type: application/json' \
  --header 'x-admin-api-key: <x-admin-api-key>' \
  --data '
{
  "subscriptionId": "123e4567-e89b-12d3-a456-426614174000",
  "entitlementCode": "storage_quota",
  "usage": 100
}
'

Headers

x-admin-api-key
string
required

The API key to access the admin API

Body

application/json
subscriptionId
string
required

The ID of the subscription

Example:

"123e4567-e89b-12d3-a456-426614174000"

entitlementCode
string
required

The code of the entitlement

Example:

"storage_quota"

usage
number
default:1

The usage amount to report (defaults to 1 if not provided)

Example:

100

Response

Usage reported successfully