How it works
How food traceability works: lot codes, barcodes and digital paperwork
How a sack of almonds is traced from grower to factory: lot numbers, case barcodes, scanners and digital certificates, and where DeliNatural keeps the documents.

Food traceability is the ability to follow a batch of food from where it was grown to where it was used, and back again. It runs on surprisingly simple technology: printed lot codes, barcodes, scanners and databases. B2B platforms that sell ingredients, such as DeliNatural, add a digital layer by keeping certificates and delivery documents with each order.
This explainer covers what a lot code is, how barcodes on cases carry batch data, what happens at goods-in, and why digital paperwork makes a recall faster.
What is food traceability and why is it required?
If a batch of food turns out to be unsafe, a business has to find out quickly where it came from and where it went. EU food law, which the UK kept, sets the baseline: every food business must be able to identify its suppliers one step back and its business customers one step forward. Nobody needs to see the whole chain at once, but each link has to keep its own records.
In practice that means recording what you received, from whom, when and in which batch, and the same for what you sent out. Paper can do this. Software does it faster and with fewer gaps.
What is a lot code?
A lot or batch code is an identifier for a group of products made or packed under the same conditions, such as one day's run on one line. It is printed on every pack, carton or sack, often by an inkjet or thermal printer on the packing line, next to the best-before date.
The code links the physical product to records in the producer's system: the raw materials used, the machine, the shift and the lab results. When a problem is found, the lot code tells everyone which products are affected and which are not, so a recall can be narrow instead of pulling everything off the shelves.
The lot code tells everyone which products are affected and which are not.
How do barcodes carry batch information?
The barcode on a retail pack usually holds only a product number, called a GTIN in the GS1 system. It tells the till what the item is, not which batch it came from. Cases and pallets are different. Logistics labels often use a longer barcode format, GS1-128, which can hold several pieces of data in one code, each marked by a short prefix called an application identifier.
Common ones include the product number, the batch or lot number and the best-before or expiry date. Two-dimensional codes such as GS1 DataMatrix and QR codes can carry the same data in a smaller space, and some link to a web page with more product information.
- Product number (GTIN): what the item is.
- Batch or lot number: which production run it came from.
- Best-before or expiry date: how long it keeps.
- Serial shipping container code: which pallet or parcel it is.
What happens when ingredients arrive at a factory?
At goods-in, a worker checks the delivery against the order and scans the labels, or types the lot codes into the stock system by hand. The system now knows that this sack of almonds, from this supplier and this batch, sits on this rack. When the sack goes into production, the batch is booked against the finished product's own lot code.
The documents matter as much as the labels. A specification describes what the product should be; a certificate of analysis shows test results for a specific batch; an organic certificate proves the supplier is certified. If these sit in separate email attachments, finding them during an audit or recall takes hours.
How do online buying platforms handle the paperwork?
B2B platforms bring the order and its documents together. DeliNatural, a B2B platform that sells food ingredients such as nuts, cocoa, dried fruits, powders and dairy ingredients, states that specifications, certificates of analysis and organic certificates come with the offer, and that delivery documents for goods receipt follow with the order. Its how it works page describes order status and documents being kept in one place for purchasing, quality and logistics.
It also approves suppliers before they can sell through it, checking company data, certificates such as IFS Food or EU Organic and product documentation, as its page for suppliers explains. For the buyer, that means one seller and one set of records per order instead of paperwork from several companies.
How does traceability speed up a recall?
Imagine a supplier reports a problem with one lot of hazelnuts. A business with good records searches its stock system for that lot, sees which finished products used it and which customers received them, and can act within the hour. A business without records has to recall everything made in that period, or guess.
Good traceability does not need expensive kit. A consistent habit of recording lot codes at goods-in and in production, and keeping documents attached to each delivery, gets most of the benefit. Scanners and software simply make the habit faster and less error-prone.
Frequently asked questions
What does one step back, one step forward mean?
+
It is the basic traceability rule in EU and UK food law. Each business must know who supplied its food and ingredients and which businesses it supplied, without having to track the whole chain itself.
Does a supermarket barcode show the batch number?
+
Usually not. The standard retail barcode holds a product number only. Batch and date information is printed separately on the pack, or encoded in larger barcodes and 2D codes used on cases and pallets.
What is the difference between a lot number and a best-before date?
+
A best-before date tells you how long the food keeps its quality. A lot number identifies the production run it came from. Several lots can share the same date, so the lot number is what makes a recall precise.
What is a certificate of analysis?
+
It is a document showing test results for a specific batch, such as moisture or microbiology. It proves the batch met its specification, and it is filed with the delivery records.
Which documents come with a DeliNatural order?
+
DeliNatural states that specifications and certificates, such as certificates of analysis and organic certificates, come with the offer, and that the order includes a confirmation and delivery documents for your goods receipt.
Traceability is a chain of small, boring records that become very valuable on a bad day. Print the lot code, scan or note it at every step, and keep the documents with the delivery. If you buy ingredients online, platforms such as DeliNatural keep the certificates and delivery papers with each order, which makes that last step easier.
How we research: Guides are written from established sources and checked for accuracy. They are general information, not professional advice.
Written by
Plugpixels Editorial Team
Technology
Our writers have spent years taking devices apart, on the bench and on paper, and explain them in plain language.


