{
  "id": "unece_rec21_package_code",
  "kind": "pattern",
  "status": "draft",
  "name": "UN/ECE Recommendation 21 package type code",
  "doc": "Two-character code of a type of package from UN/ECE Recommendation 21, used in customs declarations, UN/EDIFACT and UBL documents, for example BX for box or CT for carton. Codes use uppercase letters and digits in any combination (BX, 1A, 43). Many other two-character codes have the same shape, such as country codes, so the field name is the evidence.",
  "semantic_type": "package_type",
  "is_pii": false,
  "categories": [
    "shipping"
  ],
  "langs": [
    "common"
  ],
  "classification": "categorical",
  "regexp": "^[A-Z0-9]{2}$",
  "examples": [
    {
      "value": "BX",
      "description": "Box",
      "valid": true
    },
    {
      "value": "CT",
      "description": "Carton",
      "valid": true
    },
    {
      "value": "BG",
      "description": "Bag",
      "valid": true
    },
    {
      "value": "1A",
      "description": "Drum, steel",
      "valid": true
    },
    {
      "value": "43",
      "description": "Bag, super bulk",
      "valid": true
    },
    {
      "value": "BOX",
      "description": "Three characters",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "doc",
      "url": "https://docs.oasis-open.org/ubl/os-UBL-2.1/cl/gc/default/PackagingTypeCode-2.1.gc"
    }
  ],
  "quality": {
    "score": 75,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)",
      "translation",
      "detector coverage"
    ]
  },
  "source": {
    "path": "data/datatypes/any/shipping/unece_rec21_package_code.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/shipping/unece_rec21_package_code.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/shipping/unece_rec21_package_code.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/unece_rec21_package_code",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/unece_rec21_package_code.json"
  }
}