Skip to main content

Legal classes: what a statute calls a product

Written for whoever answers to a regulator. Every obligation a distributor of regulated goods carries keys on what kind of product something is, not on what it is called: which licence a buyer must hold, the age below which it may not be sold to a person, whether the PACT Act reaches it, which MSAi category it is reported under, which state directory lists it. A legal class is that answer, recorded once and read by everything that needs it. (In the API and the files it is still called a regulated category: regulated_category_id, /api/v1/regulated-categories.)

Legal classes have no screen of their own. You pick one in a category's form — Regulated as — and add or edit one from there; the Categories page's Legal classes tab lists them all, read-only, with which categories use each and how many products resolve to it, for the auditor's question: "what do we sell that needs a tobacco licence?"

Before regulated categories, the order desk decided "tobacco" by looking for the word in a product's code or name. A disposable vape, a cigar, a can of nicotine pouches and a jar of kratom were never checked, and a "tobacco-free nicotine pouch" was. The regulated category replaced that guess: the order line's licence check and the counter's age check both read it.

Permissions​

regulated_category.readSee the list and what each one requires. Granted to every seeded role, because every list and desk resolves it.
regulated_category.manageAdd a category, change what one requires, switch one off. Manager (and Admin).

A role your company made itself receives neither until somebody grants it.

The Compliance app​

Regulated categories, licence checks and age checks are the Compliance app's (Settings → Apps → Compliance). It is on for every company until somebody switches it off, because every company had regulated categories before they followed an app.

  • On: a category's form has its Regulated section, the Categories page its Legal classes tab, a category and a product carry a legal class, and the order desk, the counter and the storefront refuse a sale the buyer is not licensed for.
  • Off: the list, its screen and its assistant tool are gone; a product, a category, the bulk actions and Add a tax show no regulated category, minimum age, FDA status or STN; and nothing can set one (clearing one still works, so you can tidy up). The data stays: switching the app back on shows everything as it was.
  • Switching off does not stop the checks on what is already filed. A product that already carries a regulated category keeps its licence and age checks: a licence is the law, and a switch that quietly stopped licence checks would be the dangerous direction. Clear the regulated categories first if you mean to stop checking them.

Where you set it​

On the category, almost always. Give the category Disposable vape the regulated category Disposable vapes and every product in it — and in every category below it — is a disposable vape, whatever menus or aisles it is shown in. A collection never decides it: a product sits in any number of collections, and none of them changes what a statute calls it. You can also set one on a single product as an override.

What a product is resolves in this order, the same order its tax category does:

  1. the product's own regulated category;
  2. its master's, for a variant;
  3. its category, then each category above it, the nearest that has one;
  4. otherwise Not regulated (NONE).

A value set on purpose stops the walk, NONE included: setting the child category "Vape accessories" to Not regulated under "Vape" is how a branch is opted out.

A product's page shows the answer and where it came from (inherited_from in the API), with the licence types, the age and PACT coverage that follow. None of those is copied onto the product, so changing the regulated category changes every product under it at once.

The minimum age on one product​

A product can override its regulated category's age with minimum purchase age override: empty uses the regulated category's age; 0 means no minimum whatever the category says; any other number is that age. It is the only fact of a regulated category a product can override, for the odd product a state treats differently.

