GS1 QR codes for nut and dried fruit brands: lot codes and one-lot recalls
Nut butters are on FDA's Food Traceability List, and a single positive test for Salmonella or aflatoxin can turn into a recall of every jar and bag you ship. This guide covers the label and lot rules for nut and dried fruit brands, and shows how a GS1 QR code with the lot keeps a recall down to the one lot that needs it.
DLCode · Updated · 8 min read
Why one bad lot can pull your whole line
In May 2022, FDA and CDC investigated a Salmonella Senftenberg outbreak linked to certain Jif peanut butter. FDA counted 21 illnesses in 17 states, with 4 people hospitalized.
FDA told shoppers to find the lot code on the back of the jar, under the Best If Used By date, and to check for lot code numbers 1274425 through 2140425. That one number let each shopper check their own jar.
The recall did not stop with one brand. FDA posted a separate list of recalls by companies that used the recalled peanut butter as an ingredient or repackaged it. If you buy nut butter or nuts from a supplier, their recall becomes your recall, and your lot records decide how much of your product goes with it.
FSMA 204: nut butters are on the Food Traceability List
FDA's Food Traceability Rule, often called FSMA 204, adds traceability records for foods on the Food Traceability List. The list includes nut butters.
FDA's entry includes all types of tree nut and peanut butters, in every form: shelf stable, refrigerated, frozen and previously frozen. FDA's examples include almond, cashew, chestnut, coconut, hazelnut, peanut, pistachio and walnut butters. Soy and seed butters are not included.
When you make a nut butter, you assign a traceability lot code and keep key data elements for each critical tracking event, such as receiving and shipping. When FDA asks, you must hand over those records within 24 hours. During an outbreak or recall, FDA can ask for them as an electronic sortable spreadsheet.
FDA proposed moving the compliance date to July 20, 2028, and Congress directed FDA not to enforce the rule before that date. Lot records and label artwork take months to line up, so brands that print the lot in a code now are ready long before the date.
For the full list of records, see Lot-level traceability and recalls under FSMA 204.
Aflatoxin and Salmonella: the tests behind most nut recalls
Aflatoxins are toxins from molds that can grow on nuts. FDA's action level for total aflatoxins is 20 ppb in foods in general, and FDA has a 20 ppb action level of its own for each of the nut categories below.
| Commodity | Total aflatoxins action level | FDA reference |
|---|---|---|
| Peanuts and peanut products | 20 ppb | CPG 570.375 |
| Brazil nuts | 20 ppb | CPG 570.200 |
| Pistachio nuts | 20 ppb | CPG 570.500 |
| Foods in general | 20 ppb | CPG 555.400 |
Under CPG 555.400, FDA may treat human food with more than 20 ppb of total aflatoxins as adulterated. A result over that level on one lot is a lot problem. If your records cannot show which jars and bags came from that lot, it becomes a product problem.
Salmonella is the other risk. If your food has a hazard that needs a preventive control, 21 CFR 117.139 requires a written recall plan. The plan must cover how you notify direct consignees and, when needed, the public. It must also cover how you check that the recall worked and what happens to the recalled food.
Allergen and sulfite labeling
Peanuts and tree nuts are two of the nine major food allergens in the US. FDA requires the food source of each major allergen on the label, either in parentheses after the ingredient or in a "Contains" statement next to the ingredient list. For tree nuts, the label must name the specific nut, such as almonds or walnuts.
Under 21 CFR 117.135, food allergen controls must cover protection from allergen cross-contact and labeling of the finished food. Brands that run peanuts and tree nuts on shared lines, or pack trail mixes, live with both risks every day.
Dried fruit brings its own label rule. Under 21 CFR 101.100(a)(4), a sulfiting agent at 10 ppm or more in the finished food counts as a detectable amount, so it must be declared on the label. A missing allergen or sulfite declaration is a labeling problem tied to the packaging run, which is one more reason to know exactly which lots carry which label.
A QR code on the bag can open a page with the full allergen and sulfite details for that product, and you can update the page any time with no reprint.
Lot codes the rules already expect
Food businesses that release food must keep one-up records under 21 CFR 1.345. For businesses that make, process or pack food, those records include the lot or code number, along with the recipient, a specific description of the food, the release date and the quantity.
Paragraph (b) of the same section requires information reasonably available to you that identifies the specific source of each ingredient used in every lot of finished product. For a trail mix with four nut suppliers and a dried fruit supplier, that link from ingredient lot to finished lot is what lets you answer a supplier recall in hours.
You likely already print a lot next to the best-by date. The step most brands miss is putting that same lot where a phone and your records can both read it.
How a GS1 Digital Link QR code carries the lot
A GS1 Digital Link QR code is a web address that contains your GTIN. GS1 Application Identifier 10 is the batch or lot number, and Application Identifier 17 is the expiration date. DLCode puts the lot in the path after /10/ and the expiry in the query after ?17= in YYMMDD form.
https://qr.yourbrand.com/01/00850012345671/10/PB2611A?17=271130The same code holds your GTIN, so a checkout scanner that reads 2D barcodes can ring it up. A shopper who scans it with a phone opens the page you choose for that product or that lot.
- One page for the product. Set the product's main link to your ingredient and allergen page. This works on every plan, free included.
- One page per lot. On a paid pack or the trial, add a link limited to each lot. A lot link can open that lot's certificate of analysis or aflatoxin results on your site, and a scan of lot PB2611A opens the PB2611A page with no lot number to type.
Use your own domain, such as qr.yourbrand.com, so every printed code carries your brand. See Use your own domain for GS1 QR codes.
Recall one lot from the scan
In DLCode, you can mark a whole product as recalled. You can also mark only listed lots, or every lot that expires on or before a date. Starting a recall needs a paid pack or the trial. Ending a recall works on every plan.
Scans of an affected lot open the hosted page with your recall notice. Scans of other lots keep opening your normal link. The GS1 linkset for the product reports the recall status, and every change is written to the product's recall history.
If a supplier recalls a nut lot, mark every finished lot that used it. Shoppers holding those bags see the notice on their next scan, and shoppers holding clean lots keep seeing your normal page.
For the full steps, see How to tell customers which batch is recalled.
Lot records ready for an FDA request
On paid packs and the trial, each lot in DLCode stores expiry, pack date, quantity, unit, source name and address, location, reference document type and number, and a note.
Import lots from a CSV of up to 5,000 rows. Export them as a CSV with FSMA 204 key data element column names, so a nut butter brand can start the sortable spreadsheet FDA asks for from the same records that drive its codes.
Printing a code for each lot
Each lot has its own QR code because the lot is part of the address. Lot files need a paid pack or the trial.
- Pre-printed labels and pouch film: download the lot's QR code as SVG, PDF, EPS or 600 dpi PNG and send it to your printer.
- Label software such as BarTender or NiceLabel: build the address in the template with the pattern https://{your domain}/01/{GTIN-14}/10/{lot}?17={YYMMDD}.
- Automated files: request GET /api/v1/products/{gtin}/qr.svg?lot=PB2611A&expiry=2027-11-30 with your API key. PDF and EPS are also available.
Lot codes can be up to 20 characters from the GS1 character set. Use the same lot text that you print next to the best-by date.
The QR module is 0.495 mm with a 4-module quiet zone. Label files place the UPC-A, EAN-13 or EAN-8 4 mm to the left of the QR code. See Print specs for a QR code next to your UPC or EAN.
Sunrise 2027
GS1 US describes Sunrise 2027 as the retail industry's goal for point-of-sale systems to read 2D barcodes such as QR codes by the end of 2027. Bags and jars you print today can still be on shelves then. The QR code you add for lots and recalls can be the same GS1 Digital Link code those registers read. See Sunrise 2027 for sizes and placement.
What it costs
Each GTIN counts as one product in DLCode. A brand with almonds and a nut butter in two sizes each has four products. Lots do not count toward the product limit.
| Plan | Price | Products | Lot links and lot recalls |
|---|---|---|---|
| Free | $0 | 10 | No |
| 25 products | $249 one time | 25 | Yes |
| 100 products | $499 one time | 100 | Yes |
| 1,000 products | $1,490 one time | 1,000 | Yes |
Each pack covers hosting and unlimited scans through December 31, 2030, with no subscription. After that, hosting is $29 per year. The 30-day trial includes the paid features for up to 25 products, with no card. See pricing.
What to do this month
- List every product that is a nut butter or contains one, and mark which ones are on the Food Traceability List.
- Confirm each product has its own GTIN from GS1.
- Make sure each printed lot maps to one production run, and to the supplier lots of every nut and dried fruit that went into it.
- Check each label's allergen statement names every tree nut, and that sulfited dried fruit declares the sulfite.
- Build an ingredient and allergen page for each product, and decide whether scans open one page per product or one page per lot.
- Connect a domain you control, such as qr.yourbrand.com, before you print.
- Add the QR code with the lot to your next label run, then scan a proof with an iPhone and an Android phone.
- Write your recall notice text now, and test a lot recall before you need one.
For other food categories, see DLCode for food brands, GS1 QR codes for snack and bar brands and QR codes on food labels: what is allowed.
Keep the next recall to one lot
Set up one product, put the lot in its code, and have a recall ready before a test result or a supplier notice forces one.
- Each lot gets its own QR code that opens the right page for that run.
- Recall listed lots, or every lot that expires on or before a date, and clean lots keep scanning as normal.
- Export lot records with FSMA 204 key data element column names.
- The same code carries your GTIN for checkout scanners that read 2D barcodes.
- Download lot files as SVG, PDF, EPS or 600 dpi PNG for your jars and bags.
- Use your own domain so every code carries your brand.
Start free for 10 products, with no card. When you need more, pay once from $249 for 25 products. Hosting and unlimited scans are included through December 31, 2030, with no subscription. Lots do not count toward the product limit. New accounts get lot links and recalls free for 30 days on up to 25 products.
Make the code for your next label run today. Start free or See pricing.
Sources
- Food Traceability List · U.S. Food and Drug Administration
- FSMA Final Rule on Requirements for Additional Traceability Records for Certain Foods · U.S. Food and Drug Administration
- Outbreak Investigation of Salmonella: Peanut Butter (May 2022) · U.S. Food and Drug Administration
- Chemical Contaminants Transparency Tool: contaminant levels · U.S. Food and Drug Administration
- Compliance Policy Guide Sec. 555.400: Aflatoxins in Human Food · U.S. Food and Drug Administration
- Food Allergies · U.S. Food and Drug Administration
- 21 CFR 117.135: Preventive controls · Legal Information Institute, Cornell Law School
- 21 CFR 117.139: Recall plan · Legal Information Institute, Cornell Law School
- 21 CFR 101.100: Food; exemptions from labeling · Legal Information Institute, Cornell Law School
- 21 CFR 1.345: What information must nontransporters establish and maintain to identify the nontransporter and transporter immediate subsequent recipients of food? · Legal Information Institute, Cornell Law School
- What is GS1 Sunrise 2027? · GS1 US
- GS1 Digital Link URI syntax · GS1
- GS1 Application Identifier (10): Batch or lot number · GS1
- GS1 Application Identifier (17): Expiration date · GS1
Get your QR code
Get a print-ready file with your barcode and a GS1 Digital Link QR code side by side. 10 products free, and pack features free for 30 days. No card. Then pay once from $249.