Coupon Discounts
Coupons are applied to invoices based on their duration:- ONCE: Applied to a single invoice
- REPEATING: Applied to each invoice for
durationInMonthsbilling cycles
- FIXED: Absolute amount deducted (in cents)
- PERCENTAGE: Percentage of invoice total
CouponUsage record.
Voucher Discounts
Vouchers (billing credits) are automatically applied to invoices by Stripe:- Credits deducted from the voucher balance
- Each application creates a
VoucherUsagerecord - Optional fee restrictions limit credits to specific fee invoices
Combined Discounts
Invoices can have both coupon and voucher discounts. The totaldiscountAmount is the sum of all applied discounts.