The counter asks for it once per basket. A sale at a till holding any line with an age shows one "Check ID" line, at the strictest age on the basket. A line is left out of it where its regulated category requires licence types and the account holds every one of them in good standing: a licensed business, and the licence is the check. A category with an age and no licence type (none of the shipped rows, since ALCOHOL asks for atc) is always asked about. With licences not recorded (customers.licences off) no licence was checked, so every aged line is asked about. The counter asks; it does not record the answer or refuse the sale (the screen's confirm step is not built yet). The order desk does not age-check: an order to a licensed account is not a sale to a person.

The list the product ships​

Twenty rows, the same for every company. The legal content of each is a default to review with counsel, not a statement of the law. Cells marked b were given as requirements when the list was drawn up; cells marked p are defaults proposed where nothing was given, and are the first to review. Change any of them on your own company; only the code is fixed.

CodePACTAgeLicence types (all required)MSAi code
CIGARETTEyes b21 bcigarette p003231 b
LITTLE_CIGARno p21 btobacco p003252 b
CIGARno p21 btobacco p003251 b
PREMIUM_CIGARno p21 btobacco p003227 b
PIPE_RYOyes p21 btobacco p— (the kit has one code for each half)
RYOyes p21 btobacco p— (none found; set your own)
MOIST_SNUFFyes b21 btobacco p003211 b
CHEW_SNUSyes b21 btobacco p— (the kit has four)
NICOTINE_POUCHno p21 btobacco p— (none assigned)
ENDS_DEVICEyes b21 pvape p003292 b
ENDS_DISPOSABLEyes b21 bvape b003292 b
E_LIQUIDyes b21 bvape p003292 b
E_LIQUID_NICOTINE_FREEyes b21 pvape p003292 p
ENDS_COMPONENTyes b21 pvape p003292 p
KRATOMno p21 bkratom b—
HEMP_CBDno pnone phemp p—
HEMP_THCno p21 bhemp p—
ALCOHOLno p21 patc p—
LIGHTERno pnone pnone p—
NONEnononenone—

Four cells decide who is refused, and are the first to take to counsel:

  • CIGARETTE → cigarette. A state that issues one tobacco licence for both will refuse its retailers until the row also, or instead, says tobacco.
  • NICOTINE_POUCH → tobacco. If your states do not license pouches as tobacco, take the type off the row.
  • Every vape. A retailer holding only a tobacco licence cannot buy a filed disposable.
  • ALCOHOL → atc: wholesale alcohol needs a licence, and atc is the alcohol-and-tobacco-control type. A state with a separate liquor licence is your own edit of the row.

FOOD, CANDY_GUM and SOFT_DRINK are not regulated categories. They are tax categories, defined by the Pennsylvania and Maryland excise packs.

Roll-your-own and pipe tobacco​

Until November 2026 the list had one row for both, PIPE_RYO ("Pipe and roll-your-own tobacco"). Roll-your-own now has its own, RYO: PACT covered, 21, a tobacco licence, like PIPE_RYO. No MSAi category code is set: none was found for roll-your-own in the codes the product carries, and one is not guessed — set it on your own row if your MSAi kit gives one.

PIPE_RYO keeps its name and every product filed under it. The two matter apart because Pennsylvania's cigarette directory lists roll-your-own brand families and not pipe tobacco (see Product registries): it reaches RYO and not PIPE_RYO. File roll-your-own products as RYO — the starter pack's new Roll-your-own tobacco category does it — and use catalogue health's Filed as pipe tobacco, saying roll-your-own to find the ones already filed as pipe tobacco. The Pennsylvania and Maryland tax packs tax RYO as they tax roll-your-own under PIPE_RYO (Pennsylvania $0.55 an ounce, at least $0.66 a package; Maryland 60% of the wholesale price); apply the new versions (Pennsylvania 2026.11.3, Maryland 2026.10.3) under Tax → Rule packs.

Licence types mean all of them​

A row's licence types are required together, as a customer class's required licence types are. [vape, tobacco] means a buyer must hold both. There is no "either will do" and no per-state list: a company selling into one state that licenses vapour separately and another whose tobacco licence covers it cannot write one row that is right for both. Choose the type the stricter state asks for, and take it up with counsel.

The licence check on an order line reads these types. Adding a line for a product whose category lists licence types asks the customer's compliance verdict for exactly those types (at the account and at the order's delivery address). A missing, expired, suspended or revoked licence of a listed type refuses that line, and only that one; a licence of another type, in any state, does not. The refusal names the type and what is wrong with it, for the desk, the counter and the assistant alike. It runs only where the Customers app is on and its licence checks (customers.licences) are on, and it always refuses — sales.compliance_policy governs the check at confirm, not this one. A product nobody has filed is NONE and is not checked, whatever its name.

Switching off, and deleting​

  • Switching one off takes it out of the lists you pick from. Everything already filed under it keeps it and still resolves to it — the licence types, the age and the rest still apply. Nothing new can be filed under it.
  • A shipped row is never deleted, only switched off.
  • Your own row can be deleted only when nothing carries it. The refusal names how many products and categories do; re-file them first.
  • NONE cannot be switched off and cannot be given a licence type, an age or PACT coverage, because every product filed nowhere is NONE. Its name and description can change.

