Quick answer: A cannabis batch number, package UID and laboratory sample ID can identify different parts of a record. A batch or lot groups product; a UID serves a tracking purpose under the relevant system; a lab sample ID identifies material received or tested by the laboratory. The connection between the records matters more than making every code identical.
Sources checked October 23, 2026. Terminology and tracking requirements vary by state and system. All codes in the examples are fictional.
If you are trying to connect a package to its certificate of analysis or a recall notice, the longest code is not automatically the correct one. Read the field label first. “Batch,” “sample,” “report” and “license” can refer to entirely different things.
A reference table for common cannabis identifiers
| Field | Typical purpose | Reading question |
|---|---|---|
| Product batch or lot | Groups material or product under a production record. | Is this the batch covered by the document? |
| Package UID | Identifies a tracked package or lot within a system. | Which package record does this number describe? |
| Retail item identifier | May identify an individual finished retail unit. | Does this jurisdiction use a separate retail identifier? |
| Laboratory sample ID | Identifies the specific sample in laboratory records. | How does the sample link to the product batch? |
| Report number | References the issued laboratory document. | Is this the complete, relevant report and version? |
| Business license number | References an authorized business record. | Am I confusing a business identifier with a product identifier? |
This table describes common roles, not mandatory labels for every package. Use the definitions on the actual document and the applicable regulator's guidance when a term differs.
Why one batch can have more than one tracking code
New York OCM's seed-to-sale FAQs distinguish plant UIDs, package UIDs and retail item UIDs. The guidance also explains that separate distribution containers can require separate package identifiers even when their contents belong to the same batch or lot.
That distinction helps resolve a common assumption: one product batch does not necessarily equal one code across every record. The batch relationship and the package relationship answer different questions. Readers should request the connection rather than treating different fields as a contradiction.
California's non-manufactured-product checklist identifies a UID as a tracking number. Its separate bulk-product guidance also requires an assigned UID and expressly distinguishes bulk goods from finished retail goods. A photograph of an upstream label therefore needs context before it is compared with a retail label.
A lab sample ID is not automatically the product batch
The Illinois COA guide describes both product-related serial information and a batch/sample ID identifying the sample tested. A report may show more than one reference because the laboratory and the product records have different identification needs.
There is another subtlety: “batch” can mean a laboratory analytical batch. The FDA's analytical glossary uses that term for samples, standards and quality-control materials analyzed together. That is different from casually assuming the word always refers to a cannabis production batch.
When a laboratory document has several batch-like fields, copy their full headings. Ask which identifies the product, which identifies the sample, and which identifies a laboratory run. Do not infer the answer from the length or format of the code.
An illustrative mapping with different, compatible codes
Imagine these fictional records:
- Package label: Product batch DEMO-BATCH-A; package UID EXAMPLE-PACK-17.
- Laboratory report: Product batch DEMO-BATCH-A; sample ID LAB-DEMO-08; report reference REPORT-DEMO-24.
- Supporting explanation: The issuer confirms that package EXAMPLE-PACK-17 is associated with DEMO-BATCH-A and that LAB-DEMO-08 is the sample described in the report.
The sample ID does not need to say DEMO-BATCH-A because it identifies a different record. What matters is the documented relationship. Conversely, a report that merely shares the same product name leaves the batch connection unresolved.
If the package instead says DEMO-BATCH-B, do not edit either code to make the records agree. Ask for the applicable report or an explanation. A typo is possible; so is a genuinely different record. The documents alone do not tell you which explanation is correct.
Build a small identifier cross-check
- List the documents. Label photo, complete COA and any relevant official notice.
- Copy field headings exactly. Keep “sample ID” distinct from “batch number.”
- Preserve each code. Include prefixes, suffixes, punctuation and leading zeros.
- Mark confirmed relationships. Note where the document or issuer establishes the link.
- Mark unresolved relationships. Use “not explained” rather than “does not match” when you are comparing different fields.
- Keep the explanation with the record. Include the date and the person or organization that answered.
This can be a short note rather than a complicated spreadsheet. The value comes from preserving distinctions. It should be possible for another reader to follow your record without needing to reconstruct your assumptions.
For a recall, use the notice's specified identifiers
A recall check has a narrower purpose than understanding every code on the label. Follow the fields and any ranges listed in the official notice. Do not substitute a laboratory sample ID when a notice asks for a product batch or package identifier.
Our batch-number recall checklist explains the comparison process. If you are reviewing the laboratory document more broadly, continue with the COA reading guide. Keep the full report; a cropped image may hide the fields that explain the connection.
Common identifier questions
Should the laboratory sample ID match the package UID?
Not necessarily. They can identify different records. Ask how the sample and package are connected to the same product batch.
Can one batch have several package UIDs?
Yes, depending on the system and circumstances. New York's guidance provides examples involving separate containers from the same batch.
Is a QR code itself a batch number?
Not necessarily. It may lead to a page or encode another identifier. Read the resulting record and the printed field labels.
Does a plausible-looking code prove authenticity?
No. Formatting alone does not establish the code's validity or its relationship to the item. A documented connection is more meaningful than appearance.
What if the code is unreadable?
Photograph the label and ask the relevant issuer which record can clarify it. Do not invent missing characters or substitute a nearby code.