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

# Scenario

Scenario is used to describe a tax scenario of a document based on the combination of document type and tag used.

## Schema ID

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

## Properties

| Title | Property | Type | Description |
| - | - | - | - |
| Name | `name` | [i18n.String](https://docs.gobl.org/draft-0/i18n/string.md) | Name of the scenario for further information. |
| Description | `desc` | [i18n.String](https://docs.gobl.org/draft-0/i18n/string.md) | Description of the scenario for documentation purposes. |
| Type | `type` | array of [cbc.Key](https://docs.gobl.org/draft-0/cbc/key.md) | Type of document, if present. |
| Tags | `tags` | array of [cbc.Key](https://docs.gobl.org/draft-0/cbc/key.md) | Array of tags that have been applied to the document. |
| Tax Categories | `cat` | array of [cbc.Code](https://docs.gobl.org/draft-0/cbc/code.md) | Optional list of tax category codes that acts as a filter. When set, at least one of the specified categories must be present in the document's line taxes for the scenario to match. |
| Extension Key | `ext_key` | [cbc.Key](https://docs.gobl.org/draft-0/cbc/key.md) | Extension key that must be present in the document. |
| Extension Code | `ext_code` | [cbc.Code](https://docs.gobl.org/draft-0/cbc/code.md) | Extension code that, alongside the key, must be present for a match. Cannot be used without the extension key. The value will be copied to the note code if needed. |
| Note | `note` | [tax.Note](https://docs.gobl.org/draft-0/tax/note.md) | A note to be added to the document if the scenario is applied. |
| Codes | `codes` | [cbc.CodeMap](https://docs.gobl.org/draft-0/cbc/code_map.md) | Additional codes for regime specific situations. |
| Extensions | `ext` | [tax.Extensions](https://docs.gobl.org/draft-0/tax/extensions.md) | Tax extensions that should be applied to the document in the appropriate "tax" context. |


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