stripecustomer portaldunningcancellation flowinvoluntary churn

Stripe's Customer Portal Link Expires in 5 Minutes. A Quiet Oct 28 Fix Finally Lets Customers Recover It Themselves.

An unused Stripe portal link dies in 5 minutes, per Stripe's own docs. A new after_expiration parameter lets customers self-recover it instead of emailing you.

XY
26 November 2026 · 8 min read

Every Stripe-hosted customer portal link you've ever sent — a "manage your subscription" button in a dunning email, a card-update link, a cancellation confirmation with a resubscribe option — has been quietly disposable the entire time. Stripe's own docs are blunt about it: a new portal session expires after 5 minutes if nobody opens it. That number is easy to miss because it's buried in a features table, not a warning banner, and most integrations never hit it in testing because whoever's testing clicks the link immediately. Customers reading an email three hours later are a different story, and until late October, there was nothing they could do about it themselves.

Key stat
5 MIN
How long an unused Stripe customer portal session link stays valid before it dies
Source: Stripe, Customer Portal documentation ("Ephemeral sessions")

Five minutes is a strange design constraint to build a billing email program around, and most teams never designed around it at all — they just dropped a portal link into a template and assumed it worked like a normal URL. It doesn't. And the mismatch between how fast that link dies and how slowly people actually read email is the whole problem.

What "ephemeral session" means in practice

A Billing Portal session isn't a page, it's a short-lived credential. Stripe's docs call the sessions object's url field exactly that: short-lived. The lifecycle has two phases. Before the customer ever opens it, the link is good for 5 minutes. The moment they open it, the clock resets to a rolling 1-hour window measured from their most recent click inside the portal — so an active session can run longer than an hour if they keep interacting, but it dies an hour after the last thing they touched. Neither number is configurable. You can't request a 24-hour link from the API; the architecture assumes you're generating the session right as the customer needs it, like a checkout redirect, not mailing it out to sit in an inbox.

That assumption holds for one common integration pattern — a customer clicks "manage billing" inside your logged-in app, you call the API server-side in that moment, and they land on the portal within seconds. It falls apart for every pattern where the link is generated once and delivered later: a dunning email with a direct portal link for updating a card, a pre-renewal reminder pointing at the same portal, or a cancellation confirmation email offering a one-click resubscribe. In every one of those, the link was built minutes, hours, or days before the customer actually opens the email it's sitting in.

When people actually click a transactional email link
Within 3 hours of send50%
Within 24 hours of send81%
Still unopened after 24 hours19%

Source: MarketingCharts email benchmark analysis (half of campaign clicks land within 3 hours of send); GetResponse analysis of 5.5 billion sends, 2019–2020 (24-hour click cumulative).

Half of email clicks land within 3 hours — already 36x past a 5-minute window. A fifth of recipients haven't even opened the email by the 24-hour mark. None of that is unusual email behavior; it's the normal shape of an inbox. It just happens to be completely incompatible with a link that was only ever meant to survive a few minutes of inattention.

Where the dead link actually costs you

The failure mode isn't dramatic. The customer doesn't see an error that says "this session expired." Depending on how the integration was built, they either see a generic Stripe page telling them the link no longer works, or — worse — they just bounce without understanding why, assuming the product is broken. Either way, the self-serve action they were trying to take doesn't happen, and what happens next depends entirely on what they were trying to do:

What the customer was trying to doWhat a dead link turns it into
Update an expired card from a dunning emailMissed recovery window, payment keeps failing, involuntary cancellation
Cancel through a self-serve linkSupport ticket, or they give up and dispute the next charge instead
Resubscribe from a win-back or confirmation emailLost reactivation — they intended to come back and couldn't
Update billing details before a renewalFailed renewal invoice that looked avoidable on your side

That second row matters more than it looks. A subscriber who wants to cancel and hits a dead link doesn't usually try again later — they're already at the lowest point of commitment in the relationship. Some of them route around the broken self-serve path by calling their bank and disputing the next charge as unauthorized, which is a far worse outcome for you than a clean cancellation: you lose the revenue either way, but now you've also taken a chargeback, which dunning and deliverability work can't fix because the email delivered fine — the link inside it just didn't survive long enough to matter.

What Stripe actually shipped

