Introducing the Chargebee CLI

Why do I get an invalid billing period configuration error?

Problem Statement

You see an error indicating an invalid billing period configuration when creating a price or plan.

Solution

This error occurs when you try to create a billing period that is not configured in the Billing Frequency settings.

For example, if you attempt to create a 3-month item_price but the 3-month billing period has not been added as a frequency, Chargebee shows this error.

To resolve it, update the Billing Frequency settings in Chargebee.

Steps to follow

Step 1: Log in to your Chargebee account and go to Settings > Configure Chargebee > Product Catalog > Setup Billing Frequency.

Step 2: Click Manage > Add Custom Frequency.

Step 3: Add the required month or year frequency. For example, if you need a 3-month period, create a custom frequency for 3 months and select Enable > Proceed > Apply.

Ensure the checkbox is enabled.

Expected outcome

The required billing period becomes available, and you no longer encounter the error when creating the item_price.