Introducing the Chargebee CLI

Why can’t I edit the free quantity in a per-unit plan?

Problem Statement

You want to change the free quantity in a per-unit plan, but the field is unavailable.

Solution

You can edit the free quantity only when there are no subscriptions created for the plan. Once subscriptions exist, certain fields such as plan ID, billing interval, billing cycle, pricing model, and free quantity become read-only. In that case, you must delete the associated subscriptions and price point or create a new plan.

Following are the fields that are uneditable once a subscription is created for the plan.

Option 1:

Delete the associated subscriptions and then edit this plan. Filter all the subscriptions associated with the plan and then delete them.

This operation is irreversible - all data related to the Subscription, such as Transactions and Invoices, get deleted.

Option 2:

Create a whole new plan with the required free quantity.