Why do I get a ChargeBee_InvalidRequestException when creating a subscription?
Problem Statement
You are creating a subscription and receive an error such as ChargeBee_InvalidRequestException or day-pass-USD not found.
Solution
This error typically occurs when one of the following is true:
- The plan is not available on your site.
- The price point ID was not created for the relevant billing term.
- The price point ID was not created for the specified currency.
- The plan is unit-based and the quantity was not provided.
If you are using Product Catalog 2.0 and following Product Catalog 1.0 documentation, you may encounter the same issue.
Your test site includes default plans that may not exist on your live site. Validate that you are using the correct plan price point ID.
Navigate to Product Catalog > Plans > Price Points (for example, monthly, yearly, or daily) and confirm that you are using the correct plan price point ID.
This is where you can find the plan price point ID.
You can also use the List item prices API to retrieve all price point IDs for a specific product family.