> ## Documentation Index
> Fetch the complete documentation index at: https://www.spacebring.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Advance invoicing

> Set up advance invoicing to automatically generate customer invoices before their subscription renewal

Advance invoicing allows you to issue invoices to customers for upcoming subscription period before their subscription renewal date.

This is useful for the following scenarios:

* Use for specific members, who use payment methods like direct debit, that require more time to process before the start of the new billing period.
* Offer all members an extended timeframe to complete their payments on time before the next subscription period.

You can configure a default setting for the entire location or set a custom value for specific customers.

### Setting the default (location level)

1. Go to **Location settings** > **Billing** page > **Invoices** tab.
2. In the **Advance invoicing** section, choose when upcoming invoices are automatically created and issued to your customers:
   * **Number of days** — set how many days before the subscription renewal date.
   * **Day of the month** — set a day from 1 to 28. Invoices are issued on that day in the month before the renewal date, such as on December 5 for a January 1 renewal. Weekly subscriptions are invoiced on their renewal date.

![Invoices tab of the location Billing settings with Advance invoicing set to Day of the month and the day set to 25 on Spacebring's coworking space management platform](https://mintcdn.com/spacebring/ILfhUvrtgFuwvz84/images/billing-subscriptions-advance-invoicing-1.png?fit=max\&auto=format\&n=ILfhUvrtgFuwvz84\&q=85\&s=4fc4cf05c4639c06a742594c00c26d23)

This takes effect immediately for all existing and new subscriptions.

### Setting a custom value (subscription level)

1. Go to **Customers** > open the necessary customer profile.
2. Press the **(...)** button near the subscription > **Edit**.
3. In the **Advance invoicing** section, select **Number of days** or **Day of the month** and set the value for all subsequent invoices of this subscription.
   * **Default** follows the location setting.

![Edit subscription window with Advance invoicing set to Number of days and Days in advance set to 3 on Spacebring's coworking space management platform](https://mintcdn.com/spacebring/ILfhUvrtgFuwvz84/images/billing-subscriptions-advance-invoicing-2.png?fit=max\&auto=format\&n=ILfhUvrtgFuwvz84\&q=85\&s=47f45c59c31ac2be87d8be2f27acb330)

> [!NOTE]
>
> If you update the advance invoicing value, the change applies automatically to the existing upcoming invoices and all new invoices.

## How advance invoicing works with bookings

When advance invoicing is enabled, the advance invoicing date determines which bookings are bundled together. The billing period is handled as follows:

1. Bookings paid with the [**Invoice** payment method](https://www.spacebring.com/docs/billing/payments/pay-with-invoice.md) that took place **before** the advance invoicing date are bundled into the upcoming advance invoice that is about to be issued. The upcoming invoice will include the main membership/subscription payment, and all bookings that happened before the advance invoicing date.
2. Bookings paid with the **Invoice** payment method that take place **after** the advance invoicing date cannot be added to the upcoming invoice. Instead, they are held and included in a separate, subsequent invoice.

For example: If a customer's billing cycle anchor is set to 1st of the month, and the advance invoicing date is set to 10, then:

* Main invoice (issued on the 21st): Includes the main subscription amount plus all bookings from the 1st to the 20th of the month (e.g., bookings from the 4th and 7th).
* Subsequent invoice (issued on the 1st): Includes any bookings after the 20th, as they occurred after the main invoice was already generated.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.