# EnableAddOnCode

Parameter `EnableAddOnCode` defines whether to identify addon code.

## JSON Structure

**Location in template:**
```
BarcodeFormatSpecificationOptions[i]
    └── EnableAddOnCode
```

**Parent object:** [BarcodeFormatSpecification](https://www.dynamsoft.com/capture-vision/docs/core/parameters/reference/barcode-format-specification/index.md) object

**Example:**

```json
{
    "EnableAddOnCode": 1
}
```

> [!NOTE]
> - This snippet shows only the `EnableAddOnCode` parameter.
> - To use it, embed this parameter within a [BarcodeFormatSpecification](https://www.dynamsoft.com/capture-vision/docs/core/parameters/reference/barcode-format-specification/index.md) object.
> - For the complete JSON structure, see:
>   - [Full JSON Structure](https://www.dynamsoft.com/capture-vision/docs/core/parameters/reference/index.md#full-json-structure)
>   - [Minimal Valid JSON](https://www.dynamsoft.com/capture-vision/docs/core/parameters/reference/index.md#minimal-valid-json-example)

## Parameter Details

The structure of the `EnableAddOnCode` is shown as follow:

| EnableAddOnCode  Parameter Details |
| :--------------------------------- |
| **Type**<br>*int* |
| **Range**<br>[0, 1] |
| **Default Value**<br>0 |

**Remarks**

- 0: do not identify addon code.
- 1: identify addon code.
- This parameter is valid only for EAN8/EAN13/UPCA/UPCE code formats.
