# Coupons (/merchants/coupons)

A coupon is a discount code you make in the dashboard. A payer types the code on Fianto's checkout
page and pays less, in USDC. You find coupons under **Products**, on the **Coupons** tab at the top of
the page ("Codes your customers type at checkout to pay less.").

A coupon is not tied to a product. While you have a coupon that is not archived and not past its
expiry date, the checkout page offers a "Discount code" field on every checkout you take: checkouts
your server creates through the API, your [payment links](/merchants/payment-links) and your
[shop](/merchants/shop), for one-time payments and subscriptions alike. There is no product, price or
minimum purchase to set.

## How a code works [#how-a-code-works]

1. You create a coupon with a code, for example `SPRING-25`, and hand the code to your customers
   wherever you like.
2. On the checkout page, the payer types it under "Discount code" and presses **Apply**. Upper or
   lower case both work.
3. The page shows "Code SPRING-25 applied", and the price breakdown lists your price, then a row
   "Discount (SPRING-25)" with the amount taken off. The total now reads the discounted price.
4. The payer pays as usual. The discounted price goes to your wallet.

A checkout carries one code at a time: a payer who applies another code replaces the first, and
**Remove** goes back to the full price. Once the payer has pressed Pay, the code can no longer
change on that checkout.

![Fianto's checkout page with a discount code applied: the price, a Discount row with the code and the amount taken off, the Fianto fee, the network fee and the total, then Code applied with a Remove button.](/screenshots/coupons/checkout-code.webp)

*Amounts are demo values.*

## What a code takes off [#what-a-code-takes-off]

* **Percentage**: from 1 % to 99 % of the price, with at most two decimals. The discount is rounded
  down to the smallest USDC unit, so rounding never takes off more than the percentage.
* **Fixed amount**: a USDC amount from 0.01 to 1,000,000, taken off the price as it is.

A payer always pays at least 0.01 USDC for the price. If a discount would leave less than that, the
code is refused for that purchase ("This code cannot be used for this purchase.") and the payer can
pay the full price instead. No code makes a purchase free.

### On a checkout that offers a card [#on-a-checkout-that-offers-a-card]

When a checkout would offer a card at the discounted price, the discounted price is rounded **down** to
whole cents, and the discount grows to match. A checkout has one amount, so a card and a wallet pay the
same. On a checkout that offers no card, the exact 6-decimal price stays. On a checkout that takes only a
card, a code that would leave the price unpayable by card is refused.

> **Fees on a discounted price:**
>
> The discount comes off your price. Fianto's service fee is then worked out on the discounted price,
> at the same rate as before. The network fee in USDC does not change with a code.

## Subscriptions [#subscriptions]

For a subscription, **Duration** decides which charges get the discount:

| Duration                  | Charges with the discount                       |
| ------------------------- | ----------------------------------------------- |
| "First payment only"      | The first charge, when the payer subscribes.    |
| "Several billing periods" | The first 1 to 120 charges, the number you set. |
| "Every payment"           | Every charge, for the life of the subscription. |

Later charges are at the full price. A one-time payment is discounted once, whatever the duration.

The discount is copied onto the subscription when it starts. Renewals read that copy, never the
coupon, so archiving the coupon or changing its limits later changes nothing for subscriptions that
already have it.

When subscribing, the payer's wallet still approves your plan's full price as the most it can be
charged each period. Fianto charges the discounted amount while the discount lasts, then the full
price.

## Statuses [#statuses]

The dashboard works out a coupon's status every time it is read. The first that applies wins:

| Status   | Meaning                                         |
| -------- | ----------------------------------------------- |
| Archived | You archived it. Final: it can't be used again. |
| Expired  | Its expiry date has passed.                     |
| Used up  | Its paid redemptions have reached its limit.    |
| Active   | None of the above: payers can use the code.     |

Because the status is worked out, a later expiry date or a higher limit makes an Expired or Used up
coupon Active again.

## Limits [#limits]

All three are optional, and you can change them after creating the coupon.

* **Expires on a date**: from that moment the code is refused.
* **Limit redemptions**: a whole number from 1 to 1,000,000. It counts paid redemptions only: a
  checkout paid with the code, or a subscription that started with it. Codes typed but never paid
  are not counted.
* **Once per wallet**: a wallet that has paid with the code can't use it again. It is checked
  against the paying wallet, not against an email or a customer.

The limit and once per wallet are checked again when the payer presses Pay, before their wallet
opens. Payers who are paying with the code at that moment count toward the limit, and each holds a
place for 5 minutes. A payment that reaches Solana after its place ran out still settles and counts,
so a coupon can end up a little over its limit.

## What a coupon can't do [#what-a-coupon-cant-do]

* The code, the discount and the duration can't be changed after you create it. To change them,
  archive the coupon and make a new one.
* You can't delete a coupon: you archive it, and an archived coupon can't be brought back.
* A coupon is not limited to some products or prices, and has no minimum purchase.
* Coupons live in the dashboard only. Your server can read the discount on checkouts, orders and
  subscriptions, but there is no v1 endpoint or SDK method that makes or applies a code. See
  [Discounts in your integration](/developers/checkout-sessions#discount-codes).
* The devnet sandbox has no coupons and no discount code field.

## Before approval [#before-approval]

The **Coupons** tab opens before Fianto approves your account, but its list is empty and **New
coupon** opens the same dialog as other actions before approval. See
[Review and approval](/merchants/review-and-approval).

## What you can do [#what-you-can-do]

- [Create a coupon](/merchants/coupons-create): Pick a code, the discount, the duration and the limits.

- [Manage your coupons](/merchants/coupons-manage): Find coupons, edit their limits and archive them.

- [See redemptions](/merchants/coupons-manage): Each coupon's paid redemptions, with CSV export.

- [What payers see](/payers/paying-with-fianto#using-a-discount-code): A Discount code field on the checkout page.

## See also [#see-also]

- [Create a coupon](/merchants/coupons-create): Every field of the New coupon form.

- [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 when they type a code.