How to create discount codes in Stripe

WINTER20, anyone? Here's how to make a code in Stripe, share it and decide who gets to use it.

Monochrome 3D illustration of a laptop displaying a discount coupon, surrounded by the Stripe logo, a payment card, a price tag and coins, representing how to create discount codes in Stripe.

You're planning a sale or a launch, and you'd like to give people a code such as SPRING20 to type in when they pay. Stripe can do that, though in the Dashboard it's set up as a coupon and a promotion code rather than as a single discount code setting.

Most of what's written about coupons and promotion codes is aimed at developers. If you take payments through Stripe without writing code, you can still set up discount codes for your checkout once you know which of the two does what.

This guide shows you how to create a discount code in the Stripe Dashboard, how to put it in front of customers, where Stripe's codes stop and which limits you can add. It's about codes you give to your own customers, so it won't help if you're looking for money off Stripe's fees.

Quick answer: To create a discount code in Stripe, open the Coupons page in the Dashboard, create a coupon that sets the discount, then add a promotion code to it, which is the word your customers type in. Next, allow promotion codes on your payment link or checkout so the field appears when they pay. You can limit a code by date, number of uses or a minimum spend. Stripe's hosted checkout accepts one code per payment. If you sell through Checkout Page, you create codes in its Coupons section, where a coupon can also be used alongside a bulk discount.

Stripe coupons and promotion codes: which is which

In Stripe, a discount code has two parts that you create together. The coupon sets the discount itself, such as 20% off or $10 off. The promotion code is the word a customer enters to receive that discount.

What it is

Who sees it

Coupon

The discount and its rules

Only you

Promotion code

The word that applies the coupon

Your customers

You can create several promotion codes for the same coupon. Stripe's own example uses FALLPROMO and SPRINGPROMO for a single 25% off coupon, so you can use a different word for the same discount in each campaign.

How to create a discount code in the Stripe Dashboard

Once you know the difference, you can set up both together, because Stripe lets you add the promotion code while you're creating the coupon.

  1. Open the Coupons page. In the Stripe Dashboard, open the Product catalog, click the Coupons tab, then click Create coupon.
  2. Set the discount. Give the coupon a name, which appears on receipts and invoices, then choose a percentage off or a fixed amount. If the discount should only apply to some of your products, tick Limit to specific products and choose them.
  3. Choose how long it lasts. Duration only matters for subscriptions. Left as it is, a coupon applies to one invoice only. To make it last longer, tick Recurring duration and choose a number of months or Forever.
  4. Add the code customers will type. Click Add promo code and enter a code such as SPRING20. If you leave the field empty, Stripe generates a code for you. Click Save promo code, then click Create coupon.

Before you save, it's worth checking the coupon's details. You can edit the name afterwards, but to change the discount itself you'd need to set up a new coupon.

Codes aren't case-sensitive, so spring20 and SPRING20 both work. Two active codes that are open to all customers can't use the same word.

How to share a Stripe discount code with customers

With the code created, you need to turn on a field for it on the page where customers pay, or they'll have nowhere to type it.

  1. Allow promotion codes on your payment link. When you create a payment link in the Dashboard, you have the option of adding promotion codes. With that option on, customers see a field on the payment page where they can enter the code.
  2. Send a link with the code already filled in. For an email or a social post, you can add Stripe's prefilled_promo_code parameter to the end of the payment link, for example ?prefilled_promo_code=SPRING20. The customer opens the page with the code already entered.
  3. Test it before you announce it. Open the link yourself, enter the code and check that the total drops by the right amount on the right products. You can do this in a Stripe sandbox, so no real payment is needed.

If a developer built your checkout, you can ask them to switch on allow_promotion_codes for your Checkout Sessions. This adds the promotion code field to Stripe Checkout.

Where Stripe discount codes stop, and what you can do

Once your first code is live, you may run into a few things a Stripe discount code won't do on its own. A checkout tool that runs on your Stripe account can help with some of them. We've used Checkout Page as the example, and the last two points cover where it does no more than Stripe, or less.

One code per payment. Stripe's hosted checkout page accepts one coupon or promotion code per payment, so a customer can't add a sale code on top of another offer. Inside Stripe, the workaround is a single coupon set to the combined discount. A Checkout Page checkout can apply a bulk discount as well as a code. The bulk discount comes off first, then the code applies to what's left.

Three $16 prints with a 10% bulk discount and a 20% code work out like this:

Amount

Subtotal (3 x $16)

$48.00

Bulk discount (10%)

-$4.80

Coupon (20%)

-$8.64

Total due

$34.56

