{
"type": "entitlement.granted",
"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": 10,
"currentUsage": 55,
"nextResetDate": "2022-05-10T00:00:00.001Z",
"resetPeriod": "MONTH",
"resetPeriodConfiguration": {
"accordingTo": "SubscriptionStart"
}
}Entitlements
Entitlement granted
Fired when a reported entitlement check gives the customer access to the feature. Includes the limits and usage the decision was based on.
WEBHOOK
entitlement.granted
{
"type": "entitlement.granted",
"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": 10,
"currentUsage": 55,
"nextResetDate": "2022-05-10T00:00:00.001Z",
"resetPeriod": "MONTH",
"resetPeriodConfiguration": {
"accordingTo": "SubscriptionStart"
}
}Body
application/json