Documentation Index
Fetch the complete documentation index at: https://spreesuite.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
What is the Base Plan?
The Base Plan represents the primary, foundational offering that a customer subscribes to. In the Billspree catalog, there are two types of plans:- Base Plans: The primary offerings that can be subscribed to. A Base Plan can also include Add-On Plans to expand its scope, features, or quotas.
- Add-On Plans: Optional plans that attach to a Base Plan. Crucially, Add-On Plans are final packages and cannot have any other Add-On Plans nested inside them.
- Define your Pricing Template (e.g., “water supply”, “electricity”, “internet”). It is a prerequisite of the Base Plan.
- Set prices (Rate Lists) and rules (Rating Rules Sets) for how to calculate the bill.
- Set taxes and discounts that apply to bills.
Pricing Template Setup
1- Setup Pricing Template first.
Base Plan Setup
- Click on the Plan Variants tab

- Click on Add Plan Variant

- Your Pricing Template values and components show here in the Base Plan as tabs

- Give your rates in Values

- Click each component tab, and add your formulas for all components.


Rule
The rule is basically a combination of Condition and Billing FormulaConditions
We have conditions in the Base Plan for each component. We have multiple conditions
Formula
We have a formula in the Base Plan for each component. One formula for multiple conditions


Test Plan
Test Plan lets you run the Base Plan with sample inputs and see each component’s result, before it is used in live billing.- Open the Plan screen for the Base Plan you want to check.

- Click Test in the plan header (with Update, Discard, and Export).

- Enter sample values for your date, components and usage inputs (and any other fields your package defines).

- Click Process to calculate the bill for those inputs.
- Read Outputs: you see each billing component with the amount your conditions and formula produced.

- Click Publish when you want a PDF bill for that same test run. The app uses a bill template from your pricing template. If no template is available, fix the template on the pricing template, then try again. When publish succeeds, the PDF opens in the browser.

Prepaid
Prepaid means you pay first, then use.- You select the Base Plan that you want, then subscribe to it.
- Pay for it.
- Then you use the service (calls, data, electricity, etc.)
- When the balance is low or finished, subscribe again.
Postpaid
Postpaid means you use first, pay later.- You use the service (calls, data, electricity, etc.) during the month.
- At the end of the period (e.g. month), the company sends you a bill for what you used.
- You pay that bill by the due date.
