Subscription plan changed

nextPaymentDate is the date the first charge at the new plan's price is scheduled for. The plan switch itself does not charge the customer; see Switch subscription plan for details.

Contract (? = optional)

{
  "externalUserId": "string",
  "projectId": "string",
  "createdAt": "string (ISO 8601 date-time)",
  "subscriptionId": "string",
  "subscriptionProductPlanId": "string",
  "type": "SUBSCRIPTION_SWITCH_PLAN",
  "state": "ACTIVE | TRIAL",
  "nextPaymentDate": "string (ISO 8601 date-time)",
  "previousSubscriptionId?": "string | null",
  "completedAt?": "string (ISO 8601 date-time) | null",
  "metadata?": {
    "<key>": "string"
  }
}

Examples

[
  {
    "externalUserId": "externalUserId",
    "projectId": "projectId",
    "createdAt": "2025-09-23T11:21:49.509Z",
    "subscriptionId": "subscriptionId",
    "subscriptionProductPlanId": "subscriptionProductPlanId",
    "type": "SUBSCRIPTION_SWITCH_PLAN",
    "state": "ACTIVE",
    "nextPaymentDate": "2025-10-23T11:21:49.509Z",
    "previousSubscriptionId": "previous-subscription-id"
  },
  {
    "externalUserId": "externalUserId",
    "projectId": "projectId",
    "createdAt": "2025-09-23T11:21:49.509Z",
    "subscriptionId": "subscriptionId",
    "subscriptionProductPlanId": "subscriptionProductPlanId",
    "type": "SUBSCRIPTION_SWITCH_PLAN",
    "state": "TRIAL",
    "nextPaymentDate": "2025-09-30T11:21:49.509Z",
    "previousSubscriptionId": "previous-subscription-id"
  }
]

For signature verification and delivery handling, see the Webhooks guide.