# VerifyCheckDigit

Parameter `VerifyCheckDigit` specifies whether to verify the check digit in barcodes where this check digit is optional.

## JSON Structure

**Location in template:**
```
BarcodeFormatSpecificationOptions[i]
    └── VerifyCheckDigit
```

**Parent object:** [BarcodeFormatSpecification](https://www.dynamsoft.com/capture-vision/docs/core/parameters/reference/barcode-format-specification/index.md) object

**Example:**

```json
{
    "VerifyCheckDigit": 1
}
```

> [!NOTE]
> - This snippet shows only the `VerifyCheckDigit` 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 `VerifyCheckDigit` is shown as follow:

| VerifyCheckDigit  Parameter Details |
| :--------------------------------- |
| **Type**<br>*int* |
| **Range**<br>[0, 1] |
| **Default Value**<br>0 |

**Remarks**

- It is valid only for Code 11.
- 0: do not verify the check digit.
- 1: verify the check digit and if it does not match, no result will be returned. Do not set this parameter to 1 for barcodes without an optional check digit.
