GS1 QR codes for cannabis brands: batch COAs, state label rules and recalls
New York and Maryland already require a code on the package that leads to the certificate of analysis, and New York requires written procedures to recall any lot. This guide covers the label rules in five states and shows how to put the lot in one GS1 QR code, so each scan opens the COA for the package in hand and a recall reaches only the lots that need it.
DLCode · Updated · 8 min read
What the state label rules say
Each state writes its own cannabis label rules. Every one of these puts a lot, batch or tracking number on the package, and two of them require a code that opens the lab results.
| State | What the label must carry |
|---|---|
| New York | A lot unique identifier, lot number or bar code, and a scannable bar code or QR code linked to a downloadable certificate of analysis or to a website where it can be downloaded (9 NYCRR 128.5). |
| Maryland | The finished product lot number, and a certificate of analysis from an independent testing laboratory made available on the package through a link or QR code (COMAR 14.17.18.03). |
| California | The UID and the batch or lot number on the informational panel (4 CCR 17406). |
| Colorado | The Harvest Batch Number for flower and trim, or the Production Batch Number for products and pre-rolls (1 CCR 212-3, Rule 3-1010). |
| Michigan | The package tag assigned by the statewide monitoring system, and the name of the laboratory that performed passing compliance testing with the test analysis date (Mich. Admin. Code R 420.504). |
In New York, the certificate of analysis is a certified report from a cannabis laboratory that meets the requirements of Part 130 (9 NYCRR 128.1). In Maryland, the same rule lets you move some ingredient details to a link or QR code, so one code can carry more than the COA.
Track and trace and the UID
California requires every licensee to use the California Cannabis Track-and-Trace system to track cannabis from seed to sale. DCC works with Metrc on that system under a contract that took effect on July 1, 2024.
In California, the UID is the unique tracking number issued through the track and trace system, and it goes on the label next to the batch or lot number. In Michigan, the label carries the package tag assigned by the statewide monitoring system.
Keep the UID and the lot printed on the label. A GS1 QR code with the same lot gives each package a scan that opens the right COA, and it lets you match a scan to the lot in your track and trace records.
Recalls happen by lot
New York requires every licensee to keep written procedures to recall any lot of cannabis or cannabis product when the Office directs it. The procedures must include a way to notify the Office within 24 hours of starting a recall. A licensee may not sell or transfer product that has been placed on administrative hold (9 NYCRR 125.9).
A recall notice that lists lot numbers asks shoppers to compare those numbers to the label in their hand.
A QR code that carries the lot can show the recall notice to the people who scan an affected package, while every other lot keeps opening its COA.
How the lot goes 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, 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/GG2611A?17=271130Use the same lot text that you print on the label and enter in your tracking records. Then the lot in the code matches the package and the COA.
Use your own domain, such as qr.yourbrand.com, in the code. The address printed on the package then 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.
Send each lot to its own COA
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.
- Upload the COA PDF for lot GG2611A to your own website or file storage.
- Open the product in DLCode and add a link of type pip (product information page) limited to lot GG2611A, with the COA URL as the target.
- Add a second link of type certificationInfo limited to the same lot. Apps that read the GS1 linkset can find it by link type.
- Make the QR code for lot GG2611A and scan it to check that the COA opens.
DLCode does not host PDF files, so the COA stays on your site or file storage. You can also point the lot link to a page on your site that shows the COA next to the lot number and the UID.
If a lab reissues a COA, change the lot link to the new file. The printed code stays the same. See A QR code you can change after printing.
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 their COA. The GS1 linkset for the product also reports the recall status, and every change is written to the product's recall history.
Pair the scan notice with the notices your state rules and your recall procedures already require. For the full steps, see How to tell customers which batch is recalled.
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: 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=GG2611A&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. On paid packs and the trial, import a lot CSV of up to 5,000 rows with columns such as gtin, lot, expiry, packed_on and quantity.
The QR module is 0.495 mm with a 4-module quiet zone. See Print specs for a QR code next to your UPC or EAN and 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
- List the label rules for each state you sell in, starting with New York and Maryland if you sell there.
- Confirm each product has its own GTIN from GS1.
- Make sure each printed lot matches the lot on its COA and in your track and trace records.
- Upload each lot's COA to your website or file storage.
- Connect a domain you control, such as qr.yourbrand.com, before you print.
- Add a lot link for each COA, 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.
Selling hemp or CBD outside the licensed market? See GS1 QR codes for hemp and CBD brands and DLCode for hemp and CBD brands. For California rules beyond cannabis, see GS1 QR codes in California.
Have every lot's COA one scan away
Set up one product, link each lot to its COA, and have a lot recall ready before you ever need it.
- Each lot gets its own QR code that opens its own COA.
- Swap in a reissued COA without reprinting the label.
- 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 label printer.
- 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 lot today. Start free or See pricing.
Sources
- 9 NYCRR 128.5: Cannabis product labeling minimum standards · Cornell Legal Information Institute
- 9 NYCRR 128.1: Definitions · Cornell Legal Information Institute
- 9 NYCRR 125.9: Quality assurance and recall procedures · Cornell Legal Information Institute
- COMAR 14.17.18.03: General labeling requirements · Maryland Division of State Documents
- 4 CCR 17406: Informational panel labeling requirements · Cornell Legal Information Institute
- Labeling requirements: Manufactured cannabis products in final form checklist · California Department of Cannabis Control
- CannaConnect licensee resources · California Department of Cannabis Control
- DCC announces new software contract with Metrc · California Department of Cannabis Control
- 1 CCR 212-3, Rule 3-1010: Packaging and labeling general requirements · Cornell Legal Information Institute
- Mich. Admin. Code R 420.504: Marihuana product sale or transfer; labeling and packaging requirements · Cornell Legal Information Institute
- 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.