Introducing the Chargebee CLI

Can I combine per-unit and flat-fee pricing in one plan?

Problem Statement

You want to combine per-unit pricing and a flat fee in the same plan configuration.

Solution

You cannot use two pricing models in the same plan. However, you can create two different plans or combine an add-on with a per-unit plan as a workaround.

Assume you want to configure your plan for the requirement below:

S.NoPlanQuantityAmount
1Flat fee pricing1 - 10$10
2Per unit pricing> 10$12
  • In case 1, If your customer is choosing the unit as 9, then a flat fee pricing of $10 should be applied.

  • In case 2, if the customer is choosing the unit as 15 (any quantity more than 10), then ((5x$12) + ($10) = $60+$10 = $70)) should be applied.

Here's how to configure this

Step 1: Create a per unit plan of $12 and set the free quantity as 10.

Step 2: Create a flat-fee based addon of $10 and use it as a mandatory addon for the per-unit plan.

Step 3: The checkout page appears as displayed below.