B2B marketplace
A licensed marketplace that obeys state law
A licensed marketplace that obeys state law.
A B2B cannabis marketplace for Oregon, where the licence decides what a buyer can see. Buyers, sellers and admins each get their own view. The build is a private preview — case study on request.
Problem
Marketplace templates assume anyone can buy anything. In a licensed trade the catalogue is the permission system: one wrong product in front of an unlicensed buyer is a compliance problem, not a UI bug. A buyer account is not a name and a password — it is a set of state licences with an expiry date.
What I did
Put the licence gate in the data model rather than the page. Buyers carry state licences; the catalogue grid and every supplier storefront re-resolve against them; the cart splits by state and supplier so an order never crosses a line it should not; and sellers run their own inventory with pause, archive and CSV import. A single marketplace.json is the source of truth, and the build fails if a listing is missing from its supplier storefront or a stale supply term survives.
What happened
Forty-eight pages, audited to zero console errors, with three demo licence states that each produce a different ordering surface. State-by-state ordering holds when someone tries to route around it: change the account, and the products, the cart and the order button all change with it.