Using AI coding agents like Claude Code or Cursor? Try the official Chargebee Agent Skills to speed up your development.Try now
Coupon codes are used along with existing coupons in Chargebee. You can create a coupon set using a bunch of coupon codes and this coupon set will be associated with an existing coupon. A coupon code can only be applied to a single subscription and cannot be re-used.
Using coupon codes you can distribute several unique codes for a single main coupon, when you are running promotions.
Sample Coupon codeJSON
API Index URL
https://[site].chargebee.com/api/v2/coupon_codes
Coupon codes attributes
required, enumerated string, default=not_redeemed
Status of the coupon code.
not_redeemed
Can be applied to a subscription.
redeemed
Cannot be applied to a subscription as the coupon code has been already used.
archived
Cannot be applied to a subscription as it has been made inactive.