Skip to main content

Trends, tech news, and tool comparisons.

Which Stripe webhook events a subscription SaaS should handle

· 6 min read
Dealpuffin
Proof points and live coupons for early adopters

A subscription SaaS on Stripe needs about seven webhook events on day one: checkout.session.completed if you use Checkout, customer.subscription.created, customer.subscription.updated, customer.subscription.deleted, invoice.paid, invoice.payment_failed and customer.subscription.trial_will_end if you run trials. Those cover giving access, removing access and telling customers when a payment fails. Add dispute, refund and pause events once you have paying customers.

Stripe's own subscription webhooks guide lists more than 20 events, read on 1 December 2026. This post sorts them by what a small team has to build first, and gives each one a single job in your app.

The rule that keeps this simple​

Treat the Subscription object's status as the source of truth for access, and treat events as a signal to re-read it. A handler that guesses state from the event type alone breaks easily. Stripe's webhooks docs say events can arrive in any order, so a handler that gets customer.subscription.updated before customer.subscription.created should still end up with the right answer if it stores the latest status it saw.

Stripe's guide says the same thing about payments: after invoice.paid, retrieve the subscription and confirm it is active before extending access, because a paid invoice does not always move the subscription to active.

Day-one events​

EventWhat it tells youWhat your app does
checkout.session.completedA Checkout session finishedLink the Stripe customer and subscription IDs to your user
customer.subscription.createdA subscription exists; status may be incompleteStore it; grant access only if active or trialing
customer.subscription.updatedPlan change, renewal, coupon, cancel scheduled, status changeRe-read status, plan and cancel_at_period_end; update access and UI
customer.subscription.deletedThe subscription has endedRemove access
invoice.paidA payment succeededExtend access after confirming the subscription is active
invoice.payment_failedA payment failedTell the customer and show an "update your card" banner
customer.subscription.trial_will_endTrial ends in 3 daysCheck for a payment method; remind the customer

If you only have time for three, make them customer.subscription.updated, customer.subscription.deleted and invoice.payment_failed, since those catch plan changes, churn and failed cards.

What each one should do​

Access: created, updated, deleted​

Write one function, syncSubscription(subscriptionId), that fetches the subscription from Stripe and writes status, price, current period end and cancel_at_period_end to your database. Call it from all three events. Then derive access from status:

  • trialing and active: full access.
  • past_due: keep access, show a payment warning. Stripe is still retrying.
  • canceled, unpaid, incomplete_expired, paused: no access.
  • incomplete: no access yet. The first payment has 23 hours to succeed before the subscription becomes incomplete_expired.

Stripe's guide says to revoke access on canceled or unpaid. When a customer cancels at period end, you get customer.subscription.updated with cancel_at_period_end: true straight away and customer.subscription.deleted only when the period ends. Use the first to show "your plan ends on..." and the second to remove access. The details are in how to cancel a Stripe subscription.

Money: invoice.paid and invoice.payment_failed​

invoice.paid is the event to hang "payment received" emails and usage resets on. invoice.payment_failed should trigger your own email or in-app banner. For a first payment it leaves the subscription incomplete; for a renewal it moves the subscription to past_due, and what happens after the retries depends on your Dashboard settings. How to handle failed payments in a SaaS covers retries and dunning emails.

If you also listen to invoice.payment_action_required, you can tell customers when their bank wants 3D Secure on a renewal. Many small products skip it at first and rely on Stripe's emails.

Trials: trial_will_end​

Stripe sends it three days before the trial ends, or right away if the trial is shorter than that. If the customer has no payment method, this is your last chance to ask for one. A trial that ends without one can move to paused if you set that behavior, which also sends customer.subscription.paused.

Events to add once you have paying customers​

EventWhy add it
charge.dispute.createdA customer's bank disputed a charge; decide whether to respond and whether to restrict the account
charge.refundedA subscription charge was refunded; you may want to end access or log it
radar.early_fraud_warning.createdThe issuer flagged a charge as likely fraud, often before a dispute
customer.subscription.paused / resumedYou offer a pause option; see how to pause a Stripe subscription
customer.updatedYou copy customer fields (email, address) into your own database
invoice.finalization_failedUsually a Stripe Tax location problem; the invoice cannot be paid until you fix it

Stripe's guide warns that without the risk events you only hear about disputes and fraud warnings when you check the Dashboard.

Events most small products can skip​

  • invoice.created and invoice.finalized, unless you add items to invoices or finalize them yourself. Stripe notes that if it gets no successful response to invoice.created, finalization of automatically collected invoices is delayed up to 72 hours. If you do subscribe, return a 2xx quickly.
  • invoice.upcoming, unless you add line items before renewal or email a reminder yourself.
  • payment_intent.* events, which duplicate what the invoice events already tell you for subscriptions.
  • The subscription_schedule.* family, until you use schedules.

Subscribe only to what you handle. Every extra event is a request your endpoint has to answer with a 2xx.

Handler checklist​

  1. Verify the signature on every request. How to fix Stripe webhook signature verification errors covers the raw-body problems that break this.
  2. Store the event ID and skip events you already processed. Stripe can deliver the same event more than once.
  3. Return 2xx fast and do slow work in a queue. In live mode Stripe retries a failing endpoint for up to 3 days with exponential backoff.
  4. Re-read the subscription from the API instead of trusting the order of events.
  5. Test each event with stripe trigger and a sandbox before going live, as in how to test Stripe webhooks locally.

Frequently asked questions​

What is the most important Stripe webhook for subscriptions?​

customer.subscription.updated, because renewals, plan changes, scheduled cancellations and status changes all trigger it. Pair it with customer.subscription.deleted to know when access should end.

Should I use invoice.paid or invoice.payment_succeeded?​

Stripe's subscription guide uses invoice.paid to provision access, and Stripe's event reference says it also fires when an invoice is marked as paid out of band. Confirm the subscription status is active before you extend access.

Does Stripe send webhook events in order?​

No. Events can arrive out of order or more than once, so handlers should be idempotent and fetch the current subscription state from the API.

Do I need to handle invoice.created?​

Only if you modify or finalize invoices yourself. If you subscribe to it, respond quickly, because a failed response can delay invoice finalization by up to 72 hours.