> ## Documentation Index
> Fetch the complete documentation index at: https://gobl-improv.mintlify.site/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/regime-def#/$defs/Scenario`

## Properties

| Title          | Property   | Type                                           | Req. | Description                                                                                                                                                                   |
| -------------- | ---------- | ---------------------------------------------- | ---- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Name           | `name`     | [i18n.String](/draft-0/i18n/string)            |      | Name of the scenario for further information.                                                                                                                                 |
| Type           | `type`     | array of [cbc.Key](/draft-0/cbc/key)           |      | Type of document, if present.                                                                                                                                                 |
| Tags           | `tags`     | array of [cbc.Key](/draft-0/cbc/key)           |      | Array of tags that have been applied to the document.                                                                                                                         |
| Extension Key  | `ext_key`  | [cbc.Key](/draft-0/cbc/key)                    |      | Extension key that must be present in the document.                                                                                                                           |
| Extension Code | `ext_code` | [cbc.Code](/draft-0/cbc/code)                  |      | Extension code that along side the key must be present for a match to happen. This cannot be used without an `cbc.Code`. The value will be copied to the note code if needed. |
| Note           | `note`     | [tax.ScenarioNote](/draft-0/tax/scenario_note) |      | A note to be added to the document if the scenario is applied.                                                                                                                |
| Codes          | `codes`    | [cbc.CodeMap](/draft-0/cbc/code_map)           |      | Codes is used to define additional codes for regime specific situations.                                                                                                      |
| Extensions     | `ext`      | [tax.Extensions](/draft-0/tax/extensions)      |      | Ext represents a set of tax extensions that should be applied to the document in the appropriate "tax" context.                                                               |
