For AI Agents
Hand your agent this brief or the ReUI MCP, not a screenshot. Installs with a ReUI Pro or Ultimate license.
Best for: Promo codes with copy to clipboard, redemptions shown against a limit, percent or fixed tabs and a create dialog that rejects duplicates
When to use
- A back office for billing operators: the invoice ledger, subscriptions, a dunning queue and metered usage
- Plan and discount admin: editing the plan catalog and coupon rules, or moving a subscription to a new tier
- One customer's billing account seen by staff, or an invoice built line by line and then sent
When not to use
- Editing plan tiers, prices and entitlements rather than discount codes: use the Plan Catalog block
- A public page where visitors compare plan tiers and pick one before signing up: use the Pricing blocks
- A signed in customer's own settings page showing their plan, usage and invoices: use the Profile blocks
- A stepped intake flow with no money in it, such as vendor onboarding or team invites: use the Wizard blocks
Agent notes
- Replace
COUPONSandPLAN_OPTIONSin data.tsx; the editor shown in the header comes from the fixedEDITORobject handleSaveRulesandhandleCreateonly change localcouponsstate, and a created coupon starts as scheduled with no publish stepexistingCodesis checked in the browser only, so repeat the unique code check on your server- Each block sets a
min-h-svhwrapper withbg-background, padding and a max width in page.tsx or its root component; drop it inside an app shell - No block calls an API: sends, retries, saves and exports update
useStateor fire a sonnertoast; post to your billing backend from those handlers
Third-party API docs
- Sonner v2: API reference, docs
https://web.dev.reui.io/blocks/solutions/billing/solution-billing-9.mdget_block("solution-billing-9")npx shadcn@latest add @reui/solution-billing-9Shadcn Coupon Manager Block
Coupon and promotion manager with inline redemption rule editor. Part of the ReUI Shadcn Solutions Billing blocks collection.
Manage coupon and promo codes; each row expands inline to edit discount type, duration, redemption limits, and eligible plans. ReUI Badge, Frame; shadcn Button, Collapsible, Dialog, Select. Discount admin, promo codes, billing settings.
It is composed from Avatar, Badge, Button, Collapsible, Dialog, Field, Frame, Input Group, and more, so every part of it is a primitive you can restyle with your own design tokens.
What You Can Build With the Coupon Manager Block
- Install it with the ReUI registry command in the toolbar above, then swap the placeholder content, data wiring, and business logic for your own.
- Compare it across all eight ReUI styles and both the Base UI and Radix bases in the customizer before committing to one direction.
- Combine it with the other Shadcn Solutions Billing blocks to assemble a full screen instead of a single section.
All Shadcn Solutions Billing Blocks
The rest of this category, each on its own page with a live preview, the components it is built from, and the install command.
- Invoice Ledger Billing operator workspace with invoice ledger and past due recovery
- Plan Catalog Plan and pricing catalog editor with tiered plan tiles and status toggles
- Subscription Lifecycle Subscription Management Workspace with Quick-Action Cards and Lifecycle Grid
- Billing Account Detail Customer Billing Account Detail with Tabbed Invoices, Subscription, and Activity Rail
- Invoice Builder Four-step invoice builder wizard with a live receipt-style review preview
- Dunning Queue Expandable Dunning Queue for SaaS Failed Payment Recovery
- Usage Event Ledger Metered usage event ledger with tree meter scope selection
- Plan Change Subscription Plan Change Wizard with Live Proration Preview
Related Shadcn Solutions Block Categories
- Dev Ops (6) Platform and SRE console pages for scheduled jobs, deployments, audit trails, edge firewall rules, SLOs and data connections.
- AI Ops (9) AI startup control plane pages for model providers, prompts, token cost, routing, and quotas.
- CRM (9) Sales CRM pages for founders, agencies, and startups managing leads and deals.
- Agents (10) AI agent run operation, approval, tool permission, and evaluation pages.
- Analytics (9) Product usage, activation, cohort, event, experiment, and growth reporting pages.
- Bookings (3) Appointment and service-business admin pages for consultants, clinics, salons, and local services.
All Shadcn Block Groups
Browse the full ReUI Shadcn blocks library by product surface. Each group bundles category-level blocks you can mix and match across your project.
- Shadcn Application Blocks (303) Browse 303 Shadcn Application blocks across 23 categories.
- Shadcn Data Grid Blocks (47) Browse 47 Shadcn Data Grid blocks across 9 categories.
- Shadcn Charts Blocks (52) Browse 52 Shadcn Charts blocks across 10 categories.
- Shadcn Solutions Blocks (76) Browse 76 Shadcn Solutions blocks across 11 categories.
- Shadcn AI & Agents Blocks (22) Browse 22 Shadcn AI & Agents blocks across 3 categories.
- Shadcn eCommerce Blocks (87) Browse 87 Shadcn eCommerce blocks across 13 categories.
- Shadcn Marketing Blocks (67) Browse 67 Shadcn Marketing blocks across 8 categories.
Frequently Asked Questions
When should I use the Coupon Manager block?
Use it for promo codes with copy to clipboard, redemptions shown against a limit, percent or fixed tabs and a create dialog that rejects duplicates.
The Billing category fits:
- A back office for billing operators: the invoice ledger, subscriptions, a dunning queue and metered usage
- Plan and discount admin: editing the plan catalog and coupon rules, or moving a subscription to a new tier
- One customer's billing account seen by staff, or an invoice built line by line and then sent
For editing plan tiers, prices and entitlements rather than discount codes, use the Plan Catalog block. For a public page where visitors compare plan tiers and pick one before signing up, use the Pricing blocks. For a signed in customer's own settings page showing their plan, usage and invoices, use the Profile blocks. For a stepped intake flow with no money in it, such as vendor onboarding or team invites, use the Wizard blocks.
What is the Coupon Manager block built with?
Can I restyle the Coupon Manager block?
How should I use Shadcn billing blocks in a real project?
Start building with ReUI Pro today.
Every Pro block, every style, and every future addition, with one license for unlimited projects.
From $249, once. Lifetime updates.