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 GroupDimensionsExample
300Configuration020056-05 → Configuration = 05
400Size960865-01 → Size = 01
500Color861266-166 → Color = 166
600Configuration + Size920701-01-U → Configuration = 01, Size = U
700Configuration + Color890292-01-001 → Configuration = 01, Color = 001
800Size + Color861070-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 }
  }
}
Previous
Security