- Stripe
Stripe subscription discount: create a coupon code for a live subscription (2026)
· Alex Foong · 5 min read

To give a Stripe subscription discount, create a coupon (a percentage or a fixed amount off, for once, a set number of months, or forever) and add it to the subscription’s discounts. Stripe applies it from the next invoice; invoices that are already paid don’t change.
That’s the short answer. Most guides stop at “create a coupon in Stripe”, and most of what ranks for this search is Stripe promo codes (discounts on Stripe’s own fees) or a two-minute video. This guide is for the other case: you bill customers through Stripe and want to discount a subscription that is already running, without a surprise proration line, a double discount, or a coupon that lands on a subscription about to be cancelled and turns into a support ticket.
Stripe coupon or promo code: which one do you need?
In Stripe, the coupon holds the terms: how much off and for how long. A promotion code is a customer-facing code (like SPRING20) that points at a coupon, with optional limits such as an expiry date or a maximum number of redemptions (source: Stripe documentation, Coupons and promotion codes, as of 2026-11-19).
- You apply the discount yourself, to one customer’s subscription: a coupon is enough.
- Customers enter a code on the checkout page: create a promotion code (the Stripe coupon code they type) on top of the coupon and turn on promotion codes in Checkout or your payment link. Promotion codes are what most people call discount codes, and they’re available in both.
Choose the duration first
A Stripe coupon has one of three durations (same Stripe docs page, as of 2026-11-19):
- Once: the next invoice only. Good for a one-off goodwill credit. A 100% “once” coupon is how a free billing cycle works.
- Repeating: a set number of months (
duration_in_months). This is the answer to the common “how do I discount the next three payments?” question. - Forever: every invoice for as long as the coupon stays on the subscription. We recommend using it rarely: a forever discount is a permanent price change that nobody remembers agreeing to a year later.
On a monthly plan a “3 months” discount means three invoices. On a yearly plan the same coupon covers the yearly invoice it lands on, so the customer may get far more than you meant. The best setting depends on the billing interval, so decide what the duration means for each one before you create anything.
How to create a coupon in Stripe and add it in the Dashboard
- Create the coupon: in the Dashboard, go to Product catalog → Coupons → Create coupon. Set percentage or amount, the duration, and an optional redemption limit.
- Open the customer’s subscription and choose to update it.
- Add the coupon to the subscription, review the upcoming invoice preview Stripe shows, and save.
- Check the next invoice preview again to confirm the discount line and the new total. If you promised a price by email, make sure the two match.
Try it in a sandbox (test mode) first if this is your first time, especially if the subscription is still in its trial period or has several items.
Use the API to apply the discount
With the API, you update the subscription and pass the coupon in discounts. This is the shape Reoffer uses when it applies a discount offer on a founder’s connected Stripe account:
const sub = await stripe.subscriptions.update(
"sub_123",
{
discounts: [{ coupon: "coupon_30_off_3_months" }],
proration_behavior: "none",
cancel_at_period_end: false, // only if the customer agreed to stay
metadata: { reason: "retention_offer" },
expand: ["discounts"],
},
{ idempotencyKey: "discount-sub_123-offer-v1" },
);
Why each field is there:
proration_behavior: "none": a coupon shouldn’t create a mid-cycle proration line the customer never agreed to.cancel_at_period_end: false: if the discount is the reason the customer is staying, the scheduled cancellation has to go. Only send this when that is what they accepted.metadata: Stripe merges metadata by key, so your own keys stay and you can later see why the discount exists.- A stable idempotency key: if the request times out, a retry with the same key can’t apply the discount twice.
Verify and test before a coupon touches a live subscription

These come straight from how Reoffer’s discount code works. It runs every one of them again just before the update, even though they were checked when the offer was shown:
- Read the subscription fresh. Retrieve it right before the update, with discounts and schedule expanded. A plan change, a discount or a cancellation may have landed since you last looked.
- Check its shape. Active, one item, monthly, a fixed price, no discount already on it, no subscription schedule, no pending update. If any of these fail, don’t apply the coupon; show something else.
- Apply with a stable idempotency key, as above.
- Treat a timeout as “unknown”, not “failed”. A 4xx error means Stripe refused and nothing changed, so a retry is safe. A timeout or dropped connection means the update may have gone through. Read the subscription again before telling anyone it failed.
Using a discount as a cancellation offer
The most common reason to discount an existing subscription is a customer on their way out. A discount fits when price is the reason they gave; it’s the wrong offer for “I’m not using it right now” (a pause fits that better). The discount vs free cycle vs pause guide covers which offer fits which reason.
Reoffer is a hosted cancellation offer page for Stripe-billed SaaS businesses. It asks why the customer is leaving and shows one offer that fits. Its discount offer is a percentage off (1–100%) for the next invoice or the next 1 to 24 months, added as a coupon on the customer’s Stripe subscription through Stripe Connect. It runs on monthly plans only, applies from the next invoice, and never touches paid invoices. The customer’s click is recorded as intent. It only counts as a save once Stripe confirms the change (how saves are counted).
If you want help with the checks above and would rather not build them yourself, you can start on the Free plan. It needs no card.
Related: resetting the Stripe billing cycle anchor and churn reduction software features.
No. A coupon added to a subscription applies from the next invoice. Paid and finalized invoices stay as they are, and nothing is refunded.
Create a coupon with duration repeating and set duration_in_months, then add it to the subscription’s discounts. On a monthly plan, 3 months means three invoices.
The coupon holds the terms (amount off and duration). A promotion code is a customer-facing code that points at a coupon, with optional limits like an expiry date or a maximum number of redemptions.
Check that the coupon is on the subscription (not only on the customer or in Checkout), that it hasn’t expired or hit its redemption limit, and look at the upcoming invoice preview. A discount added after an invoice is finalized only shows from the next invoice.
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.