Introducing the Chargebee CLI

How do I retrieve tier prices and index into tiers?

Problem Statement

You want to retrieve tier pricing details for a plan and understand how to work with tier arrays.

Solution

There are two ways to retrieve a tiered plan price: through the UI or through the API.

Retrieve Tiered Plan Price through API:

First, you need to use the List item prices API call for this and use pricing_model[is] = 'tiered' to list all the tiered plans. You can pass additional parameters as well.

Then to list the specific plan tiered prices, we can use List applicable item prices for a plan-item price API to list the tiered plans price.

Retrieve Tiered Plan Price through UI:

Navigate to Settings > Import & Export Data > Export Data > Export Product Catalog and you will have a zip file with the set of CSV files downloaded.

Please check for the 'ItemTiers' CSV file which will have all the list of tiered plan pricing details.

List of Tiered Plans with Prices.