GS1 QR codes for coffee and tea brands: one code per lot, ready for Sunrise 2027
Without the lot in your QR code, a recall notice reaches every customer and every bag on the shelf looks suspect. This guide puts each roast or harvest lot in a GS1 Digital Link QR code that also scans at checkout, so each scan opens that lot's origin page, or its recall notice.
DLCode · Updated · 7 min read
What the rules say about lots on coffee and tea
Coffee and tea are packaged foods under FDA rules. Section 101.5 of 21 CFR requires the label to show the name and place of business of the manufacturer, packer or distributor. If someone else roasts or packs for you, the name must be qualified with a phrase such as "Manufactured for" or "Distributed by".
FDA's records rule in 21 CFR Part 1, Subpart J asks the companies it covers to keep one step back and one step forward. Sections 1.337 and 1.345 list the records. For persons who manufacture, process or pack food, they include the lot or code number of the food to the extent this information exists.
Section 1.345(b) also asks for information reasonably available to you to identify the specific source of each ingredient used to make every lot of finished product. For a roaster, that means each green coffee lot that went into a roast. For a tea packer, it means each harvest or blend component.
If your food has a hazard that requires a preventive control, 21 CFR 117.139 requires a written recall plan. The plan covers how you notify direct consignees, notify the public when needed, check that the recall worked, and dispose of the recalled food.
A lot number is how all of these records connect. A QR code that carries the same lot number lets a shopper's scan reach that exact roast or harvest.
FSMA 204 and coffee and tea
FSMA 204, the Food Traceability Rule, adds traceability records for foods on FDA's Food Traceability List. Coffee and tea are not on that list.
FDA states that the additional records apply to the listed foods, and to foods that contain a listed food as an ingredient when that ingredient stays in the same form, such as fresh. Fresh herbs are on the list. Dried tea leaves and roasted coffee are not.
FSMA 204 leaves coffee and tea out. Recalls still reach them. The records rule and the recall plan above run on lots, and the coffee recall below named three of them. If you also sell a listed food, see Lot-level traceability and recalls under FSMA 204.
What a lot-level recall looks like
In August 2025, FDA posted a company recall of an 8-ounce instant coffee for the potential presence of glass. The notice named three lots, each with a lot code and a best-by date, and said the lot information was printed around the neck of the jar.
FDA's recall rules in 21 CFR Part 7 describe what a recall communication should include. Section 7.49 says it should identify the product, size, lot numbers, codes or serial numbers so the product can be identified accurately and right away.
A shopper has to find a small printed code and compare it with a notice. A QR code that holds the lot can do that comparison at the scan.
How the lot goes into a GS1 QR code
A GS1 Digital Link QR code is a web address that contains your GTIN. A checkout scanner reads the GTIN from it like a barcode. A phone opens a web page.
GS1 Application Identifier 10 is the batch or lot number, up to 20 characters. Application Identifier 17 is the expiration date, in YYMMDD form. DLCode puts the lot in the path after /10/ and the date in the query after ?17=.
https://qr.yourbrand.com/01/00850012345671/10/R2611A?17=270531Use the same lot text you print on the bag or tin today, such as a roast batch or a harvest code. If you print an expiration or best-by date, you can put it in the code too. The hosted product page shows the lot and the best-by date.
On paid packs and the trial, each lot record can also store a pack date, a quantity, a source name and a note. If you pack on roast day, save the roast date as the pack date. Import lots from a CSV of up to 5,000 rows.
Send each lot to its origin story and brew guide
In DLCode, any link on a product can be limited to one lot. A scan of that lot opens that link. Scans of other lots open the product's main link. Lot links need a paid pack or the 30-day trial.
- Publish a page on your own site for the lot, such as the farm, the region, the processing method and the roast date for lot R2611A.
- Open the product in DLCode and add a link of type pip (product information page) limited to lot R2611A, with that page as the target.
- Add a link of type instructions for your brew guide. Apps that read the GS1 linkset can find it by link type.
- If the lot has an organic or other certificate, add a certificationInfo link to it. Host the file on your own site.
- Make the QR code for lot R2611A and scan it to check that the origin page opens.
The resolver ranks a lot match above a country match, and a country match above a language match. Paid packs can use 20 GS1 link types, including traceability and recipeInfo.
When the next harvest arrives, you add a new lot link. Bags already in stores keep opening the page for their own lot.
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 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.
A date-based recall needs the date in the code or a saved expiry on the lot record.
The scan notice works alongside the notices your recall plan requires, and it reaches every shopper who scans an affected bag. For the full steps, see How to tell customers which batch is recalled.
What grocery buyers will ask for: Sunrise 2027
GS1 US describes Sunrise 2027 as the transition from 1D UPC barcodes to 2D barcodes, such as QR codes, on retail products. GS1 US says it helps retailers make sure their checkout systems can read 2D barcodes.
Its first step for brands is to add a 2D barcode to existing packaging. The 2D code carries the same GTIN that is in your UPC. DLCode gives you the UPC and the QR code side by side in one print file, with the UPC-A, EAN-13 or EAN-8 placed 4 mm to the left of the QR code.
See Sunrise 2027 for sizes and placement, and Print specs for a QR code next to your UPC or EAN for module size and quiet zone. To check a code you already printed, use the code checker.
Printing a new lot on every roast
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 bag labels: download the lot's QR code from the product page as SVG, PDF, EPS or 600 dpi PNG.
- Label software such as BarTender or NiceLabel: build the address in the template from your GTIN-14, lot and date, using https://{your domain}/01/{GTIN-14}/10/{lot}?17={YYMMDD}.
- Automated files: request GET /api/v1/products/{gtin}/qr.svg?lot=R2611A&expiry=2027-05-31 with your API key. PDF and EPS are also available.
Label printers that print a lot code on roast day can print the QR code at the same time, from the same template.
Cost for a small roaster
Each coffee or tea in each size has its own GTIN. Six coffees in three bag sizes is 18 products, which fits the 25-product pack. Lots do not count toward the product limit, so a new roast every week costs nothing extra.
| Plan | Price, one time | Products | Domains | Seats |
|---|---|---|---|---|
| Free | $0 | 10 | 1 | 1 |
| 25 products | $249 | 25 | 3 | 3 |
| 100 products | $499 | 100 | 5 | 10 |
| 1,000 products | $1,490 | 1,000 | 10 | Unlimited |
A pack covers hosting and unlimited scans through December 31, 2030, with no subscription. After that, hosting is $29 per year. Every paid pack includes one free domain registered to you. Every new account starts with a 30-day trial of the 25-product pack, with no card. See pricing for details.
What to do this month
- Confirm each coffee or tea in each size has a GTIN licensed to your company. See How to get a GTIN.
- Pick the lot format you already print, and keep it to 20 characters or fewer.
- Decide where a normal scan goes, such as the product page on your store.
- Write one origin page for your current lot and add it as a lot link.
- Print a proof, scan it with an iPhone and an Android phone, and check the lot on the page.
- Write your recall notice text now, and test a recall on one lot before you need it.
- Put the codes on a domain you control. See Use your own domain for GS1 QR codes.
For other food categories, see DLCode for food brands and Can I put a QR code on my food label?.
Give every roast its own origin page this week
Set up one coffee or tea, link its current lot to an origin page, and have a recall ready before you ever need it.
- Each roast or harvest lot gets its own QR code and its own origin page.
- Recall listed lots, or every lot that expires on or before a date.
- Download lot files as SVG, PDF, EPS or 600 dpi PNG for your bag labels.
- Import up to 5,000 lot rows at a time from a CSV.
- 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 roast today. Start free or See pricing.
Sources
- 21 CFR 101.5: Food; name and place of business of manufacturer, packer, or distributor · eCFR
- 21 CFR 1.337: What information must nontransporters establish and maintain to identify the nontransporter and transporter immediate previous sources of food? · eCFR
- 21 CFR 1.345: What information must nontransporters establish and maintain to identify the nontransporter and transporter immediate subsequent recipients of food? · eCFR
- 21 CFR 117.139: Recall plan · eCFR
- 21 CFR 7.49: Recall communications · eCFR
- 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
- Dollar General Announces Voluntary Recall of Clover Valley Instant Coffee Due to Potential Presence of Glass · U.S. Food and Drug Administration
- GS1 Application Identifiers · GS1
- Sunrise 2027 · GS1 US
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.