Subscription dunning period

Contract (? = optional)

{
  "type": "SUBSCRIPTION_DUNNING_PERIOD",
  "state": "DUNNING_PERIOD",
  "createdAt": "string (ISO 8601 date-time)",
  "projectId": "string",
  "lastPaymentAt": "string (ISO 8601 date-time)",
  "externalUserId": "string",
  "subscriptionId": "string",
  "dunningExpiresAt": "string (ISO 8601 date-time)",
  "dunningStartedAt": "string (ISO 8601 date-time)",
  "subscriptionProductPlanId": "string",
  "completedAt?": "string (ISO 8601 date-time) | null",
  "metadata?": {
    "<key>": "string"
  }
}

Example

{
  "type": "SUBSCRIPTION_DUNNING_PERIOD",
  "state": "DUNNING_PERIOD",
  "createdAt": "2025-08-28T05:00:00.000Z",
  "projectId": "a1b2c3d4-e5f6-4a7b-8c9d-1e2f3a4b5c6d",
  "lastPaymentAt": "2025-08-25T15:30:18.626Z",
  "externalUserId": "b1c2d3e4-f5a6-4b7c-8d9e-2f3a4b5c6d7e",
  "subscriptionId": "c1d2e3f4-a5b6-4c7d-8e9f-3a4b5c6d7e8f",
  "dunningExpiresAt": "2025-09-25T05:00:00.000Z",
  "dunningStartedAt": "2025-08-28T05:00:00.000Z",
  "subscriptionProductPlanId": "d1e2f3a4-b5c6-4d7e-8f9a-4b5c6d7e8f9a"
}

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