Create a Subscription Plan ​

A Subscription Plan defines what ERPNext bills on a recurring basis, at what price, and how often. You add one or more plans to a Subscription. A Subscription for a customer generates Sales Invoices, and a Subscription for a supplier generates Purchase Invoices.

Create one plan for each combination of item, price, currency, and billing frequency. For example, "Device Care Monthly" for a USD 199 monthly service, and a separate "Device Care Yearly" plan for customers who pay a year ahead.

Prerequisites ​

  • An Item for the product or service. Use a non-stock item for a service.
  • An Item Price in a Price List, if the plan takes its rate from a price list.
  • A Payment Gateway Account, if a payment integration collects the charge.
  • A Cost Center, if you report subscription income or expense separately.

Create the plan ​

  1. Open the Subscription Plan list and select Add Subscription Plan.
  2. Enter a unique Plan Name that says the service and the interval, for example Device Care Monthly.
  3. Select the Currency and the Item.
  4. In Subscription Price Based On, select how ERPNext sets the price (see the next section). Then enter the Cost or select the Price List.
  5. Set the Billing Interval and the Billing Interval Count.
  6. Optional: fill in the Payment Plan and Accounting Dimensions sections.
  7. Save.

Saving a plan does not create an invoice. Invoices start when you add the plan to a Subscription.

Choose how the price is set ​

Subscription Price Based OnHow ERPNext calculates the rateUse it when
Fixed RateUses the Cost that you enter.The charge is the same every billing cycle.
Based On Price ListReads the item price from the selected Price List. The customer or customer group can change which Item Price applies.You keep recurring rates as Item Prices.
Monthly RateTreats Cost as the price for one month, and multiplies it by the number of months in the billing period.The billing period can cover one or more months.

When Prorate is selected in Subscription Settings, ERPNext charges only for the part of a period that was used, for example when a subscription billed at the end of the period is cancelled early. For Monthly Rate, it also reduces the charge when the period does not start on the first day of a month.

Changing a plan does not change invoices that already exist. Check the next invoice after you change a rate, a price list, or an interval.

Subscription Price Based On and Cost fields on a Subscription Plan

Set the billing frequency ​

Billing Interval is the unit: Day, Week, Month, or Year. Billing Interval Count is the number of units in one billing cycle. The count is at least 1.

Billing IntervalBilling Interval CountResult
Month1Bills every month
Month3Bills every three months
Week2Bills every two weeks
Year1Bills every year

All the plans in one Subscription must have the same billing interval and count. The start date, the invoice timing, trial periods, and calendar-month alignment are set on the Subscription, not on the plan.

Plan fields ​

FieldWhat it controls
Plan NameThe unique name that you select on a Subscription.
CurrencyThe currency of the rate and of the generated invoice.
ItemThe item on the generated invoice. ERPNext uses the item's account defaults.
Subscription Price Based OnFixed rate, price list, or monthly rate.
CostThe fixed or monthly rate. Shown for Fixed Rate and Monthly Rate.
Price ListThe price list to read the rate from. Shown for Based On Price List.
Billing IntervalThe unit of the billing cycle.
Billing Interval CountThe number of units in one billing cycle.
Product Price IDThe price identifier of an external payment provider, when an integration needs it. Leave it blank for normal invoicing.
Payment GatewayThe Payment Gateway Account for integrated collection.
Cost CenterThe cost center for the invoice line.

Troubleshooting ​

The invoice rate is zero ​

For Based On Price List, check that the price list has an Item Price for the plan's item and currency that is valid on the invoice date. If ERPNext finds no price, the plan rate is zero.

The plan bills at the wrong frequency ​

Check Billing Interval and Billing Interval Count. Month with a count of 3 means one invoice every three months. Then check the start date and invoice timing on the Subscription.

The payment gateway does not collect payment ​

Linking a gateway on the plan does not complete the integration. Check the Payment Gateway Account, the provider credentials, and the Product Price ID.