If you’re a company that sells multiple product lines then each product line or service is an item family in the Chargebee API. For example, if you are a SaaS company that offers separate products for project management, content collaboration, and customer support. Each of those can be an item family under which the various plans, addons and charges can be the items.
Item families compartmentalize items such that only items belonging to the same family can be part of any given subscription.
Note: You must have the Product Families enabled for your site to be able to set up item families.
string, max chars=50 The identifier for the item family. It is unique and immutable.
name
string, max chars=50 A unique display name for the item family. This is visible only in Chargebee and not to customers.
description
optional, string, max chars=500 Description of the item family. This is visible only in Chargebee and not to customers.
status
optional, enumerated string Status of the item family.
Possible values are
activeThe item family is active and can be used to create new items.deletedThe item family has been deleted and cannot be used to create new items. The id and name can be reused to create a new item family.
resource_version
optional, long The version number of this resource. For every change made to the resource, resource_version is updated with a new timestamp in milliseconds.
updated_at
optional, timestamp(UTC) in seconds When the item family was last updated.
channel
optional, enumerated string The subscription channel this object originated from and is maintained in.
Possible values are
webThe object was created (and is maintained) for the web channel directly in Chargebee via API or UI.app_storeThe 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.play_storeThe 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.
Returns a list of item families satisfying all the conditions specified in the filter parameters below. The list is sorted by date of creation, in descending order.
optional, integer, default=10, min=1, max=100 The number of resources to be returned.
offset
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 The identifier for the item family. It is unique and immutable. Supported operators : is, is_not, starts_with, in, not_in
Example →id[is] = "family-id"
name[<operator>]
optional, string filter A unique display name for the item family. This is visible only in Chargebee and not to customers. Supported operators : is, is_not, starts_with
Example →name[is] = "family-name"
updated_at[<operator>]
optional, timestamp(UTC) in seconds filter When the item family was last updated. Supported operators : after, before, on, between
always returned
Resource object representing item_family
next_offset
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”.
Deletes an item family, marking its status as deleted. This is not allowed if there are active items under the item family. Once deleted, the id and name of the item family can be reused to create a new item family.
Sample Request
curl https://{site}.chargebee.com/api/v2/item_families/acme-inc/delete \
-X POST \
-u {site_api_key}:
copy
curl https://{site}.chargebee.com/api/v2/item_families/acme-inc/delete \
-X POST \
-u {site_api_key}: