---
id: "gs1_ai_22"
kind: "datatype"
status: "draft"
is_pii: false
categories: ["gs1", "ecommerce"]
langs: ["common"]
quality: 85
url: "http://registry.apicrafter.io/datatype/gs1_ai_22"
---

# Consumer product variant (GS1 AI 22) (`gs1_ai_22`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

GS1 element string of Application Identifier (22): '22' followed by a code, up to 20 characters, that tells apart variants of a trade item sold under one GTIN. GS1 format N2+X..20. It is used with the GTIN in AI (01). It is a key qualifier in GS1 Digital Link. In the human-readable text under a barcode it is written as (22) and the value.

- Personal data (PII): no
- Categories: GS1 standards (gs1), E-commerce (ecommerce)
- Countries: global
- Languages: Common to most languages (common)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^22[!%-?A-Z_a-z\x22]{1,20}$
```

## Examples

- `22B7` — Variant B7
- `2204` — Variant 04
- `22` (invalid example) — No variant code

## Mappings

- gs1_ai: `22`

## Sources

- doc: <https://ref.gs1.org/ai/22>

## Quality

Score 85/100. Missing: translation, detector coverage.

JSON: <http://registry.apicrafter.io/api/v1/datatypes/gs1_ai_22.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/gs1/gs1_ai_22.yaml>