A discount for buying more. A promotion code has to be entered, either typed in or filled in from the link. A bulk discount works differently. You set a rule such as 10% off three or more, and the lower price applies automatically when the customer reaches that quantity. In Checkout Page, bulk discounts are available on Launch and higher plans.

A code for one price or one ticket type. In Stripe, you can limit a coupon to specific products, and the limit covers every price of that product. If each ticket type is its own product, that does the job. If one product has several prices, or you sell tickets with Stripe for an event with several ticket types, a Checkout Page coupon can be limited to the prices or ticket types you choose, such as a student ticket.

A pre-filled code on an embedded checkout. Stripe documents its prefilled_promo_code parameter for payment links. Checkout Page has its own version, ?coupon=SPRING20, which you add to the end of your checkout URL. It works on hosted pages, pop-ups and embeds, and the discount is applied when the checkout opens.

First-order codes on payment links. By default, Stripe creates a guest customer for each one-time payment through a payment link. Stripe's documentation says that, as a result, codes limited to first-time orders won't work as expected there. Checkout Page coupons don't have a first-order limit. For a welcome offer, you could use a short expiry date or a small number of uses instead, though neither stops a returning customer from using the code.

Minimum spend and named customers. A Stripe promotion code can require a minimum order value or be limited to one named customer. Both are covered in the next section. A Checkout Page coupon has no minimum spend setting. Instead of one named customer, you can limit it to an audience segment, which is a group of customers you set up first.

Checkout Page runs on your own Stripe account, and you create discount codes in its Coupons section. Each code is also saved as a coupon in your Stripe account. As with Stripe, you can't change the code or the discount after creating it. The coupon code guide in our help center lists every field.

Create a discount code free

Limits you can set on a Stripe discount code

Once the code is working, you can set limits on who can use it and for how long. Stripe applies some limits to the coupon and others to each promotion code, which means codes sharing one coupon can each have their own expiry date or limit.

Limit

Where you set it

What it does

Expiry date

Coupon or code

Stops new uses after a date

Number of uses

Coupon or code

Caps total redemptions

First order only

Code

New customers only

Minimum order value

Code

Needs a minimum spend

One named customer

Code

Only that customer can use it

Specific products

Coupon

Discounts those products only

Limits on a code can't exceed the coupon's. A code can't expire later than its coupon, and it can't allow more uses than the coupon does. You might give a coupon 50 uses in total and let one campaign's code use 20 of them.

The number of uses is a total. A limit of 50 means 50 redemptions across all your customers, not 50 for each customer.

A minimum order value is checked once on subscriptions. Stripe checks whether the minimum is met when a customer redeems the code. This means the minimum only applies to the subscription's first payment.

If you need to stop a code before it expires, open the coupon, find the code and choose Archive promotion code. Deleting the coupon archives all its codes, but customers already on discounted subscriptions keep their discount.

For developers: on the promotion code, the same limits are max_redemptions, expires_at, customer and the restrictions settings (first_time_transaction, minimum_amount). On the coupon, they are redeem_by and applies_to. Stripe's promotion codes documentation has the full list.

Our guide to upselling and cross-selling covers when an add-on offer may suit you better than a discount.

If you'd like to try Checkout Page's coupons, you can start on the free plan and connect your own Stripe account.

Stripe discount codes FAQ

Can Stripe do discount codes?

Yes, Stripe supports discount codes, though it calls them promotion codes. You create a coupon in the Dashboard to set the discount, add a promotion code that customers type in, and allow promotion codes on your payment link or checkout. You don't need a developer for any of this if you use payment links.

Can customers use more than one Stripe discount code?

No, not on Stripe's hosted checkout page, where customers can enter one coupon or promotion code per payment. Subscriptions work differently: you can add up to 20 discounts to a subscription from the Dashboard or the API. If you'd like two offers to combine at checkout, you can create one coupon set to the combined discount.

Can a Stripe discount code be 100% off?

Yes, a coupon can take 100% off. On payment links, Stripe allows orders that cost nothing by default for accounts created after August 17, 2023. If your account is older, you turn on no-cost orders in your Checkout settings first. For subscriptions, it's worth checking the coupon's duration so the discount ends when you expect.

Do Stripe fees apply to the discounted amount?

Yes, Stripe calculates its processing fee on what the customer pays after the discount. For an $80 US card payment after the discount, the fee is 2.9% plus 30 cents, or $2.62. When the customer pays less, the fee is slightly lower too. You can use the Stripe fee calculator to work out the fee for other prices.

Ready to start selling?

Free up to $3K in monthly sales. No credit card needed.

Start for free

Share this article


Sarah McCunn

Sarah McCunn

Sarah is a content writer, retreat facilitator and coach. She has a passion for helping businesses and people grow.


Try Checkout Page for free

Free up to $3K in monthly sales. No credit card needed.