Skip to content

GS1 DataMatrix: read the expiry date from the code, not from the pack

Some packs already carry a GS1 DataMatrix code with the expiry date inside. The new freshto-app reads that date when staff scan the code. Packs without a date in the code get the date typed once, on a numeric keypad.

Why Sunrise 2027 matters for store shelves

GS1 has set an industry goal called Ambition 2027, often called Sunrise 2027. By the end of 2027, retail point-of-sale scanning should read and process the GTIN from linear and 2D barcodes. It is an industry goal, not a law.

The approved retail 2D codes are GS1 DataMatrix, and QR Code or Data Matrix with GS1 Digital Link URI syntax. Linear barcodes do not go away. Until 90% of POS scanning solutions can read 2D codes, packs with a 2D code must also carry a linear barcode.

For the shelf, the useful part is the extra data. A 2D code can carry the batch and the expiry date next to the GTIN. Application Identifier (AI) 17 holds the expiry date as YYMMDD: (17)271231 means 31 December 2027.

Not every pack will carry a date in its code. The brand owner decides, and the pace differs by region. For years, staff will scan a mix: yogurt with the date in the code, bread with only an EAN, cooked ham with a weighed-goods label.

How expiry reading from GS1 DataMatrix works in the new freshto-app

Staff go through four steps at the shelf.

  1. Scan: Camera scanning is available in native test builds. In the web version, type or paste the code. A keyboard-mode scanner can enter the code in the Scan field. Valid EAN-13 labels with prefixes 21–29 use the item portion for product lookup.
  2. Date from AI 17, or typed once: When the code includes a product GTIN, the app can prefill the date for a product it finds, using AI 17 for expiry or AI 15 for best before if AI 17 is absent. Otherwise staff type the nearest date on the numeric keypad.
  3. Rule: the app keeps one nearest date per product, the worst one on the shelf. The category markdown rule applies to that date, for example -25% two days before, -50% one day before, remove after the date. Single stores can have exceptions.
  4. Task: the rule becomes a task on the morning list: check, mark down or remove. Each task shows its reason, for example “1 day left: mark down -50%”.

The list is ordered by store section, so the walk follows the floor from dairy to bakery. Removals record quantity and reason: past date, damaged or other.

Offline and the store workflow

Cold rooms and back stores often have no signal. Scans, dates, markdowns, removals and tasks all work offline. Events are stored on the phone and uploaded in the background when the network returns, retried without duplicates. Staff see the status: “All sent”, “N waiting” or “Offline” (“Offline: N” if events are queued). Two phones in the same store sync to the same list. Nobody presses a send button at the end of the shift.

The store manager overview shows progress for the day, open tasks, tasks done today and a 7-day forecast. The interface runs in English, Polish, Czech, Ukrainian, Russian and Kazakh.

Available now and planned

Available now in the new freshto-app (web and test builds):

  • Native camera scanning of EAN/UPC and GS1 DataMatrix, with AI 17 expiry or AI 15 best-before date and manual code entry on the web
  • Keyboard-mode scanners through the Scan field and EAN-13 variable-measure labels with prefixes 21–29
  • Nearest-date entry from a numeric keypad, quick dates, month-and-year mode
  • Markdown rules per category with steps and store exceptions
  • Morning task list per store, ordered by section, with a reason on each task
  • Removals with quantity and reason, “not on shelf” and “stop tracking”
  • Offline work with background upload and visible sync status
  • Store manager overview with a 7-day forecast

Planned:

  • Store-published iOS and Android releases of the new freshto-app (next release, v0.2)
  • Reading the printed date on the pack with the camera, with a confirmation screen
  • Recording each markdown outcome as sold, donated to a food bank or written off
  • ESG report on loss reduction (kg of food, CO2e)
  • Markdown percentage recommendations from sales speed
  • Multi-store head office reports and a catalogue import API with stock levels
  • Sticker printing on a Bluetooth label printer

The current Android app, which stores use today, does not read the expiry date from the code.

Start with a pilot

We run a 30-day pilot in one or two stores. We use a published method to measure time spent on expiry checks and write-offs before and after the pilot. Read how the pilot is measured or book a 45-minute call.

Frequently asked questions

What is GS1 Sunrise 2027 and is it mandatory?

Sunrise 2027, officially Ambition 2027, is a GS1 industry goal. By the end of 2027, retail point-of-sale scanning should read and process the GTIN from linear barcodes and 2D barcodes such as GS1 DataMatrix. It is not a law. Linear barcodes stay on packs during the transition, and the pace differs by region.

Does Freshto read the expiry date from every barcode?

No. A plain EAN or UPC does not carry a date. When a GS1 code includes a product GTIN, the app can prefill the date for a product it finds, using AI 17 for expiry or AI 15 for best before if AI 17 is absent. Otherwise staff type the nearest date on the numeric keypad.

Does the current Freshto Android app read dates from GS1 DataMatrix?

No. The current Android app scans barcodes with the camera and hardware scanners, but it does not read the expiry date from the code. Date reading from GS1 DataMatrix is available in the new freshto-app, in native test builds and also works in the web version when staff enter or paste the encoded data. Store-published iOS and Android releases are planned for the next release, v0.2.

Can Freshto read the printed date on the pack with the camera?

Not yet. Reading the printed date with the camera, on the device, is planned and has not started. The plan includes a confirmation screen so staff check the date before it is saved. Today, dates come from a GS1 DataMatrix code when it carries one, or staff type them on a numeric keypad.