Skip to content
Stripe

How to create a discount code in Stripe

With Stripe you can create discount codes for campaigns, influencer partnerships or one-off promotions, and your customers enter them on your store's checkout page. Each code has its own percentage, expiry date and, if you want, a usage limit. Follow these steps from your Stripe dashboard. Important: the discount must always apply to the whole cart, never to specific products (step 3).

1

Go to Coupons

In your Stripe dashboard, open Product catalog and go to the Coupons tab. There you'll see your existing coupons, with their conditions, how many times they've been redeemed and whether they're active. Click Create coupon in the top right.

A coupon defines the discount (for example, 15% off). Customers don't type the coupon itself but a promotion code linked to it, which you'll create in step 4. That way you can have several different codes (one per influencer, for example) with the same discount.

Coupons tab in Stripe's product catalog with the Create coupon button
2

Set the discount

In the Create a coupon window:

• Name: one you'll recognise, for example "Black Friday 15%". It appears on customers' receipts and invoices. • ID: leave it blank and Stripe will generate it. • Type: choose Percentage discount (the most common one) and enter the percentage. You can also choose a fixed amount discount, for example 100 MXN, in your store's currency. • Duration: leave it as "Once". On a normal purchase the discount applies to that payment.

Stripe's Create a coupon form with name, discount type, duration, redemption limits and codes
3

Apply it to the whole cart, not to specific products

Leave Apply to specific products turned off. The discount must always apply to the whole cart, so that totals, returns and refunds in your orders panel always match what was charged. A coupon limited to specific products would make partial refunds return an amount that doesn't add up.

Note that the discount applies to products, not to shipping.

Apply to specific products turned off and duration Once in the coupon form
4

Create the code your customers will use

At the bottom of the form, under Codes, turn on customer-facing promotion codes and type the code in the Code field, for example MEDELA15. This is what your customers will type at checkout, so keep it short and easy to remember, in capitals and without spaces. If you leave it blank, Stripe generates one.

With Add another code you can create more codes for the same coupon, for example one per influencer, to see how many sales each one brings.

Customer-facing promotion codes turned on and the Code field in Stripe
5

Set the validity and limits

Under the code you'll find its options:

• Add an expiration date: after that date the code stops working. • Limit the number of times this code can be redeemed. • First-time order only: it only works on each customer's first purchase. • Require a minimum order value. • Limit to a specific customer.

If you want a limit to apply to all of the coupon's codes at once, use Redemption limits, just above Codes. When you're done, click Create coupon.

Promotion code options in Stripe: first order, specific customer, number of redemptions, expiry date and minimum order
6

Check it in your store

Add a product to your store's cart and go to checkout. On the payment page you'll see "Add promotion code". Type the code: Stripe applies it straight away and you'll see the discount and the new total before paying. If the code doesn't exist or has expired, Stripe says it isn't valid and the customer can pay the normal price.

Stripe checkout page with a 15% discount code applied
7

How the order looks in your panel

In your orders panel, open the order. In the Payment summary you'll see:

• Subtotal: the price of the products before the discount. • Discount, with the code the customer used in brackets. • Shipping, if any. Shipping is never discounted. • Total: what the customer actually paid.

If you refund an order with a discount, the customer gets back the price they paid, not the list price. In the orders export the discount has its own column, "Descuento".

Payment summary of an order in the panel with the Discount line and the code used
8

Check usage and end the campaign whenever you want

Open the coupon from Product catalog → Coupons. Its page shows the type, the conditions, how many times it has been redeemed (under Usage) and whether it's still valid.

To end a campaign before its expiry date:

• To stop all of its codes at once, click "⋯" in the top right and choose Delete coupon. • To stop just one code (for example, an influencer's), scroll down on the same page to the list of promotion codes and deactivate that code.

Either way, orders already placed with the code don't change: the discount that was applied stays.

A coupon's page in Stripe with its type, conditions, redemptions and the Delete coupon option