Quantity Restrictions 

Chargebee allows you to perform a backend operation where you can set restrictions on the quantity of your plans/add-ons.

Learn more about meta configurations here.

Enabling Quantity Restrictions 

Enabling this option allows Chargebee to read the configuration and set the quantity based on it.

Customize plan/addon quantity based on meta configuration on your Chargebee site:

Navigate to Settings > Configure Chargebee > Checkout & Self-Serve Portal > Advanced settings > Enable Customize plan/addon quantity based on meta configuration.

Once you have enabled Customize plan/addon quantity based on meta configuration, do the following:

  1. Add the below sample JSON in the plan/addon metadata, and configure the values based on your requirements.

  2. Set up quantity-based increments. In this case, the interval is set as 10. 10 and 100 are the minimum quantity and maximum quantity respectively.


  "quantity_meta": {
    "type": "range",
    "min": 10,
    "max": 100,
    "step": 10 

Show specific quantity to be displayed:

  "quantity_meta": {
    "type": "fixed",
    "values": [5, 6, 7, 8, 9, 10]
Was this article helpful?