# Create a coupon (/merchants/coupons-create)

You create a coupon in a dialog on the **Coupons** tab: a name, a code, the discount and, for
subscriptions, how long it lasts. The limits are optional. The code, the discount and the duration
are fixed for the coupon's life; the name and the limits can be changed later.

## Before you start [#before-you-start]

* Your account is approved. Before approval, **New coupon** opens the approval dialog instead.
* You have fewer than 100 coupons that are not archived. Expired and Used up coupons count until you
  archive them.

## Steps [#steps]

**Step 1.**

### Open the dialog [#open-the-dialog]

In the sidebar, click **Products**, then the **Coupons** tab at the top of the page, then **New
coupon** (or click **New** in the top bar, then **Coupon**). The "New coupon" dialog opens with a short note, "Before you create a coupon", then three
parts: "Coupon", "Discount" and "Limits (optional)".

![The New coupon dialog: Name, Code with a Generate button, and Discount type with Percentage selected and Percent off.](/screenshots/coupons/new.webp)

**Step 2.**

### Name it and choose the code [#name-it-and-choose-the-code]

* **Name** ("Only you see this."): up to 80 characters, for your own use. Payers never see it; the
  checkout page shows the code.
* **Code**: 3 to 32 letters, numbers and dashes, such as `SPRING-25`. Fianto stores it in capitals,
  and payers can type it in upper or lower case. **Generate** fills in a random 10-character code.

Another coupon that is not archived can't use the same code. An archived coupon's code can be used
again.

**Step 3.**

### Set the discount [#set-the-discount]

Under "Discount type", pick one:

* **Percentage**: type the "Percent off", from 1 to 99, with at most two decimals (for example
  `12.5`).
* **Fixed amount**: type the "Amount off" in USDC, from 0.01 to 1,000,000, with up to 6 decimals.

The discount is taken off the price of each checkout the code is used on. A payer always pays at
least 0.01 USDC for the price: where the discount would leave less, the code is refused for that
purchase. See [What a code takes off](/merchants/coupons#what-a-code-takes-off).

**Step 4.**

### Choose how long it lasts on subscriptions [#choose-how-long-it-lasts-on-subscriptions]

"Duration" ("For subscriptions: which charges get the discount. A one-time payment is discounted
once.") has three choices:

* **First payment only**: the first charge of a subscription.
* **Several billing periods**: then type "Billing periods", from 1 to 120: the number of charges,
  from the first, that get the discount.
* **Every payment**: every charge of the subscription.

Charges after the discount are at the full price.

**Step 5.**

### Set limits, if you want to [#set-limits-if-you-want-to]

Under "Limits (optional)":

* Tick **Expires on a date** to show a date and time field. It reads the time in the dashboard's
  time zone, which the hint under the field names, for example "In UTC (Settings → Times and
  dates)." The date must be more than one minute and at most five years from now. Leave it empty and
  the coupon doesn't expire.
* Tick **Limit redemptions** and type a whole number from 1 to 1,000,000 ("Counts paid redemptions
  only. The code stops working once this many are paid."). Leave it empty for no limit.
* Tick **Once per wallet** ("A wallet that has paid with this code can’t use it again.").

![The New coupon dialog scrolled down: Duration with Several billing periods selected and Billing periods filled in, Limits (optional) with Expires on a date, Limit redemptions and Once per wallet ticked, and the Create coupon button.](/screenshots/coupons/new-limits.webp)

**Step 6.**

### Create and share the code [#create-and-share-the-code]

Click **Create coupon**. If something needs fixing, the dialog says so beside the field and keeps
what you typed. Otherwise the dashboard opens the coupon's page. Copy the code with **Copy code**
and give it to your customers. From now on, every checkout page you take offers the "Discount code"
field.

## Check it worked [#check-it-worked]

> The coupon's page shows the code, the status Active, the discount and the duration. Open one of your
> payment links, or a checkout your server created, in a private window: the page shows a "Discount
> code" field, and applying your code adds a "Discount" row to the price breakdown.

## Troubleshooting [#troubleshooting]

| You see | Why | Fix |
|---|---|---|
| "Use 3 to 32 letters, numbers or dashes." | The code is too short, too long, or has a space or another character. | Use only letters, numbers and dashes, 3 to 32 of them. |
| "Another active coupon already uses this code. Pick another code or archive that coupon." | A coupon that is not archived has this code. | Pick another code, or archive the other coupon first. |
| "A percent from 1 to 99, with at most 2 decimals." | The percentage is out of range or has more than two decimals. | Type a number from 1 to 99. |
| "Between 0.01 and 1,000,000 USDC" | The fixed amount is out of range. | Type an amount from 0.01 to 1,000,000. |
| "A whole number from 1 to 120." | You chose Several billing periods without a valid number of periods. | Type how many charges get the discount. |
| "Pick an expiry between one minute and five years from now." | The expiry is too close or too far. | Pick another date, or untick Expires on a date. |
| "Finish the date or clear it." | The expiry is only partly typed. | Fill in the whole date and time, or clear the field. |
| "You have reached the number of active coupons you can keep. Archive one before you create another." | You have 100 coupons that are not archived. | Archive a coupon you no longer use. |
| "Coupons aren’t available yet" | Coupons are switched off on Fianto: "Coupons are not open on Fianto yet. Check back later." | Check back later. |

## See also [#see-also]

- [Coupons](/merchants/coupons): How a code works, statuses and limits.

- [Manage your coupons](/merchants/coupons-manage): Edit, archive, and see paid redemptions.

- [Paying with Fianto](/payers/paying-with-fianto#using-a-discount-code): What your payers see.