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.
enumerated string, default=not_redeemed Status of the coupon code.
Possible values are
not_redeemedCan be applied to a subscription.redeemedCannot be applied to a subscription as the coupon code has been already used.archivedCannot be applied to a subscription as it has been made inactive.
string, max chars=50 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.
string, max chars=50 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.
optional, string, max chars=1000 Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set offset to the value of next_offset obtained in the previous iteration of the API call.
optional, string filter Unique coupon code that can be redeemed only once.Possible values are : Supported operators : is, is_not, starts_with, in, not_in
Example →code[is] = "OFF2009"
+
code
Unique coupon code that can be redeemed only once. pass parameters as code[<param name>][<operator>]
code[is][operator]
code[is][operator]
optional, string, min chars=1 filter Possible values are : Supported operators :
Example →
code[is_not][operator]
code[is_not][operator]
optional, string, min chars=1 filter Possible values are : Supported operators :
Example →
code[starts_with][operator]
code[starts_with][operator]
optional, string, min chars=1 filter Possible values are : Supported operators :
Example →
code[in][operator]
code[in][operator]
optional, string filter Possible values are : Supported operators :
Example →
code[not_in][operator]
code[not_in][operator]
optional, string filter Possible values are : Supported operators :
Example →
coupon_id[<operator>]
coupon_id[<operator>]
optional, string filter Id of the main coupon resource.Possible values are : Supported operators : is, is_not, starts_with, in, not_in
Example →coupon_id[is] = "OFF20"
+
coupon_id
Id of the main coupon resource. pass parameters as coupon_id[<param name>][<operator>]
coupon_id[is][operator]
coupon_id[is][operator]
optional, string, min chars=1 filter Possible values are : Supported operators :
Example →
coupon_id[is_not][operator]
coupon_id[is_not][operator]
optional, string, min chars=1 filter Possible values are : Supported operators :
Example →
coupon_id[starts_with][operator]
coupon_id[starts_with][operator]
optional, string, min chars=1 filter Possible values are : Supported operators :
Example →
coupon_id[in][operator]
coupon_id[in][operator]
optional, string filter Possible values are : Supported operators :
Example →
coupon_id[not_in][operator]
coupon_id[not_in][operator]
optional, string filter Possible values are : Supported operators :
Example →
coupon_set_name[<operator>]
coupon_set_name[<operator>]
optional, string filter 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.Possible values are : Supported operators : is, is_not, starts_with
Example →coupon_set_name[is] = "OFF20"
+
coupon_set_name
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. pass parameters as coupon_set_name[<param name>][<operator>]
coupon_set_name[is][operator]
coupon_set_name[is][operator]
optional, string, min chars=1 filter Possible values are : Supported operators :
Example →
coupon_set_name[is_not][operator]
coupon_set_name[is_not][operator]
optional, string, min chars=1 filter Possible values are : Supported operators :
Example →
coupon_set_name[starts_with][operator]
coupon_set_name[starts_with][operator]
optional, string, min chars=1 filter Possible values are : Supported operators :
Example →
status[<operator>]
status[<operator>]
optional, enumerated string filter Status of the coupon code. Possible values are : not_redeemed, redeemed, archived Supported operators : is, is_not, in, not_in
Example →status[is] = "redeemed"
+
status
Status of the coupon code. pass parameters as status[<param name>][<operator>]
status[is][operator]
status[is][operator]
optional, enumerated string filter Possible values are : not_redeemed, redeemed, archived Supported operators :
Example →
status[is_not][operator]
status[is_not][operator]
optional, enumerated string filter Possible values are : not_redeemed, redeemed, archived Supported operators :
Example →
status[in][operator]
status[in][operator]
optional, string filter Possible values are : Supported operators :
Example →
status[not_in][operator]
status[not_in][operator]
optional, string filter Possible values are : Supported operators :
always returned optional, string, max chars=1000 This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter `offset`.