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

# Organization

> Read and update the organization, and manage billing entities with lago v2.

| Command | Description |
| - | - |
| `v2 organizations get` | The organization of the API key. |
| `v2 organizations update` | Change `--email` and `--slug`. Name and events store are read-only. |
| `v2 billing-entities create` | Create a billing entity. Additional entities require the matching entitlement. |
| `v2 billing-entities get <code>` | Retrieve a billing entity. `--expands` takes `taxes`, `selected_invoice_custom_sections`. |
| `v2 billing-entities list` | List billing entities. |
| `v2 billing-entities update <code>` | Partial update. Also `patch`. |

The v2 API has no billing entity delete.

## billing-entities create

`--code` and `--name` identify the entity. Legal and address fields (`--legal-name`, `--legal-number`, `--tax-identification-number`, `--address-line1`, `--city`, `--zipcode`, `--country`), invoicing settings (`--default-currency`, `--document-locale`, `--document-numbering`, `--document-number-prefix`, `--invoice-footer`, `--invoice-grace-period`, `--timezone`) and `--tax-codes` are optional. Grace periods, timezones, email settings and periodic invoice settings can require a premium license.

Assign a customer to an entity with `--billing-entity-code` on [customers](https://getlago.com/docs/v2/guide/lago-cli/commands/customers.md). See [billing entities](https://getlago.com/docs/v2/guide/billing-entities.md).

```bash organization theme={"dark"}
lago v2 organizations get
lago v2 organizations update --email billing@acme.example
```

```bash billing-entities theme={"dark"}
lago v2 billing-entities create --code acme_eu --name "Acme Europe" \
  --legal-name "Acme Europe SAS" --country FR --default-currency EUR
lago v2 billing-entities list
lago v2 billing-entities update acme_eu --invoice-footer "Thank you for your business."
```

```text billing-entities create theme={"dark"}
LAGO_ID  1a901a90-1a90-1a90-1a90-1a901a901a90
CODE     acme_eu
NAME     Acme Europe
```


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