Docs

Product Catalog Articles & FAQ

item, Entitlement, filter, plans, associated, feature, api

How to find the plans that are associated with a feature using API?

At present, we do not have the option to filter the features associated with a plan from the Chargeb

33532294

2022-08-29T08:50:47Z

2022-08-29T08:51:09Z

96

0

0

255467

How to find the plans that are associated with a feature using API?

How to find the plans that are associated with a feature using API? 

This article covers 

How to find the plans/items that are associated with a feature?

How to find the plans/items that are associated with entitlements?

How can I filter out the plans/items that are associated with a feature and entitlements using APIs?

Solution

At present, we do not have the option to filter the features associated with a plan from the Chargebee UI. This is possible using only API currently.

a) To retrieve the item entitlements for an item (plans/Addons/charges)

API used - List item entitlements for an itemInput - plan/ Addon/charge ID (not the item price)

Limit - number of resources to be retrieved

Offset - Determines your position in the list for pagination.

Sample API call -

curl https://imtestingqb-test.chargebee.com/api/v2/items/enterprise/item_entitlements \

 -G  \

 -u test_xxxxxxxxxxxxxxxxxxxxxxxx:\

 --data-urlencode limit=2 \

 --data-urlencode offset="0"

b) To retrieve the entitlements for a feature

API used -List item entitlements for a feature

Input - feature ID

Limit - number of resources to be retrieved

Offset - Determines your position in the list for pagination.

Related Articles 

What are the improvements on the revamped item detail page on PC 2.0?
Editing a Plan's Pricing & Billing Frequency
Will a new plan price affect the existing subscriptions?
Is there any option to add a trial period for a subscription/plan?
How do I collect the setup fee upfront for a trial subscription?
How do I setup paid trial for my plans, in Chargebee?
What is the maximum duration of a trial period that I can offer using Chargebee?
Error : ChargeBee_InvalidRequestException
How do I create a zero-dollar or zero cost plan in Chargebee?
What happens when I delete a plan in Chargebee?
How to configure plans with different currencies in bulk?
Unable to remove trial for a plan
Unable to edit the free quantity in per-unit price plans
How to change plan pricing in PC 2.0?
How to configure trial period for a plan in PC 2.0?
Changing to a plan with different trial days
What is the difference between price override and differential pricing for addons/charges?
How to set up site wide billing frequency settings in Product Catalog 2.0?
How to create a Plan and view plan ID in PC 2.0?
How to create a plan in PC 2.0 with multiple currencies and billing frequencies?
I am unable to find the invoice name field while creating the plan.
Delete an item or item price in PC 2.0
Is it possible to change the ID of the plan on my Chargebee site?
How to define a product with fixed price for a specific number of units and then with a unit price??
Error:item_price_ids already applicable for item_type plan cannot be removed
What are pricing models available for plans, addons & charges in Chargebee?
What is the difference between price override and creating customer specific plans or addons?
How to combine and configure a per unit and flat-free pricing model?
Is it possible to have a single plan with different options for contract length?(such as 3 months, 6 months or forever).
Was this article helpful?
Loading…