Introducing the Chargebee CLI

How to get Plan listing via UI & API - PC 2.0?

Scope

How to list the plans via UI in PC 2.0?

How to get a Plan listing via API?

Summary

UI: Go to Product Catalog > Plans > Add Filter > Product Family.

API: Call the List item prices API.

Solution

Filter the plan index by product family. Use the filters to show the items and item prices you need.

See the plan filter demo.

List item prices

The API returns item prices that match the filter parameters. The list is sorted by creation date, newest first. Call the List item prices API with item_type[is]=plan. To limit results to one product family, also pass item_family_id[is] with the family ID.