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.
{
"code": "CBC978B",
"coupon_id": "alpha",
"coupon_set_id": "cs_3Rtysnm",
"coupon_set_name": "Offer",
"object": "coupon_code",
"status": "not_redeemed"
}Retrieves a specific coupon code details.
List the available coupon codes.
Coupon set name to which this coupon code would be grouped under. If the coupon set with the passed name is not present, a new coupon set will be created. Supported operators : is, is_not, starts_with
Example → coupon_set_name[is_not] = "OFF20"
Archives a coupon code thereby making it inactive. The archived coupon code cannot be applied to any subscription.