> ## 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.

# Issuing date

> Choose the date shown on periodic invoices.

Choose whether a periodic invoice is dated at the end of its billing period or the start of the next one. If the invoice is finalized later, choose whether to keep that date or use the finalization date.

Set the default on the [billing entity](https://getlago.com/docs/v2/guide/billing-entities.md) and override it per customer. On a customer, `null` on either field resets it.

## Choose a reference date

`periodic_invoice_issuing_date_anchor` sets the reference date.

| Value | Issuing date for an October 2027 period |
| - | - |
| `next_period_start` | November 1, 2027 |
| `current_period_end` | October 31, 2027 |

## Handle later finalization

`periodic_invoice_issuing_date_adjustment` decides what happens when the invoice is finalized after the anchor date, for example during a [grace period](https://getlago.com/docs/v2/guide/invoicing/invoicing-settings/grace-period.md).

| Value | Effect |
| - | - |
| `align_with_finalization_date` | The issuing date moves to the finalization date. |
| `keep_anchor` | The issuing date stays on the anchor date. |

### Combined example

For an October 2027 billing period, assume the invoice is finalized on November 3, 2027:

| Anchor | Adjustment | Issuing date |
| - | - | - |
| `next_period_start` | `align_with_finalization_date` | November 3, 2027 |
| `next_period_start` | `keep_anchor` | November 1, 2027 |
| `current_period_end` | `align_with_finalization_date` | November 3, 2027 |
| `current_period_end` | `keep_anchor` | October 31, 2027 |

## Configure the issuing date

> [tab] Dashboard
>
> 1. Click **Settings** in the side menu.
> 2. Open **Billing entity**.
> 3. Open **Invoicing settings**.
> 4. Edit the **Issuing date** block.
> 5. Save your changes.
>
> To override the issuing date for a customer:
>
> 1. Open the customer’s page.
> 2. Open **Settings**.
> 3. Edit the **Issuing date** block.
> 4. Save your changes.

> [tab] API
>
> ```bash Date invoices at period end on the 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": {
>       "periodic_invoice_issuing_date_anchor": "current_period_end",
>       "periodic_invoice_issuing_date_adjustment": "keep_anchor"
>     }
>   }'
> ```
>
> ```bash Reset a customer to the billing entity setting 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": {
>       "periodic_invoice_issuing_date_anchor": null,
>       "periodic_invoice_issuing_date_adjustment": null
>     }
>   }'
> ```

## Next steps

> [card] [Grace period](https://getlago.com/docs/v2/guide/invoicing/invoicing-settings/grace-period.md)
>
> Keep invoices in draft before finalization.

> [card] [Invoicing settings](https://getlago.com/docs/v2/guide/invoicing/invoicing-settings/overview.md)
>
> All invoicing settings and where they live.

> [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.