{
  "id": "gs1_ai_21",
  "kind": "datatype",
  "status": "draft",
  "name": "Serial number (GS1 AI 21)",
  "doc": "GS1 element string of Application Identifier (21): '21' followed by the serial number of one instance of a trade item, up to 20 characters of GS1 character set 82. GS1 format N2+X..20. With the GTIN in AI (01) it identifies one item, the serialised GTIN (SGTIN). It is a key qualifier in GS1 Digital Link. In the human-readable text under a barcode it is written as (21) and the value.",
  "is_pii": false,
  "categories": [
    "gs1",
    "objectids"
  ],
  "langs": [
    "common"
  ],
  "classification": "identifier",
  "regexp": "^21[!%-?A-Z_a-z\\x22]{1,20}$",
  "examples": [
    {
      "value": "21SN58213X",
      "description": "Serial number SN58213X",
      "valid": true
    },
    {
      "value": "217XK29",
      "description": "Serial number 7XK29",
      "valid": true
    },
    {
      "value": "21AAAAAAAAAAAAAAAAAAAAA",
      "description": "Serial number longer than 20 characters",
      "valid": false
    }
  ],
  "mappings": {
    "gs1_ai": "21"
  },
  "links": [
    {
      "type": "doc",
      "url": "https://ref.gs1.org/ai/21"
    },
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/Serial_number"
    }
  ],
  "quality": {
    "score": 85,
    "missing": [
      "translation",
      "detector coverage"
    ]
  },
  "source": {
    "path": "data/datatypes/any/gs1/gs1_ai_21.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/gs1/gs1_ai_21.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/gs1/gs1_ai_21.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/gs1_ai_21",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/gs1_ai_21.json"
  }
}