Overview
The quote entitlement object represents the entitlement a quote holds for a feature. A quote can have several quote entitlements, each tied to a specific feature and to an entity on the quote (such as a plan price, addon price, or charge price).
How quote entitlements are determined
Quote entitlements are based on the entitlements linked to the item prices on the quote. If an item price lacks an entitlement record for a particular feature, Chargebee considers the entitlement (when available) of its parent item.
You can further customize entitlements by passing entitlement_overrides when creating or editing item-based quotes. When an entitlement has been explicitly overridden on the quote, is_overridden is true and the entitlement takes on the override value.
The method used to derive entitlement levels follows the same rules determined by the feature type as described for subscription entitlements.
Use the List Quote Entitlements API to retrieve the entitlements associated with a quote.
Note Applicable only when Chargebee CPQ and Entitlements are enabled. To request access, contact Chargebee Support.
Sample Quote entitlementJSON
Quote Entitlement attributes
The type of the entity on the quote for which this entitlement applies.
The unique identifier of the feature .
The level of entitlement that the quote entity has towards the feature. The possible values depend on the value of feature.type
:
-
When
feature.typeiscustom: The value can be any one oflevels[].value. -
When
feature.typeisswitch: This value istruewhen the feature is available; it isfalsewhen the feature is unavailable. -
When
feature.typeisquantity: -
When
levels[].is_unlimitedis nottrue: The value can be any one oflevels[].value. -
When
levels[].is_unlimitedistrue: The value can also be any one oflevels[].valueor it can beunlimited(case-insensitive), indicating unlimited entitlement. -
When
feature.typeisrange: -
When
levels[].is_unlimitedis nottrue: The value can be any whole number betweenlevels[0].valueandlevels[1].value(inclusive). -
When
levels[].is_unlimitedistrue: The value can be any whole number equal to or greater thanlevels[0].valueor it can beunlimited(case-insensitive), indicating unlimited entitlement.
See also: How quote entitlements are determined.
The name of the feature .
The unit of measure
for the feature when its type
is either quantity
or range
.
Specifies the type of the feature associated with the granted quote entitlement.
The display name of the entitlement level that the quote entity holds for the feature. It is derived based on the type
of feature as follows:
- When
feature.typeisrangeorquantity: thenameis the space-separated concatenation ofvalueand the pluralized form offeature_unit. For example, ifvalueis20andfeature_unitisuser, thennamebecomes20 users. - When
feature.typeiscustom: thenameis the same asvalue. - When
feature.typeisswitch:nameis set toAvailablewhenvalueistrue; it's set toNot Availablewhenvalueisfalse.