Discounts

Discounts are applied to purchases or subscription products via coupons. They can take off percentages, fixed amounts, or fixed amounts per unit. They can also be specified to apply after a certain number of billing periods (remainingUsagesUntilStart) and be applied for a certain number of billing periods (remainingUsages). Discount creation and editing is done through the UI

PropertyTypeDescription
nameStringThe name given to this discount. Set through the UI
[Max Length: 255 characters]
descriptionStringThe description for the discount. Set through the UI.
[Max Length: 500 characters]
codeStringThe code which can be used to apply this discount. Fusebill enforces uniqueness for this field. Set through the UI.
[Max Length: 255 characters]
discountTypeEnum: {Amount, AmountPerUnit, Percentage}Dictates how amount is interpreted
remainingUsagesUntilStartIntegerThe number of charges that will be generated before this discount is applied. This number decreases by one each time the relevant charge is generated until it reaches zero. This is used to schedule a discount after a certain number of periods of a subscription.
remainingUsageIntegerThe remaining number of times this discount will be applied before it expires. NULL means infinite usages. This decreases only once remainingUsagesUntilStart reaches zero.
amountDecimalThe amount the discount is for. Typically a dollar amount, unless discountType is "Percentage", in which case this field represents a percent reduction.
statusEnum:{Active, Retired}Indicates whether the discount is usable
frequencyOverridesObject. Defined below.A list of frequency overrides. When the discount is being applied to a subscription whose frequency matches the override, then the override values are used for discountType, remainingUsagesUntilStart, remainingUsage, and amount
idIntegerThe Fusebill generated ID that uniquely identifies this discount. [Read Only]
uriStringThe full string path to this resource
[Read Only]

Discount Frequency Fields

PropertyTypeDescription
intervalEnum:{Monthly, Yearly}Used in conjunction with numberOfIntervals to determine if this override is a match. The frequency override is a match if the subscription has the same values as this override.
numberOfIntervalsNumberUsed in conjunction with interval to determine if this override is a match. The frequency override is a match if the subscription has the same values as this override.
discountTypeEnum: {Amount, AmountPerUnit, Percentage}Dictates how amount is interpreted if this frequency override is a match.
remainingUsagesUntilStartNumberThe number of charges that will be generated before this discount is applied if this frequency is a match. This number decreases by one each time the relevant charge is generated until it reaches zero. This is used to schedule a discount after a certain number of periods of a subscription.
remainingUsageNumberThe remaining number of times this discount will be applied before it expires if this frequency override is a match. NULL means infinite usages. This decreases only once remainingUsagesUntilStart reaches zero.
amountDecimalThe amount the discount is for if this frequency override is a match. Typically a dollar amount, unless discountType is "Percentage", in which case this field represents a percent reduction.