---
title: "Create coupon codes for the apps you build"
description: "Create coupon codes in your Hercules app for a percentage or a fixed amount off, and limit each one by its duration, expiration date or total redemptions."
---

# Create coupon codes for the apps you build

Coupons in Hercules Commerce are discount codes your customers enter at checkout. You pick the code, take a percentage or a fixed amount off, and cap the coupon by duration, expiration date or total redemptions.

- **Percentage or fixed.** Take 25% off, or subtract a set amount.
- **Built-in limits.** End a code on a date or after a set number of uses.
- **Redeemed at checkout.** Customers type the code into the Add promotion code field.

## What can you set on a coupon?

### Name the code customers type

Give the coupon the code people will enter, such as SPRING25 or LAUNCH50. Pick a code someone can read off a postcard or a truck door. [Coupons](https://hercules.app/docs/apps/commerce/coupons)

### Choose a percentage or a fixed amount off

Pick the discount type, then enter the value, such as 25% off or $20 off. A percentage grows with the price, and a fixed amount takes the same sum off every order. [Coupons](https://hercules.app/docs/apps/commerce/coupons)

### Set how many payments the discount covers

A duration of once discounts only the first payment, repeating discounts a set number of months, and forever discounts every payment. A repeating coupon set to three months takes the discount off the first three monthly payments of a plan. [Coupons](https://hercules.app/docs/apps/commerce/coupons)

### End it on a date or after a number of uses

An expiration date closes a seasonal offer on schedule. A maximum number of redemptions holds a launch offer to, say, its first 100 uses. [Coupons](https://hercules.app/docs/apps/commerce/coupons)

### Disable a code and keep its history

Disable a coupon when an offer ends early or a code turns up on a deal site. Customers can't redeem it after that, and its past redemptions stay in Commerce. [Coupons](https://hercules.app/docs/apps/commerce/coupons)

## How do you run a promotion with coupons?

### 1. Create the coupon

Go to Coupons in the Commerce tab, click Create Coupon, and fill in the code, the discount and its restrictions. Hercules Commerce then adds an Add promotion code field to your checkout page. [Coupons](https://hercules.app/docs/apps/commerce/coupons)

### 2. Put the offer on your pages

> Add a banner to the booking page that says "Enter SPRING25 at checkout for 25% off a tune-up before May 31."

Hercules adds the banner. Ask it to hide the banner after May 31 too, when the coupon expires.

### 3. Try the code at checkout

Publish the app, open it in a separate tab, and check out with your own card and SPRING25. Hercules Commerce applies the discount, and you refund yourself afterward, because Commerce has no test mode. [Testing](https://hercules.app/docs/apps/commerce/testing)

## What could a spring campaign look like?

In this hypothetical example, a heating and cooling company uses a coupon to fill spring maintenance appointments. They sell maintenance plans through a Hercules website. In March they mail postcards offering TUNEUP25 for 25% off the first payment, capped at 300 uses and expiring May 31, so the total discount stays within the spring budget. In April the code shows up on a coupon site, so the office disables it and mails a new code to customers who hadn't booked.

## What should you know before you run a coupon?

- You are the merchant of record, the seller legally responsible for each sale, so tax on discounted sales is yours to handle. [Compliance](https://hercules.app/docs/apps/commerce/compliance)
- Commerce checkout doesn't support custom fields yet. [Products & Features](https://hercules.app/docs/apps/commerce/products-features)
- See what each Hercules plan includes on the [pricing page](https://hercules.app/pricing).

## Related features

- Use [Hercules Commerce](/features/payments) to run checkout and prices when you need something for a coupon to discount.
- Use [Subscriptions](/features/subscriptions) to sell monthly or annual plans when you want a repeating coupon to keep discounting.
- Use [Customers](/features/customer-management) to see what each customer paid when you need to check a discount or issue a refund.
- Use [Hercules Email](/features/email) to send from a verified address when you want to email a code to past customers.

## How do you get started?

Open Coupons in the Commerce tab of any app that takes payments, and create your first code. Start building.

## Frequently asked questions

### Do coupons work on one-time purchases?

Yes. Hercules Commerce coupons work on plans and one-time products alike. For a one-time sale, choose a duration of once.

### Can I make a code for one customer?

To give one customer a Hercules Commerce coupon, set its maximum redemptions to one and send the code only to that customer. The first person to enter it uses it up.

### What happens with a 100% off code?

A fully discounted order creates no payment, so it never shows up in a customer's payments. Ask Hercules to confirm each checkout from your app's server instead, and to record each order exactly once per checkout. [Commerce integration](https://hercules.app/docs/apps/commerce/integrate-into-my-app)

### Do coupons work in my Google Play or App Store app?

Hercules Commerce coupons work in Google Play and App Store apps for physical goods and real-world services. Digital content and subscriptions used in a store app must use the store's billing, which Hercules builds don't include. Some regions allow other payment systems, which Hercules doesn't set up. [Selling in store apps](https://hercules.app/docs/apps/mobile/store-requirements)

```json
{
  "@context": "https://schema.org",
  "@type": "FAQPage",
  "mainEntity": [
    {
      "@type": "Question",
      "name": "Do coupons work on one-time purchases?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "Yes. Hercules Commerce coupons work on plans and one-time products alike. For a one-time sale, choose a duration of once."
      }
    },
    {
      "@type": "Question",
      "name": "Can I make a code for one customer?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "To give one customer a Hercules Commerce coupon, set its maximum redemptions to one and send the code only to that customer. The first person to enter it uses it up."
      }
    },
    {
      "@type": "Question",
      "name": "What happens with a 100% off code?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "A fully discounted order creates no payment, so it never shows up in a customer's payments. Ask Hercules to confirm each checkout from your app's server instead, and to record each order exactly once per checkout. Commerce integration"
      }
    },
    {
      "@type": "Question",
      "name": "Do coupons work in my Google Play or App Store app?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "Hercules Commerce coupons work in Google Play and App Store apps for physical goods and real-world services. Digital content and subscriptions used in a store app must use the store's billing, which Hercules builds don't include. Some regions allow other payment systems, which Hercules doesn't set up. Selling in store apps"
      }
    }
  ]
}
```
