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
type
string

Event type discriminator.

Allowed value: "plan.deleted"
messageId
string

Unique ID of this webhook message.

traceId
string

Correlation ID for tracing.

id
string

Plan ID.

name
string

Plan name.

description
string | null

Optional description.

productId
string

Product ID.

status
string

Last publication status at deletion.

isLatest
boolean

Whether the deleted version was latest.

version
number

Version number that was deleted.

packageEntitlements
object[]

Entitlements snapshot at deletion.

prices
object[]

Prices snapshot at deletion.

metadata
object

Arbitrary metadata at deletion time.