Lot-level traceability and recalls under FSMA 204
Under FSMA 204, when FDA asks which lot went where, you have 24 hours to answer. Without lot-level codes, a recall can hit every batch on the shelf. This guide shows what FSMA 204 requires and how a lot-aware QR code narrows a recall to one lot.
DLCode · Updated · 9 min read
What the Food Traceability Rule covers
The Food Traceability Rule is FDA's final rule on Requirements for Additional Traceability Records for Certain Foods. It implements section 204 of the FDA Food Safety Modernization Act, so people often call it FSMA 204. It is codified at 21 CFR part 1, subpart S.
Under 21 CFR 1.1300, the rule applies to persons who manufacture, process, pack, or hold foods on the Food Traceability List (FTL). FDA says it covers domestic firms and foreign firms that produce food for U.S. consumption. The rule also has exemptions, such as for some small farms and for shell egg producers with fewer than 3,000 laying hens (21 CFR 1.1305).
The FTL is short and specific. It includes shell eggs, nut butters, several cheeses other than hard cheeses, fresh cucumbers, herbs, leafy greens, melons, peppers, sprouts, tomatoes, and tropical tree fruits, fresh-cut fruits and vegetables, finfish, smoked finfish, crustaceans, molluscan shellfish, and refrigerated ready-to-eat deli salads. Each entry has its own inclusions and exclusions. Hard cheeses such as cheddar are not listed, and herbs such as dill are exempt under 21 CFR 1.1305(e).
The rule also applies to a food that contains a listed food as an ingredient, but only if that ingredient stays in the same form as it appears on the list, for example fresh. Check each ingredient against the form named in its FTL entry.
Critical tracking events and key data elements
The rule uses two terms. Critical tracking events (CTEs) are the points in the supply chain where you must keep records. Key data elements (KDEs) are the specific facts you record at each event.
The CTEs are harvesting, cooling before initial packing, initial packing of a raw agricultural commodity, first land-based receiving of food from a fishing vessel, shipping, receiving, and transformation. Which ones apply to you depends on what you do with the food. A firm that makes fresh-cut produce from whole produce records receiving, transformation, and shipping. A distributor that only holds and moves product records receiving and shipping.
The shipping and receiving KDEs show how much of the rule depends on the traceability lot code.
| Shipping (21 CFR 1.1340) | Receiving (21 CFR 1.1345) |
|---|---|
| Traceability lot code | Traceability lot code |
| Quantity and unit of measure | Quantity and unit of measure |
| Product description | Product description |
| Location of the immediate subsequent recipient (not the transporter) | Location of the immediate previous source (not the transporter) |
| Location the food was shipped from | Location where the food was received |
| Date shipped | Date received |
| Location description for the traceability lot code source, or the source reference | Location description for the traceability lot code source, or the source reference |
| Reference document type and number | Reference document type and number |
When you ship, you must also send the first seven of these KDEs to the immediate subsequent recipient (21 CFR 1.1340(b)). That is how the lot code moves forward through the chain.
Covered firms must also keep a written traceability plan (21 CFR 1.1315). It describes how you keep records, how you identify FTL foods, how you assign traceability lot codes, and who FDA should contact. Firms that grow or raise an FTL food other than eggs also need a farm map.
The traceability lot code
The rule defines a traceability lot code as a descriptor, often alphanumeric, used to uniquely identify a traceability lot within the records of the traceability lot code source. The traceability lot code source is the place where the food was assigned that code.
You assign a traceability lot code at three events: initial packing of a raw agricultural commodity, first land-based receiving of food from a fishing vessel, and transformation (21 CFR 1.1320(a)). If you receive an FTL food from a person the rule does not apply to, you assign a code if one does not exist, unless you are a retail food establishment or restaurant (21 CFR 1.1345(b)).
Section 1.1320(b) says you must not establish a new traceability lot code when you conduct other activities, such as shipping. A distributor passes the code along and does not replace it.
You must make your records available to FDA within 24 hours of a request, or within a reasonable time FDA agrees to. To address an outbreak, a recall, or another public health threat, FDA can ask for the information in an electronic sortable spreadsheet. Smaller farms, retail food establishments, restaurants, and other firms below set sales thresholds may use another form (21 CFR 1.1455(c)). You keep records for 2 years from the date you created or obtained them (21 CFR 1.1455(d)).
FDA's FAQ leaves the tools up to you, so you can pick ones that make a 24-hour request easy.
- Records can be paper or electronic (FAQ TG.1). Paper is slow to turn into the sortable spreadsheet FDA can ask for during an outbreak.
- Many firms use GS1 standards for their traceability records, FDA notes (FAQ TPTS.3).
- A QR code on the packaging is one of the ways FDA lists to pass a traceability lot code along (FAQ TTLC.3).
How a traceability lot code relates to the lot on pack
Most food packs already carry a lot or batch number for production control and recalls. The rule does not say that number must be your traceability lot code, and it does not say it cannot be. It requires that the code uniquely identifies a traceability lot in the records of the traceability lot code source, and that the same code appears in the records for each CTE.
If your printed lot already identifies one initially packed or transformed lot, you can use it as the traceability lot code. Your records, your shipping documents, and the pack then all refer to the same value. If your printed lot is broader, such as a production day that spans several transformation runs, your records need a finer code, and the pack lot no longer maps one-to-one to it.
FDA's FAQ TTLC.5 says you may keep your own internal lot code. When you ship, you must send the traceability lot code assigned by the traceability lot code source, and you can send the internal code too. FAQ TTLC.3 lists ways to pass the code along, such as a bill of lading, an advance shipment notice, a separate email, or a QR code on the packaging or a related document.
A lot code on its own may not be unique across companies. Pairing it with a GTIN, the GS1 product identifier, gives a value that is specific to one trade item. FAQ TTLC.2 also gives a web address, a web address in a QR code, and a GS1 Digital Link as examples of a traceability lot code source reference.
Encoding the lot in a GS1 Digital Link QR code
GS1 Application Identifier (AI) 10 is batch or lot number. Its format is up to 20 characters from GS1's alphanumeric character set. AI 01 is the GTIN, always 14 digits.
The GS1 Digital Link URI Syntax standard (release 1.7.0, ratified August 2026) treats AI 10 as a key qualifier of the GTIN. Qualifiers go in the URI path after the GTIN in a fixed order: consumer product variant (AI 22), then batch or lot (AI 10), then serial number (AI 21). GS1's example for a GTIN with a lot is https://id.gs1.org/01/09520123456788/10/ABC123.
A brand can use its own domain or a resolver's domain in place of id.gs1.org. Characters with special meaning in a URI, such as / and ?, must be percent-encoded. A lot of 24/03A becomes 24%2F03A in the path.
Because the lot is in the URL, a resolver can respond to one lot differently from another. A scan of lot A can show the normal product page, and a scan of lot B can show a recall notice. The pack itself does not change.
This has a production cost. A lot-specific QR code changes every time the lot changes, so you need variable printing on the line, such as inkjet or thermal transfer, or labels printed per lot. A QR code with only the GTIN can be part of the fixed artwork, but it cannot tell lots apart.
What a QR recall notice can and cannot replace
A lot-aware QR code reaches people who scan a pack they already hold. It does not reach people who never scan, and it does not reach regulators, distributors, or retailers. Use it as one channel in your recall plan, alongside the notices the regulations call for.
For FDA-regulated food, 21 CFR 7.46 asks a firm that starts a recall to notify the appropriate FDA district office immediately. FDA then asks for information that includes the product identity, the reason, an evaluation of the risk, and the proposed recall strategy. Registered food facilities must also report through FDA's Reportable Food Registry when there is a reasonable probability that a food will cause serious adverse health consequences or death.
For meat and poultry products under USDA, 9 CFR 418.2 requires an official establishment to notify its FSIS District Office within 24 hours of learning that adulterated or misbranded product has entered commerce. Establishments must also keep written recall procedures under 9 CFR 418.3.
Under 21 CFR 7.42, a recall strategy sets the depth of the recall (wholesale, retail, or consumer level), whether a public warning is needed, and the level of effectiveness checks. Section 7.49 says recall communications to direct accounts should identify the product, including lot numbers, explain the reason and the hazard, give instructions, and provide a ready means of reporting back.
| Recall task | Can a lot-aware QR notice do it? |
|---|---|
| Notify FDA or FSIS | No |
| Report to the Reportable Food Registry | No |
| Notify distributors and retailers (direct accounts) | No |
| Issue a public warning or press release | No |
| Run effectiveness checks | No |
| Tell a consumer who scans the pack that their lot is affected | Yes |
| Tell a consumer who scans an unaffected lot that it is not recalled | Yes |
| Give scanners the same instructions as your official notice | Yes |
The QR notice shows the status of the exact lot in hand. A shopper or store worker who scans a pack does not need to compare lot codes against a list by eye. Keep its wording identical to your official notice, and update it when the official notice changes.
A practical checklist
- Check each product and ingredient against the Food Traceability List, including the form of the food.
- List the CTEs your firm performs and the KDEs each one needs.
- Decide where you assign traceability lot codes and record it in your traceability plan.
- Compare your printed pack lot with your traceability lot code and decide whether they are the same value.
- Confirm you can produce an electronic sortable spreadsheet for a given lot within 24 hours.
- If you add a lot-level QR code, confirm your line can print variable data and that each lot value is 20 characters or fewer.
- Add the QR notice to your written recall procedure, next to FDA or FSIS notification and notices to direct accounts.
Get lot-level recalls ready this week with DLCode
DLCode puts the lot in every GS1 QR code, so one scan tells a shopper whether the pack in hand is safe. When a lot goes bad, you mark it recalled and the next scan shows your notice.
- Codes carry the lot in GS1 format, https://dlcode.org/01/{GTIN-14}/10/{lot}, or the same path on your own domain.
- Recall a list of lots, or every lot that expires on or before a date. Every other lot keeps its normal page.
- Redirects use HTTP 307 with no-store, so phones do not cache the old page. A change applies from the next scan.
- Lot records hold your key data elements, such as quantity, source, location and reference document. Import up to 5,000 lots from a CSV and export them with FSMA 204 column names.
- DLCode logs every recall change in a recall history.
- Each product comes as one print-ready file with the barcode and the QR code at 1:1 scale.
Start free for 10 products with no card. Then pay once from $249 for 25 products, with hosting and unlimited scans through December 31, 2030. No subscription. Lot codes and recalls are free to try for 30 days.
Put the lot in your codes before your next print run. Start free or See pricing.
Sources
- FSMA Final Rule on Requirements for Additional Traceability Records for Certain Foods · U.S. Food and Drug Administration
- Food Traceability List · 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 · eCFR
- 21 CFR Part 7, Subpart C: Recalls (Including Product Corrections) · eCFR
- 9 CFR Part 418: Recalls · eCFR
- Requirements for Additional Traceability Records for Certain Foods: Compliance Date Extension (proposed rule, August 7, 2025) · Federal Register
- Reportable Food Registry for Industry · U.S. Food and Drug Administration
- GS1 Application Identifiers dataset (AI 01, AI 10) · GS1
- GS1 Digital Link Standard: URI Syntax · 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.