GS1 QR codes for chocolate and candy brands: lot recalls and cocoa origin
FDA names candy as one of the food types most often involved in allergen recalls. Without the lot in your QR code, a recall notice reaches every bar you sold. This guide puts the lot in a GS1 Digital Link QR code, so you can recall one batch from the scan and run seasonal SKUs without reprints.
DLCode · Updated · 8 min read
Allergens are the recall risk to plan for
FDA lists nine major food allergens: milk, eggs, fish, crustacean shellfish, tree nuts, peanuts, wheat, soybeans and sesame. Sesame became the ninth on January 1, 2023, under the FASTER Act.
Under FALCPA, your label must name the food source of each major allergen. It can appear in the ingredient list, such as "whey (milk)", or in a Contains statement. For tree nuts, the label also names the type of nut, such as almonds or walnuts.
FDA says that from September 2009 to September 2014, about one third of the foods reported to its Reportable Food Registry as serious health risks involved undeclared allergens. Milk is the most common cause of recalls for undeclared allergens. Candy is one of the five food types most often involved in allergen recalls.
Within candy, FDA has received many reports of undeclared milk in dark chocolate. It calls dark chocolate a higher-risk product for people who are allergic to milk.
If your facility is covered by FDA's preventive controls rule and allergens are a hazard that needs a preventive control, 21 CFR 117.135(c)(2) says what your allergen controls must include. They must protect food from allergen cross-contact, including during storage, handling and use. They must also cover labeling, so the finished food is not misbranded.
FDA says advisory statements such as "may contain" should not be used as a substitute for current good manufacturing practices.
The allergen declaration stays on the printed label. The QR code adds a way to reach the shoppers who hold one specific batch.
What the rules say about lot codes
For food with a hazard that requires a preventive control, 21 CFR 117.139 requires a written recall plan. The plan assigns who notifies your direct customers, who warns the public when needed, who checks that the recall worked, and who handles the recalled food.
A recall plan works only when you can name the affected product. The lot code on your wrapper is how you and your retailers find it, and how shoppers check the bar they hold.
If you sell into the EU, Directive 2011/91/EU requires an indication of the lot on prepackaged foods. The producer, manufacturer or packager sets the lot, or the first seller established in the EU. The code starts with the letter L unless it is clearly distinct from other label text.
The EU rule has one exception. If the label shows a best-before or use-by date with at least the day and month, uncoded and in that order, the lot can be left off.
FDA's FSMA 204 traceability rule applies to foods on the Food Traceability List. Chocolate, cocoa and candy are not on that list. The rule also covers foods that contain a listed food as an ingredient, when that ingredient stays in the same form as on the list. Nut butters are on the list, so check it if your candy has a peanut or other nut butter filling. See Lot-level traceability and recalls under FSMA 204.
How the lot and best-by date go into the QR code
A GS1 Digital Link QR code is a web address that contains your GTIN. GS1 Application Identifier 10 is the batch or lot number. Application Identifier 17 is the expiration date.
DLCode puts the lot in the path after /10/ and the date in the query after ?17= in YYMMDD form.
https://qr.yourbrand.com/01/00850012345695/10/L2611A?17=270531A lot code can be up to 20 characters from the GS1 character set. Use the same lot text that you print on the bar or box today. Lot codes in the QR code need a paid pack or the 30-day trial.
The hosted product page shows the lot and the best-by date. The date comes from the code, or from the lot record if you saved one.
Checkout scanners read the GTIN from the code without contacting DLCode. GS1 US describes Sunrise 2027 as the move from UPC barcodes to 2D barcodes, such as QR codes, and says it helps retailers make sure their point-of-sale systems can read them. You keep your UPC and add the QR code next to it. See Sunrise 2027.
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 30-day 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 open your normal link. The GS1 linkset for the product also reports the recall status, and every change goes into the product's recall history.
An expiry-date recall needs the date in the code or a saved expiry on the lot record.
Your recall plan still covers FDA and your retailers. The scan notice reaches the shoppers who scan the bar they already bought. For the full steps, see How to tell customers which batch is recalled.
Cocoa origin and the EU deforestation regulation
The EU deforestation regulation (EUDR), Regulation (EU) 2023/1115, covers cocoa and certain products made from it. Fairtrade's EUDR product guide lists chocolate and other food preparations containing cocoa, HS heading 1806, as covered where Annex I lists them. It also notes that sugar confectionery without cocoa, HS heading 1704, is not listed in Annex I. Check the current Annex I for your exact product.
Covered products must be deforestation-free, which means they do not come from land deforested after December 31, 2020. They must also be produced legally in the country of production.
After the 2025 amendment, Regulation (EU) 2025/2650, the European Commission lists these application dates for cocoa products:
| Who | Applies from |
|---|---|
| Large and medium operators and traders | December 30, 2026 |
| Micro and small enterprises | June 30, 2027 |
The operator that first places the product on the EU market files the due diligence statement, with information such as the geolocation of the plot of harvest. Downstream operators and traders no longer file their own statements. They collect and keep the reference number of the first statement.
All operators keep records of their suppliers and of the businesses they supply for five years. Statements and declarations go to the EUDR Information System on TRACES.
If you sell chocolate into the EU through an importer, ask your importer and your cocoa or couverture supplier which reference numbers they need from you, and which ones they will give you.
The filing goes through TRACES. The QR code on your wrapper is where shoppers and buyers see where your cocoa comes from.
In DLCode, the digital product passport can hold country of origin, materials, certifications and up to 20 document links. The resolver links it as sustainabilityInfo. The passport is per product and needs a paid pack or the trial.
For origin that changes by batch, add a link limited to that lot that points to a page on your site. Each lot record can also store a source name and address and a reference document type and number. See Digital product passports for small brands.
Prop 65: keep the warning on the label
California's Proposition 65 requires a clear and reasonable warning before a business exposes people to a listed chemical. In May 2026, a 60-day notice alleged that a hot chocolate mix sold on Amazon exposed buyers to lead and cadmium, both listed chemicals, with no clear and reasonable warning.
OEHHA guidance lists the safe harbor ways to give a consumer product warning: a sign, shelf tag or shelf sign, the label, or an electronic device that gives the warning before purchase. For internet sales, the warning goes on or links from the product display page, and also on or with the delivered product.
OEHHA lists a QR code on a label that links to the warning as an example of a warning that is not a safe harbor warning. Keep your Prop 65 warning on the label, shelf tag or product page.
OEHHA also states that businesses with fewer than 10 employees are exempt by law. Your contracts with retailers or marketplaces may still require warnings.
If you add a warning to new lots, the lot in the QR code tells you which batches went out with the new label. For California rules on QR codes in general, see GS1 QR codes in California.
Seasonal SKUs: GTINs and scans that follow the calendar
The GS1 GTIN Management Standard, Release 1.1, sets when a change needs a new GTIN.
| Change | New GTIN on the consumer unit? | New GTIN on the case? |
|---|---|---|
| A seasonal version that you expect buyers to order as its own product | Yes | Yes |
| Holiday graphics on an existing product for a limited time | No | Yes |
| A recipe change that adds a declared allergen, such as nuts | Yes | Yes |
The standard notes that local, national or regional regulations can require more GTIN changes, and those rules come first.
A seasonal item with its own GTIN is its own product in DLCode. A holiday wrap on your year-round bar keeps the same GTIN, so it keeps the same QR code.
On paid packs and the trial, a dated campaign sends scans to a different URL for a set period, in your time zone. Point your year-round bar to a Valentine's Day page for two weeks, and it goes back to the main link when the campaign ends.
When a seasonal item is sold out, change its link to your current lineup. Printed boxes still in pantries keep working with no reprint. Changes apply from the next scan.
Cost for a brand with seasonal lines
Each product with its own GTIN counts toward the product limit. Lots do not. A brand with 40 year-round items and 30 seasonal items needs 70 product codes.
| DLCode 100 pack | Subscription at $80 per month | |
|---|---|---|
| Price | $499 one time | $960 per year |
| Products | 100 | Depends on the tool |
| Cost through 2030 | $499 | $3,840 for 2027 to 2030 |
| After 2030 | $29 per year for hosting | $960 per year |
The 100 pack includes 5 custom domains, one of them a free registered domain, and 10 seats. It also includes lot links, lot recalls, dated campaigns and the digital product passport. The REST API is on every plan, free included.
The 30-day trial includes every paid feature except the free domain, for up to 25 products, with no card. See pricing for every pack.
What to do this month
- Confirm each item that buyers order separately, including each flavor and size, has a GTIN licensed to your company by GS1.
- List your seasonal items and decide which get their own GTIN under the GS1 rules above.
- Check that each label declares every major allergen, sesame included, and review any "may contain" statements against your cross-contact controls.
- Make sure your printer adds the same lot text to the QR code that it prints on the wrapper.
- Put the best-by date in the code with ?17=, or save it on the lot record, if you want to recall by date.
- Write your recall notice text now, and test a recall on one lot before you need it.
- If you sell into the EU, ask your importer and cocoa supplier what EUDR reference numbers they need before December 30, 2026.
- Keep your Prop 65 warning on the label or shelf tag, and on the product page for online sales. Do not rely on the QR code for it.
- Print a proof, scan it with an iPhone and an Android phone, and check the lot and best-by date on the page. See Print specs for a QR code next to your UPC or EAN.
- Use a domain you control so the codes keep working. See Use your own domain for GS1 QR codes.
For other food categories, see DLCode for food brands and QR codes on food labels: what is allowed.
Recall one batch and keep selling the rest
Set up one bar, put its lot in the code, and have a recall ready before your next holiday run ships.
- Each lot gets its own QR code, with the same lot text you print on the wrapper.
- Recall listed lots, or every lot with a best-by date on or before a date you choose.
- Send scans to a Valentine's Day or holiday page with a dated campaign, then back to your main link.
- Show cocoa origin, certifications and documents on the digital product passport.
- 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 codes, lot recalls, dated campaigns and the passport free for 30 days on up to 25 products.
Make the code for your next batch today. Start free or See pricing.
Sources
- 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
- Food Traceability List · U.S. Food and Drug Administration
- Directive 2011/91/EU on indications or marks identifying the lot to which a foodstuff belongs · legislation.gov.uk
- Regulation on deforestation-free products · European Commission
- Delay until December 2026 and other developments in the implementation of the EUDR Regulation · European Commission, Access2Markets
- EUDR product guide on coffee and cocoa scope · Fairtrade International
- Proposition 65 Compliance Guidance and Regulatory Updates for Businesses · California Office of Environmental Health Hazard Assessment
- 60-day notice 2026-02239: Lead and cadmium in hot chocolate mix · California Department of Justice
- GTIN Management Standard, Release 1.1 · GS1
- 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.