From e4e4193d551de85e07e2e43f0ecdbebb2593cc40 Mon Sep 17 00:00:00 2001 From: Kristina <7614497+khjrtbrg@users.noreply.github.com> Date: Wed, 25 Mar 2026 13:06:06 +0100 Subject: [PATCH] [web] update webhook handler to include cancel_at (#32165) * update webhook handler to include cancel_at * guard against accidentally marking subscription event as canceled * fix cancellation edgecase (reactivating a subscription that was canceled from Stripe Dashboard and also has a non-migration schedule) GitOrigin-RevId: a872e91afa19094d4ae859293fc9669ea3e528f2 --- services/web/types/stripe/webhook-event.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/services/web/types/stripe/webhook-event.ts b/services/web/types/stripe/webhook-event.ts index a47d924358..265f2a970b 100644 --- a/services/web/types/stripe/webhook-event.ts +++ b/services/web/types/stripe/webhook-event.ts @@ -19,6 +19,7 @@ export interface CustomerSubscriptionUpdatedWebhookEvent // https://docs.stripe.com/api/events/object?api-version=2025-04-30.basil#event_object-data-previous_attributes previous_attributes: { cancel_at_period_end?: boolean // will only be present if the subscription was cancelled or reactivated + cancel_at?: number | null // will only be present if the subscription was cancelled or reactivated items?: { // will be present if the subscription was downgraded, upgraded, or renewed data: [