Grace period
Configure a buffer between invoice generation and finalization to review invoices.
PREMIUM FEATURE ✨ This feature is only available to users with a premium license. Please contact us to get access to Lago Cloud and Lago Self-Hosted Premium.
A grace period is the number of days during which invoices remain in draft
status, allowing you to review and modify them before they are finalized and sent for payment collection.
In the illustration below, the billing period spans one month, followed by a three-day grace period.
Illustration of the grace period
Define a grace period at billing entity level
The grace period set at the billing entity level applies to all customers linked to this entity by default.
To set a grace period from the Lago Dashboard:
- Access the “Settings” section via the side menu;
- Open the Billing entity > “Invoicing settings” section;
- Click “Edit” in the “Grace period” section;
- Enter the number of days associated with the grace period; and
- Click “Edit grace period” to confirm.
If you shorten the organization’s grace period, some invoices in draft
status may be automatically finalized
. For instance, if the initial grace
period was five days, but then three days into the grace period you decide to
reduce it to two days, then all draft
invoices will automatically switch to
finalized
.
To set a grace period from the Lago Dashboard:
- Access the “Settings” section via the side menu;
- Open the Billing entity > “Invoicing settings” section;
- Click “Edit” in the “Grace period” section;
- Enter the number of days associated with the grace period; and
- Click “Edit grace period” to confirm.
If you shorten the organization’s grace period, some invoices in draft
status may be automatically finalized
. For instance, if the initial grace
period was five days, but then three days into the grace period you decide to
reduce it to two days, then all draft
invoices will automatically switch to
finalized
.
You can also modify the entity’s grace period at any time through the API.
Define a grace period at customer level
To define a grace period at customer level through the user interface:
- Go to the Customers section in the side menu;
- Select a customer;
- Open the Settings tab in the customer view;
- Click Add grace period in the Grace period section;
- Enter the number of grace period days; and
- Click Add grace period to confirm.
If you shorten the customer’s grace period, some invoices in draft
status
may be automatically finalized
. For instance, if the initial grace period
was five days, but then three days into the grace period you decide to reduce
it to two days, then all draft
invoices will automatically switch to
finalized
.
To define a grace period at customer level through the user interface:
- Go to the Customers section in the side menu;
- Select a customer;
- Open the Settings tab in the customer view;
- Click Add grace period in the Grace period section;
- Enter the number of grace period days; and
- Click Add grace period to confirm.
If you shorten the customer’s grace period, some invoices in draft
status
may be automatically finalized
. For instance, if the initial grace period
was five days, but then three days into the grace period you decide to reduce
it to two days, then all draft
invoices will automatically switch to
finalized
.
You can also modify the customer’s grace period at any time through the Dashboard or the API.
The customer-specific grace period overrides the billing entity’s default grace period. It only applies to the customer it is configured for.
Application scope and possible actions
The grace period applies exclusively to subscription invoices. It does not apply to invoices related to add-ons or credit purchases.
The creation of a draft
invoice triggers the invoice.drafted
webhook.
While an invoice is in draft status, you can:
- Add usage records by sending event with a valid timestamp within the billing period
- Edit specific fees (adjusting total amount or unit count)
- Apply coupons to the customer’s account
- Add credits to the customer’s wallet or credit note wallet
Please follow this page to know more about these actions.