Core concepts
Understanding our SKU
HLC SKUs follow a structured format that encodes product dimensions and variants. Use the ProductDimensionGroup field to parse and understand SKU components.
Dimension groups
| Product Dimension Group | Dimensions | Example |
|---|---|---|
| 300 | Configuration | 020056-05 → Configuration = 05 |
| 400 | Size | 960865-01 → Size = 01 |
| 500 | Color | 861266-166 → Color = 166 |
| 600 | Configuration + Size | 920701-01-U → Configuration = 01, Size = U |
| 700 | Configuration + Color | 890292-01-001 → Configuration = 01, Color = 001 |
| 800 | Size + Color | 861070-L-001 → Size = L, Color = 001 |
Use case: Build faceted filters (size/color) without hardcoding brand rules.
Example: parse a SKU
function parseSku({ sku, productDimensionGroup }) {
const parts = sku.split('-')
switch (productDimensionGroup) {
case 300:
return { configuration: parts[1] }
case 400:
return { size: parts[1] }
case 500:
return { color: parts[1] }
case 600:
return { configuration: parts[1], size: parts[2] }
case 700:
return { configuration: parts[1], color: parts[2] }
case 800:
return { size: parts[1], color: parts[2] }
default:
return { raw: sku }
}
}