RecurringStack Coupon API
The Coupon API provides a comprehensive set of endpoints for managing promotional coupons within RecurringStack. Coupons allow you to offer discounts on your products, which can be applied by customers to new subscriptions. These endpoints cover the full lifecycle of a coupon, from creation to deletion. A core concept of the Coupon API is its direct relationship with Product Groups. Every coupon must be associated with a specific product_group_id upon creation. This means a coupon is only valid for the products contained within that group, though you can further restrict it to exclude specific products. This association cannot be changed after the coupon is created. Key Features: Create, List, Update, and Delete coupons programmatically. Define discount types as a fixed amount or a percent of the total price. Set the coupon's duration to be one-time (applied only to the first billing cycle) or forever (applied to all subsequent billings). Configure detailed settings such as expiration dates, maximum usage limits (max_use), and whether a coupon is stackable with other offers. Restrict coupon usage by excluding specific products within its assigned product group. Important: Deleting a coupon is an irreversible action. When a coupon is deleted, any active subscriptions currently benefiting from its discount will have that discount removed on their next billing cycle.