Skip to main content
A coupon is a reusable discount definition. You can link it to subscriptions via an association or apply it directly when creating a manual invoice. Subscription associations can be scoped to a time window and optionally targeted at a specific line item rather than the whole invoice.

Coupon types

For manual invoices, percentage coupons are available in any invoice currency. A fixed-amount coupon is available only when its currency matches the invoice currency. Changing the invoice currency removes selected fixed-amount coupons that no longer match.

Cadence

Cadence controls how many billing cycles the discount repeats within an association’s active window.

Validity controls

These fields control when you can create a subscription association or apply a coupon to a manual invoice. The total_redemptions counter increases when you create a subscription association or when Flexprice applies the coupon directly to an invoice. A subscription association counts once across its recurring invoices.

Coupon scope

Subscription level: discount applies to the invoice subtotal (or the running subtotal after earlier coupons have applied). Line-item level: discount applies to a specific price within the invoice before any subscription-level coupons run. Manual invoice: when creating a manual invoice in the dashboard, choose Add a coupon in the Coupons section. Each eligible coupon applies to that invoice only. Flexprice skips coupons outside their redemption window, coupons that have reached their redemption limit, and coupons whose currency differs from the invoice currency. Check the invoice totals to confirm the discount was applied.

How multiple coupons apply

When an invoice has both line-item and subscription-level coupons:
  1. Line-item coupons apply first, reducing each targeted line item’s amount individually.
  2. Subscription-level coupons apply next, in association order, each seeing the subtotal left after the previous coupon.
  3. Wallet credits are deducted after all coupon discounts.
  4. Tax is calculated on MAX(subtotal - all_discounts, 0). Tax is never charged on discounted-away amounts.
Two 20% subscription-level coupons do not produce a 40% total discount. The second coupon applies to the amount remaining after the first. See Invoice Calculation Order for the full worked example.

Coupon statuses

Only active coupons pass association validation.

Quick start

  1. Create a coupon with a type, value, and optional validity window.
  2. Apply it to a subscription at creation time or via subscription phases for scheduled windows.