> ## Documentation Index
> Fetch the complete documentation index at: https://docs.foundable.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Give buyers a discount code

> Ask Ted to make a discount code buyers type at checkout, to run a sale or thank your regulars.

A discount code takes a percent or an amount off at checkout. Buyers type it on Stripe’s checkout page, from a Buy button, a payment link or your website’s own cart.

Ted can do this for you: ask him to make a code, and to end it when the sale is over.

## Before you start

* **Only the owner or an admin can ask Ted for a code.**
* **[Payments](https://docs.foundable.com/payments/overview.md) must be set up.** Ted makes each code on your own Stripe account.

**1. Ask Ted in the chat**

[Tell Ted](https://docs.foundable.com/ted/chat.md) the code buyers type, in letters, numbers and dashes, and what it takes off. For example:

```text wrap theme={null}
Make a code SPRING20 for 20% off everything until May 31.
```

**2. Add any limits**

Tell Ted which products it’s for, when it ends, and how many sales can use it. For a monthly or yearly subscription, say whether it takes off the first payment, every payment, or a number of months.

**3. Share the code**

Once Ted has made it, share it in an email or a post. While your business has a code buyers can use, Stripe’s checkout page shows a box to type it.

**4. End it when you’re done**

Ask Ted to end the code, and buyers can no longer use it. A code you made yourself in your Stripe Dashboard ends there.

## Check that it worked

Ask Ted which codes are live. He lists the codes he made, and where each stands.

To see it as a buyer, press a Buy button on your live website. Stripe’s checkout page has a place to add a promotion code. Type yours to see the new total, then leave without paying. A [test purchase](https://docs.foundable.com/payments/test-mode.md) never shows the box.

## If something goes wrong

> [accordion] Ted says the code is taken
>
> A code made before reads the same, whatever the letters’ case, even past its end date. Pick other words, or ask Ted to end the old one first.

> [accordion] The checkout has no box for a code
>
> No code is live: each one ended, was used as many times as it allows, or isn’t made yet. Ask Ted where your codes stand.

> [accordion] The code takes nothing off a product
>
> The code is for other products only, or it takes off an amount in another currency. Ask Ted for a code that covers this product.

## FAQ

> [accordion] Does a discount show in my sales?
>
> Yes: **Recent transactions** shows what each buyer paid, after the code. See [Track your sales and give refunds](https://docs.foundable.com/payments/sales-and-refunds.md).

> [accordion] Can buyers choose how many they buy?
>
> Yes, for a one-time product: ask Ted to let buyers pick a quantity. Stripe’s checkout page then shows a quantity picker, from its Buy button and its payment link. See [Sell on your website](https://docs.foundable.com/payments/sell-on-your-website.md).

> [accordion] Can buyers agree to my terms before they pay?
>
> Yes, for a download or other digital content that starts at once. Give Ted the sentence buyers agree to and a link to your terms page. Buyers tick it on Stripe’s checkout page from the Buy button, and its payment link stops selling while it’s on. See [Sell on your website](https://docs.foundable.com/payments/sell-on-your-website.md).

## Related

> [card] [Sell on your website](https://docs.foundable.com/payments/sell-on-your-website.md)
>
> Ask Ted for a product and its Buy button.

> [card] [Offer a free trial](https://docs.foundable.com/payments/free-trial.md)
>
> Let new subscribers try before they pay.

> [card] [Track your sales and give refunds](https://docs.foundable.com/payments/sales-and-refunds.md)
>
> See what sold and refund a sale.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.