{
"type": "entitlement.denied",
"messageId": "a6ce...",
"traceId": "549a...",
"timestamp": "2022-04-10T00:00:00.001Z",
"feature": {
"id": "feature-test-id",
"name": "feature-test-name",
"unit": "seat",
"units": "seats",
"description": "feature test description",
"featureType": "NUMBER",
"meterType": "INCREMENTAL",
"status": "ACTIVE"
},
"customer": {
"id": "customer-test-id",
"name": "customer-test-123456",
"email": "customer123456@gmail.com",
"billingId": "cus_123456"
},
"resource": null,
"activeSubscriptions": [
{
"id": "subscription-test-id",
"plan": {
"id": "plan-test-id",
"name": "plan-test-name",
"description": "plan description test",
"status": "PUBLISHED"
},
"addons": []
}
],
"usageLimit": 100,
"hasUnlimitedUsage": false,
"hasSoftLimit": false,
"requestedUsage": 15,
"currentUsage": 90,
"nextResetDate": "2022-05-10T00:00:00.001Z",
"resetPeriod": "MONTH",
"resetPeriodConfiguration": {
"accordingTo": "SubscriptionStart"
},
"accessDeniedReason": "RequestedUsageExceedingLimit"
}Entitlements
Entitlement denied
Fired when a reported entitlement check denies the customer access to the feature.
Use accessDeniedReason to see why, for example to prompt an upgrade.
WEBHOOK
entitlement.denied
{
"type": "entitlement.denied",
"messageId": "a6ce...",
"traceId": "549a...",
"timestamp": "2022-04-10T00:00:00.001Z",
"feature": {
"id": "feature-test-id",
"name": "feature-test-name",
"unit": "seat",
"units": "seats",
"description": "feature test description",
"featureType": "NUMBER",
"meterType": "INCREMENTAL",
"status": "ACTIVE"
},
"customer": {
"id": "customer-test-id",
"name": "customer-test-123456",
"email": "customer123456@gmail.com",
"billingId": "cus_123456"
},
"resource": null,
"activeSubscriptions": [
{
"id": "subscription-test-id",
"plan": {
"id": "plan-test-id",
"name": "plan-test-name",
"description": "plan description test",
"status": "PUBLISHED"
},
"addons": []
}
],
"usageLimit": 100,
"hasUnlimitedUsage": false,
"hasSoftLimit": false,
"requestedUsage": 15,
"currentUsage": 90,
"nextResetDate": "2022-05-10T00:00:00.001Z",
"resetPeriod": "MONTH",
"resetPeriodConfiguration": {
"accordingTo": "SubscriptionStart"
},
"accessDeniedReason": "RequestedUsageExceedingLimit"
}Body
application/json
Why access was denied, when known.
Available options:
FeatureNotFound, CustomerNotFound, CustomerIsArchived, CustomerResourceNotFound, NoActiveSubscription, NoFeatureEntitlementInSubscription, RequestedUsageExceedingLimit, RequestedValuesMismatch, BudgetExceeded, Unknown, FeatureTypeMismatch, Revoked, InsufficientCredits, EntitlementNotFound