Home / How are SKU coding rules designed? Three scenarios and common mistakes

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

In an ERP, inventory, orders, purchasing and costs all hang off the SKU code. Whether that coding scheme is well designed directly decides whether your data still makes sense three or five years from now. This article lays out three common approaches and what each one costs you.

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

SchemeExampleAdvantageCost
Meaningless sequenceSP000123Absolutely unique, trivial rule, never needs rebuildingYou cannot tell what the product is from the code
Segmented semantic codeTS-RED-M-001Human-readable, easy to recognise and filter by categoryRules collide as categories grow; costly to maintain
Reuse the marketplace IDPlatform item_id or variant IDZero conversion cost, one-to-one with the platformOne 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.

Handling variations: make colour, size and similar attributes separate SKUs rather than describing them in text under one SKU. Otherwise stock cannot be counted by variation and picking mistakes become likely.

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.

Related Tools

All Tools →

Related Articles