Skip to main content

Apparel, Variants, or Models (Color, Size, and Variants)

Integrating apparel or fashion items with Hii Retail requires handling additional complexity for sizes, colors, and models. Variant items are linked to their model item by setting the model item's ID as the parentId on each variant item.

Fashion items are often the same product with different characteristics (e.g., size, color, style).

Example: An Acme Sports Trainer shoe is the same item in size 38 or 45, or in blue or green. However, it may differ if it's a women's or men's style.

Adding patterns, styles, and seasons increases complexity and requirements for the data model.

Hii Retail offers a flexible model to connect items as needed, and Additional Properties allow information to be present where required.

Best Practice: Define one "master item" (Model) for each apparel item, and regular Stock Items for all variants.

Define a Model item with all relevant information and set ItemType to Model. Then, define all variants as StockItems, each with ItemType set to StockItem.

This structure lets you manage the item via the Model, with Hii Retail propagating data to all variants. UIs can use the Model as the master, listing variants for stock or other info.

Apparel item structure


Fashion, shoes, sporting goods, and fragrances often require more complex item structures. Below are recommended properties to support these needs.

Create a Model Item
PropertyMember ofDescription
idItemUnique internal ID for the Item. Should be stable and not tied to GTIN/barcode.
businessUnitGroupId or businessUnitIdItemThe Business Unit or Group for this item. See Business Units.
itemCategoryIdItemThe Item Category ID. See Item Category.
descriptionItemTextual description.
nameItemName used in receipts, search, and lists.
statusItemOperational status. Set to Active for general use. See Item Statuses.
typeItemMust be MODEL for the master Item. See Item Types.
colorAdditionalPropertyColor of the variant. Each unique value creates a color variant for filtering.
sizeAdditionalPropertySize of the item (numeric or text). Each unique value creates a size variant for filtering.
styleAdditionalPropertyClassifies products that share characteristics not varying by GTIN.
brandItemBrand name.
Create a Variant Item
PropertyMember ofDescription
idItemUnique internal ID for the Item.
businessUnitGroupId or businessUnitIdItemThe Business Unit or Group for this item.
itemCategoryIdItemThe Item Category ID.
descriptionItemTextual description.
nameItemName used in receipts, search, and lists.
statusItemOperational status. Set to Active for general use.
typeItemMust be STOCK for sellable variants.
colorAdditionalPropertyColor of the variant.
sizeAdditionalPropertySize of the item.
styleAdditionalPropertyClassifies products that share characteristics not varying by GTIN.
brandItemBrand name.
parentIdItemstring

Additional Properties for Apparel and Sporting Goods

Retailers may extend Items with properties like Season or Age. These can be applied to both Model and Variant Items.

Additional Properties
PropertyMember ofDescription
SeasonNameAdditionalPropertyName of the season (e.g., "Winter").
SeasonCodeAdditionalPropertyCode for the season (e.g., WINTER, SPRING).
SeasonYearAdditionalPropertyYear of the season (e.g., 2024).
SportingActivityTypeAdditionalPropertyActivity type (e.g., FOOTBALL, RUNNING).
TargetGenderAdditionalPropertyTarget consumer gender (e.g., MALE).
TargetConsumerAgeAdditionalPropertyTarget age range.
ItemVariantCategoryTypeAdditionalPropertyCategory of Model Item (e.g., SHIRT, JACKET).