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

Modified on: Mon, 29 Aug, 2022 at 2:21 PM

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 item

Input - 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 and Documentation

Item Entitlements




Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.
×