On October 28, Stripe added an after_expiration parameter to the Billing Portal session create call. Set after_expiration.type to customer_login, and a customer who lands on an expired session URL gets a different experience: instead of a dead end, they're prompted to verify their email address, and on success Stripe issues them a fresh session with the identical portal configuration the original link pointed to. No new email from you, no support ticket, no server call on your end to regenerate anything — the recovery happens entirely client-side from the customer's perspective. You can optionally set after_expiration.customer_login.expires_at to put a hard deadline on how long that recovery path itself stays open, so a link from six months ago in some old email thread doesn't become a permanent backdoor into a customer's billing data.

BehaviorDefault (no after_expiration set)With after_expiration.type: customer_login
Customer opens link after it expiresDead end — no path forwardPrompted to verify email, then issued a new session
Who has to act to fix itYou — generate and resend a new linkNobody — the customer self-serves
Base session lifespan (5 min unused / 1 hr post-activity)UnchangedUnchanged
Recovery window itselfN/AOpen-ended by default, or capped with customer_login.expires_at
Where you configure itN/AA parameter on the session create call, set per session

The catch: it's opt-in, per session, going forward

This isn't a platform-wide fix that quietly patches every portal link you've already sent. It's a parameter you have to set explicitly on the specific API call that creates each session, which means three things in practice. First, it only helps sessions created after you add it — nothing retroactively repairs a link already sitting in a customer's inbox from last week. Second, if your portal links are generated through a Stripe Billing automation or a third-party tool rather than a direct API call you control, you need to confirm that tool actually exposes the parameter before assuming you're covered. Third, this fixes the dead-end experience, not the underlying 5-minute window — a customer still needs to go through an email verification step to get back in, which is friction you didn't have before the link expired in the first place. It's a real improvement over a hard stop, not a substitute for sending the link at the right moment.

What to actually change

If you generate Billing Portal sessions directly through the API for anything that gets delivered by email rather than clicked immediately — card-update links in dunning sequences, renewal reminders, cancellation-confirmation resubscribe links — add after_expiration: { type: 'customer_login' } to every one of those session creation calls. It costs nothing to enable and has no effect on sessions that get used promptly. For anything time-sensitive, like a win-back offer with a real deadline, pair it with customer_login.expires_at so the recovery path expires on your terms rather than staying open indefinitely. And if you're routing cancel-intent through a portal link at all, this is also a good moment to check whether that link is doing the job a dedicated pause or discount offer should be doing instead — a dead link on a cancellation flow doesn't just lose the save, it loses the chance to show an offer at all.

None of this is a reason to route your whole cancellation flow through Stripe's hosted portal in the first place. A custom flow — the kind CancelFlow builds in front of a cancel click — never depends on a time-boxed email link surviving an inbox, because the pause, discount, or downgrade offer is shown live, in the moment the subscriber actually clicks cancel, not mailed to them to act on later. But for the parts of your stack that do still lean on Stripe-hosted portal links — card updates, renewal reminders, confirmation emails — this is a five-minute fix for a problem that's been silently costing you self-serve conversions since the first time you sent a portal link in an email instead of generating it on click.

Frequently asked questions

How long does a Stripe customer portal session link last?+

Per Stripe's own customer management docs, a new portal session expires after 5 minutes if the customer never opens it. If they do open it within that window, the session then expires 1 hour after their most recent activity inside the portal. There's no way to extend the base 5-minute window — it's fixed.

What happens when a customer clicks an expired Stripe portal link today?+

Without the after_expiration parameter set, they hit a dead page and have no way to get back in. The merchant has to generate a brand new session server-side and send it to them again — usually meaning a support ticket, a delay, or the customer just giving up on whatever they were trying to do (update a card, cancel, resubscribe).

What does after_expiration.type: customer_login actually do?+

It's a parameter you set when creating a Billing Portal session. When set to customer_login, a customer who lands on an expired session URL can verify their email address on the spot and get issued a replacement session with the exact same portal configuration — no new link from you required. You can optionally cap how long that recovery option itself stays available with after_expiration.customer_login.expires_at.

Does this change how long a fresh Stripe portal link lasts?+

No. The 5-minute-unused / 1-hour-after-activity lifespan is unchanged. This feature only changes what happens after expiry — whether the customer is stuck, or can self-serve a new session. If you don't set after_expiration on session creation, you get the old dead-end behavior by default.

Try CancelFlow

Stop losing subscribers today

One script tag. One function call. A live cancellation flow in under 10 minutes.

Start free trial →
← All postsHome