UPC/GTIN Validation & Assignment: Never Ship a Bad Barcode Again
Import your item master, automatically validate every UPC/GTIN check digit, flag duplicates and invalid barcodes, and assign the next clean GTIN from your GS1 prefix pool — with a data steward approving each assignment before it hits the item master.
A web tool where you import your items, the app validates every barcode's check digit and flags duplicates and bad codes, AI proposes the next available GTIN from your GS1 pool for new items, a data steward reviews and approves each assignment, and the tool exports a clean item-master barcode update as CSV.
Before you start
- A Supabase account (free)
- A Vercel account (free)
- A Resend account (free)
- Your item-master CSV with existing barcodes
- Your GS1 company prefix and available number pool
- Claude Code or any AI coding agent
The problem this kills
A single bad barcode is a slow-motion disaster. A UPC with a wrong check digit won't scan at the dock, at the register, or in your customer's receiving system. A GTIN you accidentally reused on two different items quietly poisons your inventory counts and gets your shipment charged back by the retailer. And the number you "just grabbed" for a new SKU? It might be a number you already retired, or one that collides with a sister product three rows down the spreadsheet.
Most teams manage this in a spreadsheet, eyeballing 12- and 13-digit numbers, copying a "next number" from a tracking tab, and praying nobody fat-fingered a digit. The check-digit math is real arithmetic that humans get wrong, duplicates hide in plain sight, and the cost of a mistake — a non-compliant label, a chargeback, a recall — lands weeks later. You don't need to live like this, and you don't need to be a developer to fix it.
What you'll build
A simple internal web tool. You import your item master (a CSV or sheet of your items with their existing barcodes) and tell it your GS1 company prefix and available number pool. The tool runs the real GTIN check-digit algorithm on every barcode, flags any that fail, finds duplicate barcodes across your catalog, and spots items that have no barcode yet. For each new item, it proposes the next available GTIN drawn from your GS1 pool — never reusing a number you've retired. Your data steward sees a clean worklist, reviews each proposed assignment, and clicks Approve. Only then does the tool commit the assignment and let you export a clean item-master barcode update as CSV, in the exact columns your system of record expects.
What's inside the Implementation Plan
The downloadable plan is a step-by-step file you paste into an AI coding agent. It opens by interviewing you about your business — which system your item master lives in, exactly how your columns and SKUs are named, whether you assign GTIN-12 (UPC-A) or GTIN-13 (EAN), your GS1 company prefix and how long it is, how your number pool is tracked today, your typical and peak item volumes, and your messy edge cases — and then it tailors the data model, the validations, and every later step to your answers. This is not a generic template; the agent reflects a short spec back to you and waits for your thumbs-up before it builds anything. From there it walks the agent through the import, the check-digit and duplicate logic, the next-GTIN assignment from your pool, the steward review-and-approve screen, and the CSV export — each step with a ready-to-copy prompt. There's also a fallback so you can build and use the whole thing today even with no API to your ERP.
The governance it includes (this is the point)
This is real master-data tooling, so it ships with the controls a serious operation needs: login so only your team can use it, row-level security so you only ever see your own organization's items, a complete audit trail of who proposed and approved which GTIN assignment and when, a hard human-approval gate so no barcode is written to the item master until a steward signs off, and duplicate guards keyed on GTIN so the same number can never be assigned twice and a retired number can never be brought back to life. The AI proposes; a person decides.
Who it's for
Data stewards, product-setup specialists, and compliance coordinators who own item-master quality and are tired of validating barcodes by hand in a fragile spreadsheet. If you can describe how your shop hands out a new barcode, you can build this.
You've got this — start with the plan, paste the first prompt, answer the interview, and you'll see your bad-barcode worklist take shape the same afternoon.