How are SKU coding rules designed? Three scenarios and common mistakes
The SKU code is the mount point for all data in the ERP. This article compares three common coding schemes, explains how to establish a mapping between SKUs and platform product links, and lists high-frequency errors such as re-coding and one yard and multiple products.
How to Design SKU Coding Rules: Three Approaches and the Mistakes to Avoid
1. What a Code Needs to Carry
A common misconception is that "the more information packed into the code, the better". In practice a code only needs to satisfy three requirements: unique (never duplicated), stable (never casually changed) and extensible (adding a category does not overturn the scheme).
As for which information belongs in the code, the test is how often you filter by it. If you frequently look up inventory by category, putting category in the code is convenient. If you only check occasionally, an attribute field is better — attributes can be edited, whereas a code should ideally never change.
2. Three Common Coding Schemes
| Scheme | Example | Advantage | Cost |
|---|---|---|---|
| Meaningless sequence | SP000123 | Absolutely unique, trivial rule, never needs rebuilding | You cannot tell what the product is from the code |
| Segmented semantic code | TS-RED-M-001 | Human-readable, easy to recognise and filter by category | Rules collide as categories grow; costly to maintain |
| Reuse the marketplace ID | Platform item_id or variant ID | Zero conversion cost, one-to-one with the platform | One product carries different IDs on different marketplaces, so it cannot be a primary key |
For most small and mid-sized teams the sensible choice is a compromise: a short category prefix plus a sequence, for example TS-00123. It lets you guess the category at a glance without forcing a rewrite every time a new variation appears.
3. Build the Mapping Between SKUs and Marketplace Listings
Multi-platform sellers hit a practical problem: the same physical product may be one listing on marketplace A, split into two listings on B, and merged with others on C. A mapping layer has to absorb that difference.
- One-to-one: the most common case — one SKU maps to one marketplace listing.
- One-to-many: one SKU maps to several listings, for example the same product listed separately on each platform. Stock changes must be pushed to every linked listing at once.
- Many-to-one: several SKUs map to a single listing, typical of bundles and kits. This structure must record the composition, otherwise orders get broken apart wrongly at packing.
Maintain this layer in a separate mapping table: SKU code, platform name, platform item ID, platform variant ID, relation type. The table looks unremarkable, but it is what inventory sync and order write-back depend on.
4. Four Common Mistakes
- Changing codes often. Once a code is referenced by orders and stock movements, changing it breaks historical data. If you must adjust, create a new SKU and link old to new rather than renaming in place.
- One code, many products. Different physical items sharing a code means stock never reconciles and cost cannot be calculated.
- Many codes, one product. Creating several SKUs for the same item because of different batches or suppliers makes consolidated analysis impossible.
- Variable information inside the rule. Putting the supplier name or the year into the code destroys stability the moment you switch supplier or cross into a new year.
Conclusion: The goal of SKU coding is not to "look professional" but to be unique, stable and extensible. Small teams can adopt the compromise of "short category prefix + sequence", make each variation its own SKU, and maintain a separate mapping table between SKUs and platform item IDs. Avoid the four mistakes — renaming codes, one code for many products, many codes for one product, and variable data inside the code — and long-term data maintainability is assured.
Recommended Articles
Recommended Tools
Related Tools
All Tools →Related Articles
- Why the replenishment point should be dynamic rather than a fixed experience point
- The right way to open inventory turnover: don't be fooled by averages
- Safe Inventory and Replenishment Points: One Formula and Four Fixes
- Are industry templates useful: generic vs. vertical boundaries
- What to see during your trial: A seven-day checklist