GS1 AI

Overview

Scandit supports the version 16.0 of the GS1 Application Identifier (AI) definitions standard. The latest version of the AI definitions is available in Section 3 GS1 Application Identifier definitions.

Example

Parsing following code (without the quotes)

"1719060010SCANDIT123"

will result in following JSON output:

[
    {
        "name" : "17",
        "parsed" : {
            "month" : 6,
            "year" : 2019
        },
        "string" : "190600"
    },
    {
        "name" : "10",
        "parsed" : "SCANDIT123",
        "string" : "SCANDIT123"
    }
]

Exposed Fields

The name of the fields correspond to the AI number. The following fields have their content parsed. Fields which are not in this list can still be accessed, but only the raw string is available.

  • “00”: parsed data is dictionary, always contains alphanumeric subfield “extension_digit”, “serial_reference”, might also contain alphanumeric subfield “company_prefix”
  • “01”, “02”: parsed data is dictionary, always contains numeric subfields “company_prefix” and “item_reference” and sometimes also integer field “indicator” (if non-0)
  • “10”, “11”, “12”, “13”, “15”, “16”, “17”: parsed data is dictionary, always contains integer fields “year” (YYYY), “month” (MM) and sometimes “day” (DD)
  • “20”: parsed data is an integer (the variant)
  • “21”: parsed data is a string (the serial number)
  • “30”: parsed data is an integer (count of items, between 0 and 99999999)
  • “31ab”, “32ab”, “33ab”, “34ab”, “35ab”, “36ab” for some numbers a and b: These AI’s are represented by two fields in our result: The field “31ab” and the fields “31ax”. For example: The AI “3222” has the fields “3222” and “322x” The parsed data is a string of the floating point number (e.g. “3202000150” has the parsed data “1.50”)
  • “37”: parsed data is an integer (count of items, between 0 and 99999999)
  • “400”: parsed data is a string (customer’s purchase order number)
  • “401”: parsed data is a string (the GINC)
  • “420”: parsed data is a string (postal code)
  • “422”: parsed data is a 3-digit string (ISO3166 country of origin)
  • “91”-“99”: parsed data is a string