GS1 QR codes for fresh produce and packaged salads: FSMA 204, PTI labels and lot recalls
FSMA 204 makes produce packers keep a traceability lot code for every lot of leafy greens, tomatoes, peppers, melons, herbs and cucumbers, and hand FDA the records within 24 hours. This guide shows the rules for lots and case labels, and how to put the same lot in a GS1 QR code on every bag and clamshell so a recall reaches only the lot that needs it.
DLCode · Updated · 9 min read
Which produce FSMA 204 covers
FSMA 204 is FDA's Food Traceability Rule, codified at 21 CFR part 1, subpart S. It applies to anyone who manufactures, processes, packs or holds a food on FDA's Food Traceability List (FTL). Fresh produce makes up a large part of that list.
| FTL entry | What FDA includes |
|---|---|
| Leafy greens (fresh) | All types of fresh leafy greens. Whole head cabbages such as green, red and savoy are not included. |
| Leafy greens (fresh-cut) | All types of fresh-cut leafy greens, including single and mixed greens |
| Herbs (fresh) | All types of fresh herbs, such as parsley, cilantro and basil |
| Tomatoes (fresh) | All varieties of fresh tomatoes |
| Peppers (fresh) | All varieties of fresh peppers |
| Cucumbers (fresh) | All varieties of fresh cucumbers |
| Melons (fresh) | All types of fresh melons, such as cantaloupe, honeydew, muskmelon and watermelon |
| Sprouts (fresh) | All varieties of fresh sprouts, including single and mixed sprouts |
| Tropical tree fruits (fresh) | All types of fresh tropical tree fruit, such as mango, papaya and lychee |
| Fruits (fresh-cut) | All types of fresh-cut fruits |
| Vegetables other than leafy greens (fresh-cut) | All types of fresh-cut vegetables other than leafy greens |
A bagged salad and a tray of cut melon both fall under the rule. Produce listed in 21 CFR 112.2(a)(1), such as collards and dill, is exempt. For each entry, "fresh" does not include previously frozen forms.
The traceability lot code for packers and fresh-cut plants
Under 21 CFR 1.1320, you must assign a traceability lot code when you initially pack a raw agricultural commodity or when you transform a food. Cutting and mixing greens into a bagged salad is a transformation. You must not assign a new code when you only ship.
When you initially pack produce on the list, 21 CFR 1.1330 requires records linked to each traceability lot. They include:
- The commodity and variety, and the quantity and unit of measure received
- The farm location and the name of the field or growing area
- The harvester's business name and phone number, and the harvest date
- Where and when the food was cooled, if it was
- The traceability lot code you assigned, with the product description and packed quantity
- Where and when you packed it, and the reference document type and number
When you transform a listed food, 21 CFR 1.1350 requires records of each incoming lot code and the quantity you used from each lot. You also record the new lot code with the product description and quantity, plus where and when you finished the transformation.
Under 21 CFR 1.1455, you must give FDA these records within 24 hours of a request. In an outbreak or a recall, FDA can ask for them as an electronic sortable spreadsheet within 24 hours. Without lot-level records, a recall can reach every lot you packed.
The PTI case label
The Produce Traceability Initiative (PTI) is an industry effort sponsored by the Canadian Produce Marketing Association, GS1 Canada, GS1 US and the International Fresh Produce Association. Its Harmonized Case Label, version 2.0 from November 2024, is the common case label for U.S. and Canadian produce supply chains.
The label carries:
- A GS1-128 barcode with the GTIN, a date (AI 13 pack date or AI 15 best before date) and the lot number
- The item name or variety and the size or pack
- Where it was grown, by state or province in the U.S. and Canada, or by region for romaine
- A human-readable harvest, pack or best-by date
- A voice pick code that identifies the case by its GTIN, lot and date
- A PLU number for cases of bulk items, or a UPC barcode for cases of prepacks
- The responsible party, and the grade where required
For mixed cases that contain romaine, PTI says to mark "multiple/rom:" with the countries of origin. If an advisory is issued, the case is opened to find the growing regions printed on each consumer unit.
PTI uses the GTIN-14 for the case. Your consumer packs, such as a bagged salad or a clamshell, carry their own GTIN in the UPC. If you do not yet have GTINs from GS1, see How to get a GTIN.
Where a QR code fits in FSMA 204
FDA's FAQ on the rule says the traceability lot code can reach the next recipient in several ways. One of them is a QR code on the food's packaging (FAQ TTLC.3).
FDA's FAQ also gives a web address in a QR code and a GS1 Digital Link as examples of a traceability lot code source reference (FAQ TTLC.2). FDA notes that EPCIS, a GS1 data standard, is used in FDA's Product Tracing System (FAQ TPTS.3).
Your case label already carries the lot for the warehouse. A GS1 Digital Link QR code on the bag or clamshell carries the same lot to the store shelf and into the shopper's kitchen.
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, up to 20 characters. 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/R2611A?17=261127Use the same lot text that is in the GS1-128 barcode on your PTI case label. Your records and every bag in the case then point to one lot.
The same code holds your GTIN, so a checkout scanner that reads 2D barcodes can ring it up. On a phone, it opens the page you choose:
- One page for the product, such as the salad's product page or a sourcing 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 scan of lot R2611A opens the page for R2611A, such as its farm and harvest details, with no lot number to type.
- A hosted DLCode page that shows the lot and best-by date from the code, when you do not set a link.
Use your own domain, such as qr.yourbrand.com, in the code. The address printed on the bag belongs to your brand, and you can change where it sends scans at any time without a reprint. 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 also reports the recall status, and every change is written to the product's recall history.
Each scan gets a 307 redirect with no-store caching, so a phone does not keep the old page. A recall applies from the next scan.
Pair the scan notice with the notices your recall plan already sends to FDA and your buyers. FDA's Recalls, Market Withdrawals and Safety Alerts page lists recalls gathered from company press releases. For the full steps, see How to tell customers which batch is recalled.
Keep your lot records in one place
On paid packs and the trial, each DLCode lot record stores the expiry, pack date, quantity and unit. It also stores the source name and address, the location, the reference document type and number, and a note.
Import up to 5,000 lots from a CSV. Export them as a CSV with FSMA 204 key data element column names, so the lot on the bag and the lot in your records match when FDA asks.
For the full rule, see Lot-level traceability and recalls under FSMA 204.
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 bags and clamshell labels: 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=R2611A&expiry=2026-11-27 with your API key. PDF and EPS are also available.
- GS1 DataMatrix: DLCode also makes a DataMatrix file that carries the GTIN, expiry and lot.
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 and on the case.
The QR module is 0.495 mm with a 4-module quiet zone. Label files place your UPC or EAN barcode 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 move from 1D UPC barcodes to 2D barcodes such as QR codes, with point-of-sale systems that read them. The bag and clamshell artwork you approve this year is the artwork those registers will scan. The QR code you add for lot recalls can be the same GS1 Digital Link code that those registers read. See Sunrise 2027 for sizes and placement.
What it costs
Each GTIN counts as one product in DLCode. 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
- Check each product and each salad ingredient against the Food Traceability List, including whether it is fresh or fresh-cut.
- Confirm each consumer pack has its own GTIN from GS1.
- Decide where you assign traceability lot codes, at initial packing or at transformation.
- Make the lot on each bag match the lot in the GS1-128 barcode on your PTI case label.
- Check that you can produce a sortable spreadsheet for any lot within 24 hours.
- Connect a domain you control, such as qr.yourbrand.com, before you print.
- Add the lot QR code to your next bag or 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 and QR codes on food labels: what is allowed.
Pull one lot and keep the rest of your produce selling
Put the lot from your case label in every bag's code, and have a recall ready before an outbreak investigation reaches your brand.
- Each lot gets its own QR code with the same lot as your PTI case label.
- A recall shows your notice only on the affected lots, and every other bag opens your normal page.
- Lot records export 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 bags and clamshell labels.
- 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 packing 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
- Frequently Asked Questions on FSMA Food Traceability Rule · U.S. Food and Drug Administration
- 21 CFR Part 1, Subpart S: Additional Traceability Records for Certain Foods (1.1320, 1.1330, 1.1350, 1.1455) · eCFR
- About the Produce Traceability Initiative · Produce Traceability Initiative
- PTI Resources and Tools · Produce Traceability Initiative
- Produce Traceability Initiative · Produce Traceability Initiative
- PTI Harmonized Traceability Case Label and Data Elements, v. 2.0 (November 2024) · Produce Traceability Initiative
- Recalls, Market Withdrawals, & Safety Alerts · U.S. Food and Drug Administration
- What is GS1 Sunrise 2027? · GS1 US
- GS1 Digital Link URI syntax · GS1
- GS1 Application Identifiers (AI 01, 10, 13, 15, 17) · 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.