When offering subscriptions of products or services, each entity that is made available for sale is represented by an "item" object. Items therefore represent the various plans, addons or charges that you offer as part of your product catalog. Non-metered items are charged upfront in Chargebee, while metered items are charged at the end of the billing cycle, based on usage.
Types of Items
There are three types of items and they're listed and explained here. Examples for each type are provided in the table that follows.
Plan-items or Plans
Plan-items are items that have a recurring charge and are an essential component of any subscription. Typically, plans represent a principal or key product or service in your catalog. They are charged at recurring intervals and often have other products or services offered along with them as addons and charges.
Addon-items or Addons
Addon-items are items that are sold along with a plan and are charged for at recurring intervals.
Charge-items or Charges
Charge-items are items that are sold along with a plan but charged once (or each time) a specified event occurs. A charge can also be applied to a customer without attaching to a subscription.
Examples
To help understand each type of item better, listed below are some examples of items from different business domains:
Non-Metered (SaaS)
- Item Family: A project management solution.
- Plans:
- A "basic" plan offering a small set of features.
- A "business" plan offering a larger set of features.
- Addons:
- An analytics plugin that is available only with the "business" plan.
- A reporting plugin, available with both the above plans.
- Charges:
- Implementation charges.
- Trial charges.
Non-Metered (E-commerce)
- Item Family: A printed news magazine.
- Plans:
- Periodic issues of the magazine.
- Periodic issues of the magazine, with digital content.
- Addons:
- Supplementary online content.
- Access to a year's worth of back issues.
- Searchable access to all back issues.
- Charges:
- Special edition books that are published every so often.
Metered
- Item Family: SMS delivery services.
- Plans:
- A basic plan of up to 100K messages @ $0.03 per message.
- A volume plan of 2M messages @ $0.01 per message.
- Addons:
- An addon of 50K MMS messages @ $0.1 per message.
- Instant messaging.
- Charges:
- Automated Metered Billing is not applicable for charges.
Sample ItemJSON
Items attributes
A unique display name for the item. This is visible only in Chargebee and not to customers.
The status of the item.
The item can be used to create new item prices.
The item is no longer active and no new item prices can be created
Indicates that the item has been deleted.
The id
and name
can be reused. Deleted items can be retrieved using List items
.
The version number of this resource. For every change made to the resource, resource_version
is updated with a new timestamp in milliseconds.
The id
of the Item family
that the item belongs to. Is mandatory when Product Families
have been enabled.
The type of the item.
An essential component of a subscription. Every subscription has exactly one plan. It has a recurring charge and its period defines the billing period of the subscription.
A recurring component that can be added to a subscription in addition to its plan.
A non-recurring component that can be added to a subscription in addition to its plan. An charge can also be applied to a customer directly without being applied to a subscription.
Indicates that the item is a physical product. If Orders are enabled in Chargebee, subscriptions created for this item will have orders associated with them.
Specifies if gift subscriptions can be created for this item.
If enabled_for_checkout
, then the URL to be redirected to once the checkout is complete. This attribute is only available for plan-items.
Allow the plan to subscribed to via Checkout. Applies only for plan-items. Note: Only the in-app layout of Checkout is supported.
Allow customers to change their subscription to this plan via the Self-Serve Portal. Applies only for plan-items. This requires the Portal configuration to allow changing subscriptions .
The item is included in MRR calculations for your site. This attribute is only applicable for items of type = charge
and when the feature is enabled in Chargebee. Note: If the site-level setting is to exclude charge-items from MRR calculations, this value is always returned false
.
Indicates which addon-items and charge-items can be applied to the item. Only meant for plan-items. Other details of attaching items such as whether to attach as a mandatory item or to attach on a certain event, can be specified using the Create or Update an attached item API.
all addon-items and charge-items are applicable to this plan-item.
only the addon-items or charge-items provided in applicable_items
can be applied to this plan-item.
The URL to redirect to once the gift has been claimed by the receiver.
The unit of measure for a quantity-based item. This is displayed on the Chargebee UI and on customer facing documents/pages. The latter includes hosted pages , invoices and quotes. Examples follow:
- "user" for a cloud-collaboration platform.
- "GB" for a data service.
- "issue" for a magazine.
Specifies whether the item undergoes metered billing. When true
, the quantity is calculated from usage records.
When false
, the quantity
is as determined while adding an item price to the subscription. Applicable only for items of type
plan
or addon
and when Metered Billing
is enabled. The value of this attribute cannot be changed.
How the quantity is calculated from usage data for the item prices belonging to this item. Only applicable when the item is metered.
This value overrides the one set at the site level
.
the net quantity is the sum of the quantity
of all usages for the current term.
from among the usage records for the item price
with usage_date
within the relevant billing period, the quantity
of the usage record with the most recent usage_date
is taken as the net quantity consumed.
from among the usage records for the item price
with usage_date
within the relevant billing period, the quantity
of the usage record with the maximum value is taken as the net quantity consumed.
The subscription channel this object originated from and is maintained in.
The object was created (and is maintained) for the web channel directly in Chargebee via API or UI.
The object data is synchronized with data from in-app subscription(s) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed.
The object data is synchronized with data from in-app subscription(s) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.
In-App Subscriptions is currently in early access. Contact eap@chargebee.com for more information.
A collection of key-value pairs that provides extra information about the item. Learn more .
The unique ID of the business entity of this item. This is applicable only when multiple business entities have been created for the site. The value of this attribute indicates that the resource is specific to the given business entity.
The list of addons and charges that are allowed to be applied to the plan. This attribute is applicable only for plan-items and that too when item_applicability
is restricted
.
Other details of attaching items can be specified using the Create or Update an attached item API.
The list of items(plans, addons, and charges) added to the bundle plan. This attribute is only available when the item_type
is plan
.
This attribute holds additional information about the bundle item. This attribute is only available when the item_type
is plan
.