Batch Number or Serial Number? Choosing with GS1 Codes

What batch numbers, unique serial numbers, GTIN, SSCC, GS1 DataMatrix and GS1 Digital Link each cover, and when each one is enough.

A batch number identifies a group of products made under the same conditions; a serial number identifies a single unit. Alongside them, the GS1 system has the GTIN for the product type, the SSCC for cases and pallets, and the data carriers that put this information on the product: DataMatrix, QR codes and GS1 Digital Link. Which ones you need depends on the smallest unit you would have to find an answer for when something goes wrong.

The choice can go wrong in both directions. Identification that is too coarse leaves copied codes and channel diversion invisible; identification that is too fine puts load on the line, the warehouse and the information systems that nobody needed. The building blocks below are grouped by what they identify.

Identifiers: by what they identify

GTIN: the product type

GS1's Global Trade Item Number (GTIN) identifies products that are priced, ordered or invoiced at any point in the supply chain. A GTIN identifies a product type, not a single box. The same GTIN is identical on every unit of that product in the market. Each packaging level, whether consumer unit, inner pack, case or pallet, can be identified with its own GTIN. It comes in four formats, GTIN-8, GTIN-12, GTIN-13 and GTIN-14, and is fully compliant with ISO/IEC 15459-4. A GTIN can be encoded in a barcode or an EPC/RFID tag; it is read at the checkout, at goods-in in the warehouse, or when a medicine is administered in a hospital. It is also used to identify products in electronic catalogues, order and invoice messages and on web pages.

Batch number: the production group

According to GS1, groups of products with similar production and usage characteristics can be distinguished with data elements added to the GTIN, such as a batch (lot) number and an expiry date. The batch level is designed to track a production batch as a whole: which raw material it was made from, on which line, on which date, and which customers it was shipped to.

Serial number: the individual unit

When a GTIN is used together with a serial number, each unit is identified uniquely. In pharmaceuticals, EU rules require that this serial number be at most 20 characters and that the probability of guessing it be negligible. Türkiye's Pharmaceutical Track and Trace System likewise carries the GTIN, serial number, batch number and expiry date together on every pack.

SSCC: the logistic unit

The 18-digit Serial Shipping Container Code (SSCC) identifies logistic units such as cases, pallets or packages that have been assembled for storage and transport. The number does not change throughout the logistic unit's life. Matched with despatch advice messages sent before shipment, it speeds up goods receipt and invoicing. Because it uniquely identifies every logistic unit and its contents, GS1 counts the SSCC among the basic keys of traceability; the code is compliant with ISO/IEC 15459-1.

Data carriers: ways of putting information on a product

An identifier and the symbol that carries it are different things. The same data can be carried in a linear barcode, a two-dimensional code or an RFID tag.

GS1 DataMatrix

GS1 DataMatrix is a two-dimensional symbol that carries a lot of data in little space, can be printed directly on a product, and thanks to its error correction remains readable even when damaged or poorly printed. GS1's healthcare community notes that pharmaceutical traceability legislation in more than 75 countries, including Türkiye, is met with DataMatrix, and recommends that QR codes not be used for product identification on healthcare products.

GS1 Digital Link is the method for encoding identifiers such as GTIN, GLN and SSCC, together with batch number, serial number and expiry date, in the form of a standard web address (URI). In retail the aim is for every product to carry a single multi-purpose two-dimensional code that can both be read at the checkout and lead to instructions for use, certificates or traceability information. The brand can update the digital content it points to without changing the code on the packaging. In healthcare applications, Digital Link is not embedded in the two-dimensional code; the data in the DataMatrix is converted to a Digital Link address by the mobile app where needed.

However well a code is designed, it is useless if it cannot be read. The EU's pharmaceutical rules require the Data Matrix to be printed on a smooth, uniform, low-reflecting surface, and presume a print quality of at least 1.5 under ISO/IEC 15415 to be sufficient. The product code and serial number must also be printed in human-readable form unless the sum of the pack's two longest dimensions is 10 centimetres or less. Manufacturers are also obliged to evaluate the quality of the printed code. In sectors with no such obligation, these thresholds still make a good reference when setting quality control criteria on the production line.

Sunrise 2027

GS1's Sunrise 2027 initiative refers to retail's transition from linear barcodes to two-dimensional codes such as QR (GS1 Digital Link) and GS1 DataMatrix. According to GS1 US, the initiative aims for retailers' point-of-sale systems to read and process two-dimensional codes; not every 2D capability has to be in place by that date, and it recommends starting the transition now.

Event data: EPCIS and linking units together

Identifiers answer the question "what is this". The question "where, when and in whose hands" needs event data. GS1's EPCIS standard defines interoperable data sharing about the status, location, movement and custody of products. One of the core pieces of information EPCIS supports is aggregation: placing individual products in cases, cases on pallets and pallets in containers. This means that when an SSCC is read, the individual units inside it can be reached, and a shipment can be managed without scanning each one. Version 2.0 of EPCIS also standardises the inclusion of sensor data and product and process certificates in event messages, which matters in processes such as cold chains where conditions must be recorded as well.

Which level answers which question?

The mapping below is a starting point; setup decisions such as the line, scan points and system integration are covered separately in Tagvex's article on building a product traceability system.

  • GTIN alone: enough for checkout sales, stock and catalogue management. For products with low recall and counterfeiting risk and low unit value, it often does the job on its own.
  • GTIN with batch number and expiry date: needed in food, cosmetics and chemicals for targeted recalls, shelf-life management and tying quality problems back to their source. But because thousands of products in the same batch carry the same code, a copied batch code cannot be told apart.
  • GTIN with serial number: needed for high-value products, products carrying a health risk, and products requiring warranty or channel control. Each unit's history can be followed; the same number read in two places shows up as an anomaly.
  • SSCC and event data: makes it possible to manage shipments in warehouse and distribution processes. Linked with serialised products, the information about which unit went to which dealer forms by itself.
  • GS1 Digital Link: a suitable approach for brands that want to give consumers information, move to two-dimensional codes in retail, and prepare for regulations that foresee a data carrier such as a QR code, like the EU Digital Product Passport.

Does a number prove that a product is genuine?

Not on its own. The GTIN is the same on every box, the batch number repeats across thousands of boxes, and even a serial number can be photographed from a genuine product's packaging and reproduced. The number says which product this is; whether the box in your hand is that product is a separate question. The EU's pharmaceutical rules follow from this distinction when they ask for the unique identifier together with an anti-tampering device and have the code decommissioned when the medicine is dispensed to the patient.

That is why set-ups built against copying usually combine three parts:

  1. A standard identifier (GTIN, plus batch and serial number where needed)
  2. A physical element that is hard to copy
  3. A data layer that watches reads and flags codes seen repeatedly or in unexpected places

What does Spectrace offer in these layers?

Tagvex gives each product, or each batch, its own number and records every change of hands from the line exit to the warehouse, the dealer and the end user; a copied code shows up in the record as a repeated or unexpected scan. Grafex adds an invisible signature to the existing packaging design. In both, verification is done with a smartphone. In sectors with an official track and trace system, such as medicines and medical devices, these records do not replace notifications to İTS or ÜTS.

Sources

gs1serial numberbatch numberdata matrixtraceability

Request a meeting

The right solution for your product follows from a needs analysis.

In the first meeting we review your product, sales channels and the risks you face, then recommend a verification method that fits.

Request a meeting