{
  "id": "gcn",
  "name": "Global Coupon Number (GCN)",
  "status": "draft",
  "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.",
  "categories": [
    {
      "id": "gs1",
      "name": "GS1 standards"
    },
    {
      "id": "objectids",
      "name": "Objects identifiers"
    },
    {
      "id": "ecommerce",
      "name": "E-commerce"
    }
  ],
  "langs": [
    {
      "id": "common",
      "name": "Common to most languages"
    }
  ],
  "is_pii": false,
  "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"
    },
    {
      "value": "9528765000178000781",
      "description": "Synthetic value with the GS1 demonstration prefix 952: coupon offer and serial component"
    },
    {
      "value": "9528765000178COUPON",
      "valid": false,
      "description": "The serial component is numeric"
    }
  ],
  "links": [
    {
      "type": "doc",
      "url": "https://ref.gs1.org/ai/255"
    },
    {
      "type": "doc",
      "url": "https://ref.gs1.org/standards/genspecs/"
    }
  ],
  "type": "datatype",
  "translations": {},
  "patterns": [
    {
      "id": "gs1_ai_255",
      "name": "Global Coupon Number (GS1 AI 255)",
      "status": "draft",
      "doc": "GS1 element string of Application Identifier (255): '255' followed by a GCN: 13 digits and an optional numeric serial component. GS1 format N3+N13[+N..12]. In the human-readable text under a barcode it is written as (255) and the value.",
      "semantic_type": "gcn",
      "langs": [
        {
          "id": "common",
          "name": "Common to most languages"
        }
      ],
      "regexp": "^255\\d{13,25}$",
      "examples": [
        {
          "value": "2559528765000178",
          "description": "Synthetic value with the GS1 demonstration prefix 952"
        },
        {
          "value": "2559528765000178000781",
          "description": "Synthetic value with the GS1 demonstration prefix 952; with a serial component"
        },
        {
          "value": "2559528765000178X1",
          "valid": false,
          "description": "Serial component is numeric"
        }
      ],
      "mappings": {
        "gs1_ai": "255"
      },
      "links": [
        {
          "type": "doc",
          "url": "https://ref.gs1.org/ai/255"
        }
      ],
      "type": "pattern",
      "is_pii": false,
      "categories": [
        {
          "id": "gs1",
          "name": "GS1 standards"
        },
        {
          "id": "objectids",
          "name": "Objects identifiers"
        },
        {
          "id": "ecommerce",
          "name": "E-commerce"
        }
      ],
      "classification": "identifier",
      "translations": {}
    }
  ]
}