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

# Taxes

> Create and manage tax rates with lago v2 taxes.

| Command | Description |
| - | - |
| `v2 taxes create` | Create a tax rate. `--code`, `--name` and `--rate` (a percentage). |
| `v2 taxes get <code>` | Retrieve a tax. |
| `v2 taxes list` | List taxes. |
| `v2 taxes update <code>` | Partial update. Also `patch`. |
| `v2 taxes delete <code>` | Delete a tax. Returns it with `deleted_at` set. Confirmation-gated. |

Assign taxes by code where they apply: `--tax-codes` on [rate cards](https://getlago.com/docs/v2/guide/lago-cli/commands/rate-cards.md), [catalog plans](https://getlago.com/docs/v2/guide/lago-cli/commands/plans.md), [customers](https://getlago.com/docs/v2/guide/lago-cli/commands/customers.md) and [billing entities](https://getlago.com/docs/v2/guide/lago-cli/commands/organization.md). An empty array clears the assignment. See [taxes](https://getlago.com/docs/v2/guide/taxes.md).

```bash create theme={"dark"}
lago v2 taxes create --code french_standard_vat --name "TVA" --rate 20
```

```bash assign theme={"dark"}
lago v2 customers update acme_fr --tax-codes '["french_standard_vat"]'
```

```bash delete theme={"dark"}
lago v2 taxes delete french_standard_vat --confirm french_standard_vat
```

```text create theme={"dark"}
LAGO_ID  1a901a90-1a90-1a90-1a90-1a901a901a90
CODE     french_standard_vat
NAME     TVA
```


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