Skip to content

Founding user: 10% + 10% year end sale

Get Started
← All comparisons
  • Stripe

Build your own Stripe cancel flow, or use Reoffer?

· · 6 min read

Build vs buy cancel flow: build it on the Stripe API and own the upkeep, or use Reoffer's hosted page with Stripe-confirmed saves

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

  1. 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_details if you want them there too.
  2. 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.
  3. Apply it. A discount is a coupon (duration: once or repeating) added to the subscription’s discounts. A free cycle is a 100% coupon for one invoice. A pause is pause_collection with a resumes_at date.
  4. 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.
  5. 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.
  6. Report it: reasons, offers shown, accepted, applied and failed, and a save rate you can defend.
Six jobs of a cancel flow built on the Stripe API: ask why, pick an offer the subscription can take, apply it with idempotency keys, confirm what Stripe changed, cancel, report

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 discounts field 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_draft keeps invoices you might charge later. If you told the customer the pause is free, use void. 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

StepBuild it yourselfReoffer
Cancel page and reasonsYour page, your questionsHosted page with seven reasons (more than one allowed) and an optional comment
Offer per reasonYour rulesOne offer per reason group: percentage discount, free billing cycle or pause
Which subscriptions get offersYour checksChecked before showing and again just before acting; multi-item, metered and schedule-managed subscriptions get the survey without an offer
Existing discountEasy to overwrite by accidentNever stacked, replaced or removed; the discount offer is skipped
RetriesYour idempotency keysStable keys per offer, so a retry can’t apply it twice
Repeat offersYour limit, if anyOne accepted offer per subscription every 90 days by default; you can change the window but not remove it
Confirming savesYour webhook handlerSigned Stripe webhooks plus a scheduled check that settles anything left pending; only Stripe-confirmed changes count
ReportingYour dashboardReasons, offers and outcomes in the dashboard, with CSV export
PriceEngineering time, then upkeepFree 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.
Build it yourself for multi-item or metered plans, billing outside Stripe, downgrade offers or A/B tests; use Reoffer for monthly Stripe plans, no upkeep, several products and confirmed saves

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.

Should I build my own cancel flow on Stripe?

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.

What Stripe API calls does a cancel flow need?

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.

Can applying a coupon remove a customer’s existing discount?

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.

How do I stop customers cancelling every month for a new discount?

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.

How do I install Reoffer instead of building a flow?

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.

What can’t Reoffer do that a custom flow can?

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.