{
  "version": "1.0",
  "generated": "2026-10-28",
  "dataset": "ProductPassKit synthetic GTIN structural validation examples",
  "disclaimer": "These identifiers are synthetic algorithm test vectors, not proof of GS1 licensing, allocation, ownership or product assignment. No data in this dataset should be used as a real product GTIN.",
  "standards": [
    "https://ref.gs1.org/standards/genspecs/",
    "https://www.gs1.org/services/check-digit-calculator"
  ],
  "fields": [
    "id",
    "type",
    "input",
    "expected_valid",
    "expected_type",
    "expected_check_digit",
    "expected_gtin14",
    "reason"
  ],
  "vectors": [
    {
      "id": "gtin-8-1-pass",
      "type": "GTIN-8",
      "input": "96385074",
      "expected_valid": true,
      "expected_type": "GTIN-8",
      "expected_check_digit": "4",
      "expected_gtin14": "00000096385074",
      "reason": "valid_structure_only"
    },
    {
      "id": "gtin-8-1-fail-checkdigit",
      "type": "GTIN-8",
      "input": "96385075",
      "expected_valid": false,
      "expected_type": "GTIN-8",
      "expected_check_digit": "4",
      "expected_gtin14": null,
      "reason": "check_digit_mismatch"
    },
    {
      "id": "gtin-8-2-pass",
      "type": "GTIN-8",
      "input": "12345670",
      "expected_valid": true,
      "expected_type": "GTIN-8",
      "expected_check_digit": "0",
      "expected_gtin14": "00000012345670",
      "reason": "valid_structure_only"
    },
    {
      "id": "gtin-8-2-fail-checkdigit",
      "type": "GTIN-8",
      "input": "12345671",
      "expected_valid": false,
      "expected_type": "GTIN-8",
      "expected_check_digit": "0",
      "expected_gtin14": null,
      "reason": "check_digit_mismatch"
    },
    {
      "id": "gtin-8-3-pass",
      "type": "GTIN-8",
      "input": "00000123",
      "expected_valid": true,
      "expected_type": "GTIN-8",
      "expected_check_digit": "3",
      "expected_gtin14": "00000000000123",
      "reason": "valid_structure_only"
    },
    {
      "id": "gtin-8-3-fail-checkdigit",
      "type": "GTIN-8",
      "input": "00000124",
      "expected_valid": false,
      "expected_type": "GTIN-8",
      "expected_check_digit": "3",
      "expected_gtin14": null,
      "reason": "check_digit_mismatch"
    },
    {
      "id": "gtin-12-1-pass",
      "type": "GTIN-12",
      "input": "036000291452",
      "expected_valid": true,
      "expected_type": "GTIN-12",
      "expected_check_digit": "2",
      "expected_gtin14": "00036000291452",
      "reason": "valid_structure_only"
    },
    {
      "id": "gtin-12-1-fail-checkdigit",
      "type": "GTIN-12",
      "input": "036000291453",
      "expected_valid": false,
      "expected_type": "GTIN-12",
      "expected_check_digit": "2",
      "expected_gtin14": null,
      "reason": "check_digit_mismatch"
    },
    {
      "id": "gtin-12-2-pass",
      "type": "GTIN-12",
      "input": "012345678905",
      "expected_valid": true,
      "expected_type": "GTIN-12",
      "expected_check_digit": "5",
      "expected_gtin14": "00012345678905",
      "reason": "valid_structure_only"
    },
    {
      "id": "gtin-12-2-fail-checkdigit",
      "type": "GTIN-12",
      "input": "012345678906",
      "expected_valid": false,
      "expected_type": "GTIN-12",
      "expected_check_digit": "5",
      "expected_gtin14": null,
      "reason": "check_digit_mismatch"
    },
    {
      "id": "gtin-12-3-pass",
      "type": "GTIN-12",
      "input": "123456789012",
      "expected_valid": true,
      "expected_type": "GTIN-12",
      "expected_check_digit": "2",
      "expected_gtin14": "00123456789012",
      "reason": "valid_structure_only"
    },
    {
      "id": "gtin-12-3-fail-checkdigit",
      "type": "GTIN-12",
      "input": "123456789013",
      "expected_valid": false,
      "expected_type": "GTIN-12",
      "expected_check_digit": "2",
      "expected_gtin14": null,
      "reason": "check_digit_mismatch"
    },
    {
      "id": "gtin-13-1-pass",
      "type": "GTIN-13",
      "input": "4006381333931",
      "expected_valid": true,
      "expected_type": "GTIN-13",
      "expected_check_digit": "1",
      "expected_gtin14": "04006381333931",
      "reason": "valid_structure_only"
    },
    {
      "id": "gtin-13-1-fail-checkdigit",
      "type": "GTIN-13",
      "input": "4006381333932",
      "expected_valid": false,
      "expected_type": "GTIN-13",
      "expected_check_digit": "1",
      "expected_gtin14": null,
      "reason": "check_digit_mismatch"
    },
    {
      "id": "gtin-13-2-pass",
      "type": "GTIN-13",
      "input": "6291041500213",
      "expected_valid": true,
      "expected_type": "GTIN-13",
      "expected_check_digit": "3",
      "expected_gtin14": "06291041500213",
      "reason": "valid_structure_only"
    },
    {
      "id": "gtin-13-2-fail-checkdigit",
      "type": "GTIN-13",
      "input": "6291041500214",
      "expected_valid": false,
      "expected_type": "GTIN-13",
      "expected_check_digit": "3",
      "expected_gtin14": null,
      "reason": "check_digit_mismatch"
    },
    {
      "id": "gtin-13-3-pass",
      "type": "GTIN-13",
      "input": "5901234123457",
      "expected_valid": true,
      "expected_type": "GTIN-13",
      "expected_check_digit": "7",
      "expected_gtin14": "05901234123457",
      "reason": "valid_structure_only"
    },
    {
      "id": "gtin-13-3-fail-checkdigit",
      "type": "GTIN-13",
      "input": "5901234123458",
      "expected_valid": false,
      "expected_type": "GTIN-13",
      "expected_check_digit": "7",
      "expected_gtin14": null,
      "reason": "check_digit_mismatch"
    },
    {
      "id": "gtin-14-1-pass",
      "type": "GTIN-14",
      "input": "09520123456788",
      "expected_valid": true,
      "expected_type": "GTIN-14",
      "expected_check_digit": "8",
      "expected_gtin14": "09520123456788",
      "reason": "valid_structure_only"
    },
    {
      "id": "gtin-14-1-fail-checkdigit",
      "type": "GTIN-14",
      "input": "09520123456789",
      "expected_valid": false,
      "expected_type": "GTIN-14",
      "expected_check_digit": "8",
      "expected_gtin14": null,
      "reason": "check_digit_mismatch"
    },
    {
      "id": "gtin-14-2-pass",
      "type": "GTIN-14",
      "input": "10012345000017",
      "expected_valid": true,
      "expected_type": "GTIN-14",
      "expected_check_digit": "7",
      "expected_gtin14": "10012345000017",
      "reason": "valid_structure_only"
    },
    {
      "id": "gtin-14-2-fail-checkdigit",
      "type": "GTIN-14",
      "input": "10012345000018",
      "expected_valid": false,
      "expected_type": "GTIN-14",
      "expected_check_digit": "7",
      "expected_gtin14": null,
      "reason": "check_digit_mismatch"
    },
    {
      "id": "gtin-14-3-pass",
      "type": "GTIN-14",
      "input": "12345678901231",
      "expected_valid": true,
      "expected_type": "GTIN-14",
      "expected_check_digit": "1",
      "expected_gtin14": "12345678901231",
      "reason": "valid_structure_only"
    },
    {
      "id": "gtin-14-3-fail-checkdigit",
      "type": "GTIN-14",
      "input": "12345678901232",
      "expected_valid": false,
      "expected_type": "GTIN-14",
      "expected_check_digit": "1",
      "expected_gtin14": null,
      "reason": "check_digit_mismatch"
    },
    {
      "id": "non-numeric-letter",
      "input": "40063813339A1",
      "expected_valid": false,
      "expected_type": null,
      "expected_check_digit": null,
      "expected_gtin14": null,
      "reason": "non_numeric"
    },
    {
      "id": "unsupported-11-digit",
      "input": "03600029145",
      "expected_valid": false,
      "expected_type": null,
      "expected_check_digit": null,
      "expected_gtin14": null,
      "reason": "unsupported_length"
    },
    {
      "id": "unsupported-15-digit",
      "input": "100123450000123",
      "expected_valid": false,
      "expected_type": null,
      "expected_check_digit": null,
      "expected_gtin14": null,
      "reason": "unsupported_length"
    },
    {
      "id": "missing-value",
      "input": "",
      "expected_valid": false,
      "expected_type": null,
      "expected_check_digit": null,
      "expected_gtin14": null,
      "reason": "empty_input"
    },
    {
      "id": "separator-whitespace",
      "input": " 4006-3813 33931 ",
      "expected_valid": true,
      "expected_type": "GTIN-13",
      "expected_check_digit": "1",
      "expected_gtin14": "04006381333931",
      "reason": "separators_accepted"
    },
    {
      "id": "leading-zero-upc",
      "input": "036000291452",
      "expected_valid": true,
      "expected_type": "GTIN-12",
      "expected_check_digit": "2",
      "expected_gtin14": "00036000291452",
      "reason": "leading_zero_preserved"
    }
  ]
}
