GTIN & UPC¶
The Global Trade Item Number (GTIN) is an identifier for trade items, developed by GS1. Such identifiers are used to look up product information in a database (often by entering the number through a barcode scanner pointed at an actual product) which may belong to a retailer, manufacturer, collector, researcher, or other entity. The uniqueness and universality of the identifier is useful in establishing which product in one database corresponds to which product in another database, especially across organizational boundaries.
Original PDF:
GTIN.pdf (SN 01090)
Identification¶
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
N | N | N | N | N | N | N | N | N | N | N | N | N? | N? |
Validation¶
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
N | N | N | N | N | N | N | N | N | N | N | N | N? | N? |
A check digit is a form of redundancy check used for error detection on identification numbers, such as bank account numbers, which are used in an application where they will at least sometimes be input manually. It is analogous to a binary parity bit used to check for errors in computer-generated data. It consists of one or more digits (or letters) computed by an algorithm from the other digits (or letters) in the sequence input.
With a check digit, one can detect simple errors in the input of a series of characters (usually digits) such as a single mistyped digit or some permutations of two successive digits.
https://www.gs1.org/services/check-digit-calculator
RegEx (https://regex101.com/r/thQshK/1/)
^\d{12,14}$
Classification¶
As a requesting service, I want to get information about the state of the number if it is validated as correct, that I have more details about the product number.
The classification should only be executed for valid numbers.
The return string is called Normbyte and is max. two characters long. The Normbyte is there to encode validation and classification results.
Normbyte for GTIN / UPC:
NB | Description |
---|---|
EA | Code number for products (13 or 14 positions) |
UP | Code number for products (12 positions) |
Formatting¶
As a requesting service, I want to format my product numbers in two different output formats which are following the numbering standards, that I can ensure my numbers are structured everytime the same.
SORT & PRINT:
No separation characters.