Coupons Object

Fusebill provides a robust system for creating and applying discounts to customers' subscriptions. Discounts are applied directly to specific subscription products. Of course, the work of applying the same discount on multiple subscription products across multiple subscriptions can become large as your customer base grows. The Fusebill coupons feature solves this problem by allowing you to create reusable discounts which can be applied in one step using a coupon code.

When a coupon is applied to a customer's subscription it will automatically apply the configured discount to all eligible subscription products. The coupon can be configured to be valid for all plans or for specific plans. For each specified plan you can also specify which plan products will get the discount. The default behavior is for the discount to be applied to all plan products in the plan.

Coupon Object Fields

PropertyTypeDescription
discountsList of Object References. See belowA list of ID's and URI's referencing the catalog discounts this coupon includes.
eligibilitiesList of Objects. See below.A list of time periods for which certain discounts are eligible. If time limited discounts are not being used, then this is an empty list and all the discounts in discounts have regular availability. Eligabilites cannot overlap
plansList of Objects. See below.A list of special configurations for the plan(s) this coupon applies to. Can be used to specify which plan products do and do not get discounts through this coupon.
nameStringThe name of the coupon
[Max Length: 255 characters]
descriptionStringThe description of the coupon
[Max Length: 255 characters]
eligibilityStartDateDateTimeThe start date and time of the earliest starting eligability.
eligibilityEndDateDateTimeThe end date and time of the latest ending eligability.
statusEnum:{Draft, Ineligible, Active, Retired}The status of the coupon
applyToAllPlansBooleanIf true, then this coupon applies to all plan frequencies for all plans.
couponCodesList of Objects. See below.A list of coupon codes and their associated usages.
idIntegerFusebill generated ID that uniquely identifies this coupon object
uriStringThe full string path to this resource

Discounts Fields

PropertyTypeDescription
idIntegerThe Fusebill generated ID that uniquely identifies the discount.
uriStringThe full string path to the discount resource being referenced.

Eligibilities Fields

PropertyTypeDescription
startDateDateTimeThe timestamp at which this eligibility period begins
endDateDateTimeThe timestamp at which this eligibility period ends
discountsList of Object References. See aboveA list of references to discounts the eligibility period applies to

Plans Fields

PropertyTypeDescription
applyToAllProductsBooleanIf true, then the coupon applies to every product for the specified plan. If false, then each applicable product is specified in planProducts.
planProductsList of object references. See belowThe subset of plan products the coupon applies to, if applyToAllProducts is false
idIntegerThe Fusebill generated ID that uniquely identifies the plan resource
uriStringThe full string path to the plan resource

Coupon Code Fields

PropertyTypeDescription
codeStringThe code that can be used to apply this coupon. Fusebill enforces uniqueness.
[Max Length: 255 characters]
timesUsedIntegerThe number of times this coupon has been applied to a subscription.
[Read Only]
remainingUsagesIntegerThe total number of times this coupon code is permitted to be used. Null implies unlimited usage availability.

Plan Product Fields

PropertyTypeDescription
planProductIdIntegerThe Fusebill generated ID that uniquely identifies the plan product the coupon applies to.
uriStringThe full string path to the plan product resource.