{
"type": "entitlement.requested",
"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": [
{
"id": "addon-test-id",
"name": "addon-test-name",
"description": "addon test description",
"status": "PUBLISHED",
"quantity": 5
}
]
}
],
"requestedUsage": 5
}Entitlements
Entitlement requested
Fired when your application reports an entitlement check for a customer’s feature.
It is followed by entitlement.granted or entitlement.denied with the result.
WEBHOOK
entitlement.requested
{
"type": "entitlement.requested",
"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": [
{
"id": "addon-test-id",
"name": "addon-test-name",
"description": "addon test description",
"status": "PUBLISHED",
"quantity": 5
}
]
}
],
"requestedUsage": 5
}Body
application/json