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

# Filter

Filter selects rate totals from a document's tax totals by category and, optionally, key and extensions.

## Schema ID

`https://gobl.org/draft-0/tax/filter`

## Properties

| Title | Property | Type | Description |
| - | - | - | - |
| Category | `cat` | [cbc.Code](https://docs.gobl.org/draft-0/cbc/code.md) | Tax category code the rates must belong to. |
| Key | `key` | [cbc.Key](https://docs.gobl.org/draft-0/cbc/key.md) | Tax key the rates must have, if set. |
| Extensions | `ext` | [tax.Extensions](https://docs.gobl.org/draft-0/tax/extensions.md) | Extensions the rates must include, if set. |

## Validation Rules

| Field | Test | Validation Code / Message |
| - | - | - |
| `cat` | <ul><li>Present</li></ul> | `GOBL-TAX-FILTER-01` Tax filter category is required |


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