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

# Grace period

> Give your team time to review invoices before Lago finalizes them.

A grace period keeps an invoice in draft for a set number of days before Lago finalizes it. Use this time to review fees or add usage received after the billing period ends.

> [!NOTE]
>
> The grace period requires a premium license.

While an invoice is in draft, you can [refresh, finalize or delete it](https://getlago.com/docs/v2/guide/invoicing/draft-invoices.md).

## Example

With a three-day grace period, you have three days to review the draft invoice. If usage for the billed period arrives during that time, send the events and [refresh the draft](https://getlago.com/docs/v2/guide/invoicing/draft-invoices.md#refresh-a-draft-invoice).

## Set the grace period on the billing entity

The billing entity value applies to every customer of the entity that has no value of its own.

> [tab] Dashboard
>
> 1. Click **Settings** in the side menu.
> 2. Open **Billing entity**.
> 3. Open **Invoicing settings**.
> 4. Click **Edit** in the **Grace period** block.
> 5. Enter the number of days.
> 6. Click **Edit grace period**.

> [tab] API
>
> ```bash Set a 3-day grace period on a billing entity theme={"dark"}
> LAGO_URL="https://api.getlago.com"
> API_KEY="__YOUR_API_KEY__"
> BILLING_ENTITY_CODE="acme_corp"
>
> curl --location --request PUT "$LAGO_URL/api/v2/billing_entities/$BILLING_ENTITY_CODE" \
>   --header "Authorization: Bearer $API_KEY" \
>   --header 'Content-Type: application/json' \
>   --data-raw '{
>     "billing_entity": {
>       "invoice_grace_period": 3
>     }
>   }'
> ```

## Set the grace period on a customer

A customer value overrides the billing entity value for that customer only.

> [tab] Dashboard
>
> 1. Open **Customers**.
> 2. Select a customer.
> 3. Open the **Settings** tab.
> 4. Click **Add grace period** in the **Grace period** block.
> 5. Enter the number of days.
> 6. Confirm the grace period.

> [tab] API
>
> ```bash Set a 5-day grace period on a customer theme={"dark"}
> LAGO_URL="https://api.getlago.com"
> API_KEY="__YOUR_API_KEY__"
>
> curl --location --request PUT "$LAGO_URL/api/v2/customers/customer_example" \
>   --header "Authorization: Bearer $API_KEY" \
>   --header 'Content-Type: application/json' \
>   --data-raw '{
>     "customer": {
>       "invoice_grace_period": 5
>     }
>   }'
> ```

## Next steps

> [card] [Draft invoice](https://getlago.com/docs/v2/guide/invoicing/draft-invoices.md)
>
> Refresh, finalize or delete a draft.

> [card] [Issuing date](https://getlago.com/docs/v2/guide/invoicing/invoicing-settings/issuing-date.md)
>
> Choose the date printed on periodic invoices.

> [card] [Update a billing entity (API)](https://getlago.com/docs/v2/api-reference/billing-entities/update.md)
>
> Request and response schema.

> [card] [Update a customer (API)](https://getlago.com/docs/v2/api-reference/customers/update.md)
>
> Request and response schema.


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