- Stripe
Build your own Stripe cancel flow, or use Reoffer?
· Alex Foong · 6 min read

Should you build your own cancel flow on the Stripe API, or use a hosted one like Reoffer? Build it if you have one product, one simple offer, and an engineer who’ll own it, or if your subscriptions are ones Reoffer can’t make offers on (multi-item, metered, schedule-managed, or billed outside Stripe). Use Reoffer if you’d rather not maintain the parts that go wrong after launch: checking each subscription before touching it, never overwriting a discount, retrying safely, and counting a save only when Stripe confirms it. The cancel page itself is the easy part.
Last updated 17 November 2026. Stripe details are from Stripe’s API reference for updating and cancelling subscriptions, coupons and pausing payment collection on that date.
What a cancel flow on the Stripe API has to do
- Ask why. Send the cancel button to your own page and ask the reason before anything else. Keep the answers, and pass them to Stripe in
cancellation_detailsif you want them there too. - Pick one offer that fits the reason, and only if the subscription can take it: the right billing interval, no discount already on it, no pause already running, not metered or managed by a schedule.
- Apply it. A discount is a coupon (
duration: onceorrepeating) added to the subscription’sdiscounts. A free cycle is a 100% coupon for one invoice. A pause ispause_collectionwith aresumes_atdate. - Confirm it. Read back what Stripe changed and listen for
customer.subscription.updated, so a save is something Stripe did, not a button someone clicked. - Cancel if they still want to leave: cancel now, or set
cancel_at_period_end. If they accept an offer after scheduling a cancellation, clear it. - Report it: reasons, offers shown, accepted, applied and failed, and a save rate you can defend.

Here’s step 3 for a 30% discount over three months. It’s two calls, and each one needs an idempotency key so a retry doesn’t create a second coupon:
curl https://api.stripe.com/v1/coupons \
-u "sk_test_...:" \
-H "Idempotency-Key: offer-123-coupon" \
-d percent_off=30 \
-d duration=repeating \
-d duration_in_months=3
curl https://api.stripe.com/v1/subscriptions/sub_123 \
-u "sk_test_...:" \
-H "Idempotency-Key: offer-123-apply" \
-d "discounts[0][coupon]=COUPON_ID"
Where home-built flows usually go wrong
None of these show up in a demo. They show up months later, on a real customer’s invoice:
- Overwriting a discount. Stripe’s
discountsfield replaces the whole list. Apply your retention coupon to a customer who already has one and their original discount is gone. Check first, and skip the offer if there’s already a discount. - Acting on a stale subscription. The cancel page can sit open for a while. By the time the customer clicks, the subscription may be cancelled, paused, or on a new plan. Fetch it again right before you change anything.
- Double-applying on retry. Networks time out. Without stable idempotency keys a retry can create a second coupon or apply the offer twice.
- Offers that can’t work. A monthly discount on an annual plan, a pause on a subscription that’s already paused, an offer on a metered or multi-item subscription. Each needs a rule, or the customer is promised something Stripe won’t do.
- Paid-for pauses. With
pause_collection,keep_as_draftkeeps invoices you might charge later. If you told the customer the pause is free, usevoid. See how to pause a Stripe subscription. - Discount hopping. Without a limit, the same customer can cancel every month for a new discount.
- Counting clicks as saves. “Accepted” isn’t “applied”. If the Stripe call failed, it wasn’t a save, and the customer may think they have a deal they don’t.
- Upkeep. Stripe API versions move and billing modes change. Someone has to own the flow the night it breaks.
What Reoffer does for each step
| Step | Build it yourself | Reoffer |
|---|---|---|
| Cancel page and reasons | Your page, your questions | Hosted page with seven reasons (more than one allowed) and an optional comment |
| Offer per reason | Your rules | One offer per reason group: percentage discount, free billing cycle or pause |
| Which subscriptions get offers | Your checks | Checked before showing and again just before acting; multi-item, metered and schedule-managed subscriptions get the survey without an offer |
| Existing discount | Easy to overwrite by accident | Never stacked, replaced or removed; the discount offer is skipped |
| Retries | Your idempotency keys | Stable keys per offer, so a retry can’t apply it twice |
| Repeat offers | Your limit, if any | One accepted offer per subscription every 90 days by default; you can change the window but not remove it |
| Confirming saves | Your webhook handler | Signed Stripe webhooks plus a scheduled check that settles anything left pending; only Stripe-confirmed changes count |
| Reporting | Your dashboard | Reasons, offers and outcomes in the dashboard, with CSV export |
| Price | Engineering time, then upkeep | Free plan (survey only), paid plans from $29 a month |
Installing it is one of two things: swap your cancel link for the Reoffer page link, or have your backend call POST /api/v1/reoffers with a project API key to get a secure, single-use link for each customer. Reoffer connects to your Stripe account through Stripe Connect, so there’s no API key of yours to hand over.
When building it yourself is the right call
- Your subscriptions are ones Reoffer won’t touch: more than one item, metered (usage-based) prices, a subscription schedule attached, or billing outside Stripe.
- You want a different offer, such as a downgrade to a cheaper plan, a trial extension or a call with the founder. Reoffer offers a discount, a free cycle or a pause.
- The flow is core to your product. If retention UX is something you want to design screen by screen and A/B test, Reoffer has no A/B testing and fixed reasons.
- You don’t want another vendor with access to your Stripe account. That’s a fair line to draw.
And if your customers already cancel in the Stripe customer portal, try Stripe’s own retention rules before building or buying anything.
When Reoffer is the better deal
- You bill monthly plans on Stripe and want the offer matched to the reason, without writing the eligibility rules.
- You’d rather spend engineering time on the product than on keeping a cancel flow in step with Stripe.
- You run more than one product. Studio covers 10 products, each with its own page and offers.
- You want to start with the reasons only. The Free plan runs the survey with no Stripe permission at all.

Building it anyway? How to build a cancellation flow on Stripe walks through the portal and the API side, and cancellation surveys in Stripe covers collecting reasons.
Build it if you have one product, one simple offer and an engineer who will own it, or if your subscriptions are multi-item, metered, schedule-managed or billed outside Stripe, which Reoffer can’t make offers on. Otherwise a hosted flow saves you the eligibility rules, safe retries and save tracking.
A coupon plus a subscription update with discounts for a discount or free cycle, an update with pause_collection for a pause, a cancel call or cancel_at_period_end if the customer leaves, and a webhook handler for customer.subscription.updated to confirm what changed.
Yes. Stripe’s discounts field replaces the whole list, so applying a retention coupon to a subscription that already has a discount removes the original. Check first. Reoffer never stacks, replaces or removes a discount; it skips the discount offer instead.
Limit how often a subscription can accept an offer. Reoffer allows one accepted offer per subscription every 90 days by default; you can change the window but not remove it.
Swap your cancel link for your Reoffer page link, or have your backend call POST /api/v1/reoffers with a project API key to create a secure, single-use link for each customer. Reoffer connects to Stripe through Stripe Connect.
Offers on multi-item, metered or schedule-managed subscriptions, billing platforms other than Stripe, downgrade or trial-extension offers, A/B testing, and your own reason list. If you need those, build it yourself.
See what the Reoffer flow looks like on your own cancel button: start on the Free plan, no card and no Stripe permission. Offers start at $29 a month.
See why your customers leave
Start on the Free plan: no card, one product, feedback only. Connect Stripe on a paid plan when you want offers applied and saves counted.