AG ADMIN | Discount Codes

Discount Codes

Mint single-use percent-off codes for the Stealth 5-Day Plan subscription. Codes drop into Shopify automatically.

Mint a code

100 = first month free.
Random suffix is added automatically.
Empty = anyone can redeem.
How long the code stays redeemable.
100% off + "1 month" = first month free. After that the customer pays full price.

Recent codes

Code % Customer Uses Expires Minted
Loading...

How it works

What this is. A staff tool for minting bespoke discount codes — primarily used for the 5-Day Plan subscription welcome flow and one-off customer comp codes. Backend lives in the TMB Apps Script (admin_mintDiscount).

Codes minted here:

  • Are real Shopify Price Rules — they appear in Shopify admin under Discounts and work at checkout immediately.
  • Are tagged with attribution so we can see which staff member minted what (visible in the table below).
  • Default to per-customer-locked if you set a customer email — the code only works when that email is on the order.
  • Auto-expire on the date you set (no expiry = "forever" — usually a bad idea).

When to use this vs Shopify admin direct:

  • Use this tool when you want the audit trail of who-minted-what + the customer-locked default.
  • Use Shopify admin direct for one-off public codes (e.g. press / marketing campaigns where many customers will use the same code).

Troubleshooting:

Customer says the code "doesn't work"
Check: (a) is it customer-locked to a DIFFERENT email? (b) has it expired? (c) is the customer trying to combine with another discount — Shopify on the non-Plus plan only allows one code per order.
"Failed to mint" error
Usually Shopify Admin API throttle. Wait 30s and try again. If it keeps failing, the admin password may be locked out after too many wrong tries — wait 15 min.
Existing code shows wrong customer / expiry
Edit directly in Shopify admin → Discounts. This tool is mint-only; edits don't sync back.