cURL
curl --request POST \ --url https://dev-entitlements-api.iqraa.ai/api/v1/api/v1/sub-entitlement/entitledToUsage \ --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 } '
{ "usage": 123, "quota": 123, "isUnlimited": true, "remainingQuota": 123, "percentageUsed": 123, "isEntitled": true }
The API key to access the admin API
The ID of the subscription
"123e4567-e89b-12d3-a456-426614174000"
The code of the entitlement
"storage_quota"
The usage amount to report (defaults to 1 if not provided)
100
Returns the current status of the entitlement