In this article
- Why does one item under four names break your numbers?
- What is the difference between an item code and a barcode?
- When should you print your own in-house barcode?
- What belongs in an item code and what does not?
- What shape should the code take?
- How do you handle sizes, colours and cartons?
- Item names: the forgotten rule
- How do you move out of a messy item list?
- Common mistakes
- How does Fahim help with item coding?
- Frequently asked questions
- Do I need a GS1 barcode for every product I sell?
- Can I print barcodes for loose items in my shop?
- Does the item code change when the supplier or price changes?
Numbering products so the system holds up rests on two separate things: an internal item code that never changes for the item's life, and a barcode the till reads. If you resell a manufactured product, use the barcode printed on it. If you make your own product and sell it through other retailers, you need a global barcode from GS1. If the barcode stays inside your shop, the global standard reserves prefix 04 for that, so it never clashes with real products. The internal code is short and carries no price, supplier or shelf location.
Why does one item under four names break your numbers?
Every growing business finds one product recorded under four names: by accounting, by the warehouse, from a supplier invoice, and on a shelf label. The result: phantom variances at count time because the balance is split, duplicate purchases, and reports that cannot tell you how much you sold. The fix is a written coding rule everyone follows.
What is the difference between an item code and a barcode?
The internal item code is something you create for yourself, shown in your system, reports and invoices. A retail barcode is a global number identifying a product in any store in the world, issued through GS1 and its member organisations in each country to the company that owns the brand.
According to the GS1 General Specifications (Release 26.0, January 2026), the Global Trade Item Number (GTIN) comes in four formats: GTIN-8, GTIN-12, GTIN-13 and GTIN-14. The one you usually see on packaging is GTIN-13: 12 digits followed by one check digit that the scanner calculates automatically to confirm the read is correct. The number starts with a company prefix of 4 to 12 digits that GS1 assigns to the brand owner.
| Aspect | Internal item code | Global barcode (GTIN) |
|---|---|---|
| Who issues it | You | The brand owner, with a prefix from GS1 |
| Where it works | Inside your system only | In any store in the world |
| What it looks like | Letters and digits you choose, e.g. BEV-0142 | Digits only, usually 13 |
| More than one per item? | No, one code per item | Yes, the unit and the carton may carry two |
When should you print your own in-house barcode?
Many shops print labels for items without a barcode: loose goods, own-packed products, unlabelled spare parts. The common mistake is random numbers that may match a real product's barcode, so the cashier scans one item and another appears.
The standard solves this directly. The GS1 prefix table on page 26 of the General Specifications reserves prefix 04 for restricted circulation numbers within a company, and prefixes 20 to 29 for restricted circulation within a geographic region, with the meaning set by the member organisation in each country. Section 2.1.11.2 states that any company in the world may use prefix 04 for internal item numbering, and that such a number does not uniquely identify the item once it leaves the company's premises.
The rule: if the barcode never leaves your shop, start it with 04, then the item number, then the check digit. If other retailers will sell the product, register with GS1 in your country for a real company prefix.
What belongs in an item code and what does not?
A code must stay permanent, so anything that can change has no place in it.
| Belongs in the code | Does not belong in the code |
|---|---|
| Main category or group | Selling price or cost |
| A running sequence within the category | Supplier name |
| A variant marker (colour, size) when needed | Shelf or warehouse location |
| — | Year of entry or season |
That information belongs in separate fields on the item record, where you can edit and filter it without breaking the code.
What shape should the code take?
The best code is the shortest one that does the job. A format that fits most businesses: two or three letters for the category, then four or five sequential digits, such as BEV-0142 for beverages. Let the system assign the sequence.
- Stay under 12 characters, ideally between 6 and 10.
- Standardise separators: either every code has a dash or none does.
- Avoid characters that look like digits, such as O, I and l.
- Never reuse the code of a deleted item for a new one; old reports will merge them.
The no-reuse rule is not just internal good practice: since 1 January 2019 the global standard itself forbids reallocating a GTIN to another product, except in narrow cases such as a number that was never shared with any trading partner, as set out in section 4.2.5.
How do you handle sizes, colours and cartons?
A black shirt in size M is not a white shirt in size L. Every combination sold and counted separately needs its own code, with a parent item grouping them; lump sizes together and you cannot see which runs out first.
A carton of 24 pieces is not a new item but another unit of the same item, with a conversion factor. If the carton has its own barcode, register both barcodes against the same item, or your balance splits.
Item names: the forgotten rule
The code alone is not enough, because staff search by name. Standardise the name in a fixed order: type + brand + description + size, for example: Orange juice - Brand X - 1 L. Duplicates drop because staff find the item while typing its name.
How do you move out of a messy item list?
- Export the full current item list into one file.
- Deactivate dead items: anything with no movement in a year and no intention to sell, as in our guide to dead and slow-moving stock.
- Merge duplicates: pick the most correct record, keep its balances, then map the rest to it before deactivating them.
- Write the coding policy on a single page: categories, code length, naming rule, and who may create items.
- Restrict item creation to one or two people, not everyone who can open an invoice.
- Code new items under the new rule, and convert old ones in batches starting with the fastest movers.
- Print new shelf labels once codes are approved, then run a physical count to confirm.
Do not recode everything in a week; fast movers first give most of the benefit. If you are moving to a new system, clean before you migrate, not after, as in our guide to data migration to a new system.
Common mistakes
- Embedding the price in the code, then changing the price and leaving the code lying to its reader.
- Creating a new item every time the same product is bought from a different supplier.
- Printing in-house barcodes with random numbers instead of prefix 04, so they clash with real product barcodes.
- Relying on names with no codes, which breaks any matching against supplier files.
How does Fahim help with item coding?
With Fahim's POS and cashier system, the cashier scans an item's barcode and the system issues the invoice and deducts the quantity from that item's balance at once. In a stock count, the warehouse supervisor sends quantities item by item or by scanning barcodes, and the system records the difference between shelf and ledger with the counter's name and the time of the count. It all works only if one barcode leads to one item.
Frequently asked questions
Do I need a GS1 barcode for every product I sell?
No. If you resell manufactured goods, use the barcode printed on them. You need a GS1 prefix only if you own the brand and will sell your product through other retailers.
Can I print barcodes for loose items in my shop?
Yes, and start them with prefix 04, which is reserved for internal company use. It works inside your shop and not outside it.
Does the item code change when the supplier or price changes?
No. Supplier and price are fields on the item record; the code stays the same for the life of the item.
Sources
- GS1 General Specifications ref.gs1.org
Run your business from WhatsApp
Fahim turns the messages your team already sends into stock, invoices and reports. Try it free for a month.


