{
  "id": "gcn",
  "kind": "datatype",
  "status": "draft",
  "name": "Global Coupon Number (GCN)",
  "doc": "GS1 identification key for a coupon offer, used on paper and digital coupons. Thirteen digits (a GS1 Company Prefix, a coupon reference and a GS1 check digit) may be followed by a serial component of up to 12 digits that identifies one issued coupon. In barcodes it is carried by Application Identifier (255); the element string is the pattern gs1_ai_255.",
  "patterns": [
    "gs1_ai_255"
  ],
  "is_pii": false,
  "categories": [
    "gs1",
    "objectids",
    "ecommerce"
  ],
  "langs": [
    "common"
  ],
  "classification": "identifier",
  "regexp": "^\\d{13,25}$",
  "examples": [
    {
      "value": "9528765000178",
      "description": "Synthetic value with the GS1 demonstration prefix 952: coupon offer, GS1 check digit in position 13",
      "valid": true
    },
    {
      "value": "9528765000178000781",
      "description": "Synthetic value with the GS1 demonstration prefix 952: coupon offer and serial component",
      "valid": true
    },
    {
      "value": "9528765000178COUPON",
      "description": "The serial component is numeric",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "doc",
      "url": "https://ref.gs1.org/ai/255"
    },
    {
      "type": "doc",
      "url": "https://ref.gs1.org/standards/genspecs/"
    }
  ],
  "quality": {
    "score": 75,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)",
      "translation",
      "detector coverage"
    ]
  },
  "source": {
    "path": "data/datatypes/any/gs1/gcn.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/gs1/gcn.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/gs1/gcn.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/gcn",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/gcn.json"
  }
}