Adding your own​

For a product the shipped list does not name. The code is capital letters, digits and underscores, starting with a letter (HEMP_FLOWER); it cannot be changed afterwards. The MSAi code, where you give one, is six digits.

Where to do it​

  • Filing a category: Products → Categories, the category's form, Regulated → Regulated as. Every product in the category, and in every category below it, follows it. Not regulated opts a category out of a regulated parent.
  • Adding or changing a legal class: in the same dropdown, + New legal class adds your own (code, name, the licences a buyer must hold, the minimum age, PACT coverage, the MSAi code) and selects it; Edit beside the selected class changes what it requires or switches it off. The code cannot be changed once saved. Needs regulated_category.manage.
  • Seeing them all: the Categories page's Legal classes tab — every class, what it requires, the categories that set it and how many products resolve to it. Read-only; somebody with regulated_category.read alone sees it.
  • One product: its page, Compliance → Legal class, to override its category for that product, and the minimum age override.
  • Many products at once: the product list's bulk action Set regulated category.
  • Through the API: GET /api/v1/regulated-categories, with POST, PATCH and DELETE on /api/v1/regulated-categories/{id}; filing is regulated_category_id on POST/PATCH /api/v1/categories and /api/v1/items (a key sent as null clears it), or POST /api/v1/items/bulk with action set_regulated_category. Each is refused with the Compliance app off. GET /api/v1/items?regulated_category_id=… lists what resolves to one, not only what names it itself.
  • The assistant: "which regulated categories need a vape licence?" uses inventory.regulated_categories (Compliance on), and "list our kratom products" uses inventory.find_items with a regulated category code.

Catalogue health: what is filed wrong for a statute​

Catalogue health's compliance checks (GET /api/v1/catalogue/health; the Products → Catalogue health screen and the Catalogue health card) read the regulated category to find what a sale or a return would be refused or fined for. On the screen each check opens the item list on exactly what it counted (?health_check=<key>), and the three a bulk change fixes — Regulated, with no tax category (Set tax category), In a regulated class, filed as not regulated and Filed as cigars, light enough to be little cigars (Set legal class) — offer that change over every match, previewed before it is made (POST /api/v1/items/bulk/preview). Three of them have settings:

SettingDefaultWhat it does
inventory.hemp_thc_limit_mg0.4The most total THC, in mg per container, before a hemp product is named
inventory.hemp_thc_limit_from2026-12-11Before this day the hemp check is a warning; from it, an error. Nothing is discontinued: a person decides
inventory.little_cigar_max_lb_per_thousand4A product filed as a cigar (or premium cigar) whose weight per thousand is this or less is named: most statutes ("not more than four pounds per thousand") call it a little cigar. Exactly 4 is named, the same answer Pennsylvania's licence gate gives

The hemp check reads the product attribute Total THC per container and the cigar check Weight per thousand; both ship with the starter pack (see Starter packs). The net contents check reads which net content a per-measure statute uses for each regulated category: millilitres for e-liquid and disposables, weight for snuff, chew and pipe tobacco, the count for pouches, cigars and cigarettes. The MSAi check runs only where MSA reporting is on, and names PACT-covered products whose regulated category has no MSAi code (pipe and roll-your-own and chew have none in the shipped list).

Filed as pipe tobacco, saying roll-your-own (a warning) names products whose legal class is PIPE_RYO but whose Pipe or roll-your-own attribute says roll-your-own, or whose name or SKU says so (RYO, MYO, roll-your-own, rolling tobacco, cigarette tobacco). Nothing is moved for you: select the section's products from Show them all and use the bulk Legal class action to refile them as RYO.

The checks need catalogue_health.read (Manager and Accounting by default). A check whose own data a role may not see — the directory statuses (registry.read), vendor items (vendor_item.read) — is left out for that role rather than shown empty.

When the shipped rows are missing​

A destructive uninstall of Inventory removes the shipped rows with everything else the app owns, and nothing puts them back. A product filed nowhere then cannot be answered, and the refusal says so ("The regulated category NONE is missing…"). Reinstall the reference data or ask support.