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

# AddonDef

AddonDef is an interface that defines the methods that a tax add-on must implement.

## Schema ID

`https://gobl.org/draft-0/tax/addon-def`

## Properties

| Title | Property | Type | Description |
| - | - | - | - |
| Key | `key` | [cbc.Key](https://docs.gobl.org/draft-0/cbc/key.md) | Key that defines how to uniquely identify the add-on. |
| Requires | `requires` | array of [cbc.Key](https://docs.gobl.org/draft-0/cbc/key.md) | Additional addons that this one depends on to operate correctly. |
| Name | `name` | [i18n.String](https://docs.gobl.org/draft-0/i18n/string.md) | Name of the add-on. |
| Description | `description` | [i18n.String](https://docs.gobl.org/draft-0/i18n/string.md) | Description of the add-on. |
| Sources | `sources` | array of [cbc.Source](https://docs.gobl.org/draft-0/cbc/source.md) | Sources of the data used to define the add-on. |
| Extensions | `extensions` | array of [cbc.Definition](https://docs.gobl.org/draft-0/cbc/definition.md) | Extensions associated with the add-on. |
| Stamps | `stamps` | array of [cbc.Definition](https://docs.gobl.org/draft-0/cbc/definition.md) | Stamps that may be included in envelope headers by the agency or intermediary the add-on targets, registered in the head package. |
| Tags | `tags` | array of [tax.TagSet](https://docs.gobl.org/draft-0/tax/tag_set.md) | Tag sets that define what can be assigned to each document schema. |
| Scenarios | `scenarios` | array of [tax.ScenarioSet](https://docs.gobl.org/draft-0/tax/scenario_set.md) | Applied to documents after normalization and before validation to ensure that format specific extensions have been added. |
| Identities | `identities` | array of [cbc.Definition](https://docs.gobl.org/draft-0/cbc/definition.md) | Identities that are specific for the add-on and may be validated against or used during conversion processes. |
| Inboxes | `inboxes` | array of [cbc.Definition](https://docs.gobl.org/draft-0/cbc/definition.md) | Keys used to identify where copies of documents can be sent. |
| Corrections | `corrections` | [tax.CorrectionSet](https://docs.gobl.org/draft-0/tax/correction_set.md) | Correction definitions supported by the add-on. |

## Validation Rules

| Field | Test | Validation Code / Message |
| - | - | - |
| `key` | <ul><li>Present</li></ul> | `GOBL-TAX-ADDONDEF-01` Addon must have a key |
| `name` | <ul><li>Present</li></ul> | `GOBL-TAX-ADDONDEF-02` Addon must have a name |


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