A coupon is just a code (like SUMMER25) that customers enter before paying, to get a percentage or fixed amount off. Great for holiday sales, rewarding repeat customers, or pairing with a popup to give out a deal.
Where to find it
- Backend → Business → Coupons (same spot on mobile)
- Where customers enter a code:
- The store's cart page
/cart(clicking "Buy now" on a product page, or "Checkout" in a funnel step, both land here) - "Have a coupon code?" on the course / single-item payment page (click it to reveal the input box)
- PayPal and WeChat Pay / Alipay (RMB) buttons on that same page — both charge the discounted price once a code is applied
Know your two discount types first
| Type | What you enter | Example |
|---|---|---|
| Percent | "Discount %", a whole number from 1 to 100 | Enter 20 = 20% off, so a $100 item costs $80. It's not "pay 20%" |
| Fixed amount | "Amount off (cents)", in cents | Enter 1000 = $10 off |
- Discounts apply only to the product subtotal — shipping is never discounted; the total can drop to $0 but never goes negative
- Only one code per order
- When paying in RMB via WeChat Pay / Alipay, the RMB price is discounted by the same proportion: a percent code works exactly the same; a fixed-amount code is converted using the proportion it takes off the USD price
- An order that comes to $0 after the discount can't be placed (the customer is told to contact the merchant)
Creating a coupon in the backend
- Backend → Business → Coupons, click "+ Create coupon" in the top right
- "Code (uppercase letters + digits)": whatever you type is automatically uppercased. 3 to 50 characters, letters, digits, underscores, and hyphens only
- "Description (optional)": a note for your own reference
- Choose "Type" — "Percent" or "Fixed amount" — then fill in "Discount %" or "Amount off (cents)"
- "Max uses (0 = unlimited)": how many times the code can be used storewide
- "Expiry date": leave blank for no expiry
- "Limit to products (none selected = all products)": check specific items and the code only works on those — and only discounts those items' amounts; other items in the cart aren't discounted
- Click "Create"
The list shows: code, type, discount, applicable products, usage, expiry, and status.
- To pause a coupon temporarily: click "Disable" on that row; click "Enable" to bring it back
- There's no edit or delete button in the backend list. To change the use limit or expiry, ask the AI to do it (see below)
Subscription (recurring) products
- Codes work on subscriptions too: once a customer redeems a code, every future billing cycle is charged at the discounted price; if they cancel and resubscribe later, they pay full price
- Two kinds of codes are rejected on subscriptions: ones that make the subscription fully free (100% off), and ones whose amount off is more than one billing cycle's fee. The customer sees a message asking them to try a smaller discount code
- PayPal and WeChat Pay / Alipay don't support recurring billing — they can only be used for one-time products
How customers use it
- The customer enters the code and clicks "Apply"
- On success, they see how much they saved, and the total updates to the discounted amount; clicking "Remove" undoes it
- If the code doesn't work, they only see "This coupon is invalid or doesn't apply" — it never says separately whether it doesn't exist / is disabled / expired / fully used, so people can't fish for the right reason by trial and error
- At payment time, the system recalculates against the coupon stored in the database — customers can't alter the price on the page
Seeing how many times it's been used, and by whom
- The "Usage" column in the list shows uses so far / limit. Codes that have been used show "Who used it" next to them — click it to see the time, customer, order number, and amount saved for each use
- "Saved in total" is calculated separately per currency (USD and RMB amounts are never added together)
- In the backend "Orders" list, orders that used a code show "Coupon XXX" below the amount
- A redemption only counts once payment succeeds. If a customer clicks "Apply" but never pays, it doesn't count
- Refunds don't restore the use count
Giving out codes through a popup
Backend → Site → Popups, enter the coupon code (e.g. "EARLY30") in the popup's coupon field, and visitors will see that code in the popup along with "Copy this code and use it at checkout."
The popup only displays the text — it doesn't create the coupon for you. Create the matching code on the Coupons page first, then put it in the popup.
Letting the AI handle it
- "List all coupons": the AI calls
list_coupons, showing each code's discount, limit, uses so far, whether it's enabled, and expiry - "Which codes were used in recent orders": the AI calls
list_orders, and each order includescouponCode - "Create a SUMMER25 code, 20% off, limited to 100 uses, expiring December 31": the AI calls
upsert_coupon - "Turn off SUMMER25": the AI calls
delete_coupon— this only disables it, it's never actually deleted, and the usage history stays intact
The AI has limits when creating codes (a code is money):
- It can only create percent-based codes, capped at 30% off; fixed-amount codes, or codes with a bigger discount, have to be created in the backend
- An expiry date (no more than 1 year out) and a max-use limit are both required
- On the platform's own site, the AI can only look up coupons, not create them
- The response includes a
readsAsline, showing exactly what a real product of yours would cost with that code applied. Have the AI read it back to you to double-check — so "20% off" never gets mixed up with "pay 20%"
FAQ
- Q: I entered 20, but the customer says they only got 20% off the price?A: That's correct — 20 means 20% off. If you want the customer to pay only 20% of the price, enter 80.
- Q: A customer says the code is invalid?A: Customers only ever see "invalid or doesn't apply." Check these in the backend, in order: is the coupon "Disabled," has the expiry date passed, is the use limit reached, is it limited to products the customer isn't buying, and for subscriptions, is it a 100%-off code or one worth more than a cycle's fee. Case doesn't matter — the system uppercases it automatically.
- Q: Can it still be used once the limit is reached?A: No. To keep offering it, ask the AI to raise the max-use limit with
upsert_coupon, or create a new code in the backend.
Related articles
- "E-commerce products and shipping" (shop-products-shipping)
- "Orders and refunds" (orders-and-refunds)
- "Selling monthly / annual memberships (recurring billing)" (subscription-products)