# Set up Commerce for recurring billing

Everything an admin sets once so that subscription invoices are created, issued, emailed with a pay link and chased by themselves.

Source: https://support.rework.com/article/commerce-subscription-setup-checklist

> **In plain words:** A subscription only bills and emails on its own when five things are set up behind it: a subscription service, an invoice book, a payment processor, a billing mode and a renewal quote service. A new service starts with settings that create drafts and email nobody. Read this page once, in order, before your first customer starts. New to Commerce terms? See [Commerce basics](https://support.rework.com/article/commerce-basics).

**Where to find it:** Commerce > left icon rail > **Settings** > **Services**. **Who can use it:** workspace admins, and the owners of each service.

## What you are building

When a subscription cycle comes due, this chain runs by itself:

1. The **subscription service** decides when the invoice is created and what happens to it.
   
2. The invoice is created in an **invoice book**, which is an invoice service.
   
3. The invoice book's **payment processor** (a payment service) gives the customer a way to pay online.
   
4. Commerce emails the customer a link, and later sends reminders if the invoice stays unpaid.
   
5. Near the end of a fixed term, a **renewal quote service** drafts the renewal.
   

If one link is missing, the subscription page shows a **Billing needs attention** card, or invoices are created and nobody sees them. This checklist closes every gap.

## The checklist at a glance

| 
#

 | 

What to set

 | 

Where

 | 

Recommended value

 |
| --- | --- | --- | --- |
| 

1

 | 

Selling entity

 | 

**Settings** > **Organization** > **Legal entities**

 | 

One entity, used as the default

 |
| 

2

 | 

Payment processor on the invoice book

 | 

Invoice service > **Payment**

 | 

A payment service with a connected account

 |
| 

3

 | 

Invoice book

 | 

Subscription service > **Billing**

 | 

An invoice service

 |
| 

4

 | 

Invoice each cycle (timing)

 | 

Subscription service > **Billing**

 | 

**At the start of the period (in advance)** for prepaid plans

 |
| 

5

 | 

When a cycle comes due (billing mode)

 | 

Subscription service > **Billing**

 | 

**Draft + issue + email the customer (with pay link)**

 |
| 

6

 | 

Reminders

 | 

Invoice service > **Billing**

 | 

**Overdue reminders** on, days `1, 7, 14`

 |
| 

7

 | 

Renewal quote service

 | 

Subscription service > **Term & renewal**

 | 

A quote service

 |
| 

8

 | 

Billing contacts

 | 

On each subscription, step 1

 | 

A contact with an email address

 |

## Step 1: Have a legal entity

A **legal entity** is the company that sells and appears on every invoice. If you have none, create one first under **Settings** > **Organization** > **Legal entities**. See [Legal entities](https://support.rework.com/article/commerce-legal-entities).

## Step 2: Connect a way to be paid

A customer can only pay from the emailed link if the invoice book has a payment processor.

1. In Commerce, click **Settings** at the bottom of the left icon rail, then **Accounts & integrations** > **Payment accounts**.
   
2. Connect a payment account, for example a card gateway or a bank account. See [Payment accounts](https://support.rework.com/article/commerce-payment-accounts) and [Connect Stripe](https://support.rework.com/article/commerce-connect-stripe).
   
3. Make sure a **Payment service** holds that account. See [Services](https://support.rework.com/article/commerce-services).
   

Without this step the email still goes out, but the page behind the link is view only.

## Step 3: Set up the invoice book

The **invoice book** is the invoice service that receives every cycle invoice. You can reuse the one you use for orders.

1. Click **Settings** > **Services**. If you have no invoice service, click **New service** > **Invoice**, fill in the dialog and click **Create invoice service**.
   
2. Click the invoice service to open its settings. Click **Payment**.
   
3. Under **Collection**, pick your service in **Payment processor**, then click **Save collection**. You see "Payment settings saved".
   
4. Click **Billing**. Check these fields:
   
   - **Payment terms (days):** the number of days a customer has to pay when the subscription names no terms. Example: 30.
     
   - **Auto-apply prepayments:** keep it on, so money a customer paid on a quote or order settles the first cycle invoices by itself.
     
   - **Overdue reminders:** switch it on. Without it, nobody is reminded of an unpaid invoice.
     
   - **Reminder days after due:** `1, 7, 14` sends a reminder 1, 7 and 14 days after the due date.
     
   - **Pre-due notices (days before due):** `3` sends a courtesy note 3 days before the due date.
     
5. Click **Save billing**. You see "Billing settings saved".
   

See [Invoice service settings](https://support.rework.com/article/commerce-invoice-service-settings) for every field. To design the emails, open the **Emails** section of the same service. See [Email templates](https://support.rework.com/article/commerce-email-templates).

## Step 4: Set up the subscription service

1. Click **Settings** > **Services**. If you have no subscription service, click **New service** > **Subscription**.
   
2. In the dialog, fill in **Name**, **Code prefix**, **Default currency** and **Default selling entity**.
   
3. Pick the **Invoice book** you prepared in step 3.
   
4. Choose **Invoice each cycle**. The dialog explains the result under the field, for example "Cycle 1 bills when the subscription starts."
   
5. Click **Create subscription service**. The settings open.
   
6. Click **Billing**. Confirm each field:
   

| 
Field

 | 

What to choose

 | 

Why

 |
| --- | --- | --- |
| 

**Invoice book**

 | 

The invoice service from step 3

 | 

Without it nothing bills.

 |
| 

**Invoice each cycle**

 | 

**At the start of the period (in advance)** for plans paid up front, **At the end of the period (in arrears)** for usage billed afterwards

 | 

Fixed on each subscription when it first starts.

 |
| 

**Bill ahead (days)**

 | 

0

 | 

Invoices are created on the cycle date. A higher number creates them earlier.

 |
| 

**When a cycle comes due**

 | 

**Draft + issue + email the customer (with pay link)**

 | 

The only mode that is fully automatic.

 |
| 

**When a cycle carries them** (lines that need delivery)

 | 

**Block**, unless you ship goods with each cycle

 | 

**Block** refuses the cycle and warns the owners.

 |
| 

**Resume policy**

 | 

**Skip missed cycles**

 | 

Pre-selects what happens when a paused subscription resumes.

 |

1. Click **Save billing**. You see "Billing settings saved".
   

> **Important:** The default for **When a cycle comes due** is **Draft the cycle invoice automatically**. In that mode no invoice is issued and no customer is emailed. If you leave it, a team member must open every draft, issue it and send it. See [How a subscription bills each cycle](https://support.rework.com/article/commerce-subscription-billing-cycle).

## Step 5: Set up renewals

1. In the same settings window, click **Term & renewal**.
   
2. Under **New subscriptions**, choose a **Billing cycle** default, and what happens **At the term end**.
   
3. For **Renewal quote** or **Auto-renew**, set **Renewal term (months)** and **Uplift (%)**. For **Renewal quote**, also set **Notice (days)**.
   
4. Under **Quotes**, pick a quote service in **Renewal quote service**. Renewal quotes and amendment quotes are drafted there. See [Quote service settings](https://support.rework.com/article/commerce-quote-service-settings).
   
5. Click **Save term & renewal**. You see "Term settings saved".
   

The defaults only fill new subscriptions. Each subscription can still change them. Without a **Renewal quote service**, Commerce cannot draft a renewal quote or an amendment quote, and the **Draft quote** button on the [Renewals](https://support.rework.com/article/commerce-renewals) page shows a message asking you to pick one.

## Step 6: Check each subscription's contacts

Cycle invoices are emailed to the **Billing contacts** of the subscription, not to the account in general.

1. Open the subscription, or create one. See [Create a subscription](https://support.rework.com/article/commerce-create-subscription).
   
2. In step 1, **Customer & source**, open **Billing contacts** and pick at least one contact.
   
3. Open that contact and check that it has a valid email address. See [Customer accounts](https://support.rework.com/article/commerce-customer-accounts).
   

A subscription converted from a quote or order keeps the quote's contacts.

## Step 7: Run a test

Test with a customer whose contact email is yours.

1. Create a subscription for the test customer, with one cheap line. Set **Start date** to today.
   
2. In step 3, open **Advanced overrides** and set **First billing date** to today.
   
3. In step 5, click **Activate & start clock**.
   
4. If you chose **in advance**, a message reads that cycle 1 was invoiced and emailed. If it only says "invoiced", the contact has no email address.
   
5. Open your mailbox. You should find an email with a **View invoice & pay** button, within a few minutes. If you chose **in arrears**, Commerce creates and emails the invoice within the hour.
   
6. Open the invoice in Commerce > **Invoice**. Check the number, the due date and the lines.
   
7. Cancel the test subscription (**...** menu > **Cancel subscription...** > **Cancel now**) and void the test invoice. See [Void and credit notes](https://support.rework.com/article/commerce-void-and-credit-notes).
   

![The subscription service settings window on the Billing section](https://storage.googleapis.com/reworkv3-public/success/261015/jg3bsot3Api4AZXyUCH8arGpGWOBWP7rrTwjfkVcdrlgFAC1zNPBdb8ORmqD5497/img.jnfcHgpiNjwCUcVvcVuiBMHTGvP3ZVXcsaYqbaQy2tqNZGNhKYRNUxrQpgVJQWPr.png)

![The invoice service settings window on the Billing section](https://storage.googleapis.com/reworkv3-public/success/261015/iq4G28TH27wcDYFenQygzMiuDpnHGeDtRyoWUnm8R9oT4GcjkyfSar2vBe5ufUhE/img.4WkwHzx1plxpECr7bJNwleY5xTy7A7G0JPw54MrbRxXDpAbl4sM2JVPdUQL6nIj1.png)

## Optional: autopay

To charge a saved card automatically on the due date, keep **Charge automatically** selected on the quote or order. The customer's first payment saves the card, and it moves to the subscription when you convert. This needs a gateway that can save cards, such as Stripe. See [Autopay](https://support.rework.com/article/commerce-autopay).

## Troubleshooting

| 
Problem

 | 

Why it happens

 | 

What to do

 |
| --- | --- | --- |
| 

**Billing needs attention** says "No invoice book on this service".

 | 

Step 4 was skipped.

 | 

Pick an **Invoice book** in the service's **Billing** settings.

 |
| 

Drafts appear in **Invoice**, nobody is emailed.

 | 

The mode is **Draft the cycle invoice automatically** or **Draft + issue automatically**.

 | 

Choose **Draft + issue + email the customer (with pay link)**.

 |
| 

Invoices are issued but no email arrives.

 | 

The subscription has no **Billing contacts** with an email.

 | 

Do step 6.

 |
| 

The customer opens the link and cannot pay.

 | 

The invoice book has no payment processor.

 | 

Do step 2 and step 3.

 |
| 

Reminders never go out.

 | 

**Overdue reminders** is off on the invoice book.

 | 

Switch it on and save.

 |
| 

**Draft quote** on **Renewals** asks for a renewal quote service.

 | 

**Renewal quote service** is empty.

 | 

Do step 5.

 |
| 

I changed **Invoice each cycle** and old subscriptions did not change.

 | 

Each subscription keeps the timing it started with.

 | 

The change applies to subscriptions that start later.

 |
