{
  "id": "package_type",
  "name": "Package type",
  "status": "draft",
  "doc": "Kind of package in which goods are shipped, written as a word, for example Box, Carton, Bag, Drum or Pallet. Customs declarations, packing lists and bills of lading keep it next to the number of packages. The coded form in trade documents is the two-character code of UN/ECE Recommendation 21 (unece_rec21_package_code).",
  "categories": [
    {
      "id": "shipping",
      "name": "Shipping and delivery"
    }
  ],
  "langs": [
    {
      "id": "common",
      "name": "Common to most languages"
    }
  ],
  "is_pii": false,
  "classification": "categorical",
  "examples": [
    {
      "value": "Box"
    },
    {
      "value": "Carton"
    },
    {
      "value": "Bag"
    }
  ],
  "links": [
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/Packaging"
    },
    {
      "type": "wikidata",
      "url": "https://www.wikidata.org/wiki/Q207822"
    }
  ],
  "translations": {
    "ru": {
      "name": "Вид упаковки"
    },
    "fr": {
      "name": "Type d'emballage"
    }
  },
  "type": "datatype",
  "patterns": [
    {
      "id": "unece_rec21_package_code",
      "name": "UN/ECE Recommendation 21 package type code",
      "status": "draft",
      "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",
      "langs": [
        {
          "id": "common",
          "name": "Common to most languages"
        }
      ],
      "regexp": "^[A-Z0-9]{2}$",
      "examples": [
        {
          "value": "BX",
          "description": "Box"
        },
        {
          "value": "CT",
          "description": "Carton"
        },
        {
          "value": "BG",
          "description": "Bag"
        },
        {
          "value": "1A",
          "description": "Drum, steel"
        },
        {
          "value": "43",
          "description": "Bag, super bulk"
        },
        {
          "value": "BOX",
          "valid": false,
          "description": "Three characters"
        }
      ],
      "links": [
        {
          "type": "doc",
          "url": "https://docs.oasis-open.org/ubl/os-UBL-2.1/cl/gc/default/PackagingTypeCode-2.1.gc"
        }
      ],
      "type": "pattern",
      "is_pii": false,
      "categories": [
        {
          "id": "shipping",
          "name": "Shipping and delivery"
        }
      ],
      "classification": "categorical",
      "translations": {}
    }
  ]
}