{
"type": "plan.deleted",
"messageId": "a6ce...",
"traceId": "549a...",
"id": "plan-test-id",
"name": "plan-test-name",
"description": "plan test description",
"productId": "product-test-id",
"status": "PUBLISHED",
"isLatest": true,
"version": 7,
"packageEntitlements": [
{
"feature": {
"id": "feature-analytics",
"name": "feature-test",
"description": "feature description here",
"featureType": "BOOLEAN",
"meterType": "INCREMENTAL",
"unit": "seat",
"units": "seats",
"status": "ACTIVE"
},
"hasUnlimitedUsage": false,
"usageLimit": 100
}
],
"prices": [
{
"billingModel": "FLAT_FEE",
"billingPeriod": "MONTHLY",
"amount": 50,
"currency": "ILS",
"billingCountryCode": "il"
}
],
"metadata": {
"testKey": "example value"
}
}Plans
Plan deleted
Fired when a plan is deleted. Consider soft-deleting locally to preserve reporting continuity.
WEBHOOK
plan.deleted
{
"type": "plan.deleted",
"messageId": "a6ce...",
"traceId": "549a...",
"id": "plan-test-id",
"name": "plan-test-name",
"description": "plan test description",
"productId": "product-test-id",
"status": "PUBLISHED",
"isLatest": true,
"version": 7,
"packageEntitlements": [
{
"feature": {
"id": "feature-analytics",
"name": "feature-test",
"description": "feature description here",
"featureType": "BOOLEAN",
"meterType": "INCREMENTAL",
"unit": "seat",
"units": "seats",
"status": "ACTIVE"
},
"hasUnlimitedUsage": false,
"usageLimit": 100
}
],
"prices": [
{
"billingModel": "FLAT_FEE",
"billingPeriod": "MONTHLY",
"amount": 50,
"currency": "ILS",
"billingCountryCode": "il"
}
],
"metadata": {
"testKey": "example value"
}
}Body
application/json
Event type discriminator.
Allowed value:
"plan.deleted"Unique ID of this webhook message.
Correlation ID for tracing.
Plan ID.
Plan name.
Optional description.
Product ID.
Last publication status at deletion.
Whether the deleted version was latest.
Version number that was deleted.
Entitlements snapshot at deletion.
Show child attributes
Show child attributes
Prices snapshot at deletion.
Show child attributes
Show child attributes
Arbitrary metadata at deletion time.
