Category | Sub-Categories | Products |
---|---|---|
Lamps | ||
Ceiling Lamps | ||
Atlas Pendant Ceiling Lamp | ||
Apollo Pendant Ceiling Lamp | ||
Table Lamps | ||
Hudson Table Lamp | ||
Luminary Table Lamp |
style
attribute for all the products.
- Create the
style
attribute with the valuesmodern
,traditional
, andrustic
using theproduct-attributes
endpoint. This attribute distinguishes lamps by aesthetic, and is defined with theOPTIONS
type to support multiple accepted values. IfisMandatory
is set totrue
, any product associated with the attribute must include one of the accepted values. The request returns a unique attribute ID, which you’ll need when mapping attributes later in the process.
- Create the
lamps
category using thecategories
endpoint. This serves as the top-level group for all lamp-related products. After a successful request, the response will return a category ID—keep this ID on hand, as you’ll use it when creating sub-categories in the next step.
--location \
- Create the
ceiling lamps
andtable lamps
subcategories using the bulk insert API. In the request body, provide theparentCategoryId
from thelamps
category created in Step 2. You can optionally enable localization support using theisLocalizable
field and define localized names underlocalizedProperties
.
- Map the
style
attribute to thelamps
category using thecategories
endpoint. SetisMandatory
totrue
to ensure that all products in this category and its subcategoriesceiling lamps
andtable lamps
must include astyle
value. This attribute mapping ensures consistency across the product hierarchy and streamlines catalog validation. Use the attribute ID returned when thestyle
attribute was created.
- Create four
live
status products, each assigned to either theceiling lamps
ortable lamps
subcategory. To enable variants, include theparentProduct
field for each variant entry. Use the bulk insert API to add the base products along with their attributes, such asstyle
,name
,SKU
, and image URL. Variants will inherit the category and must meet any mandatory attribute requirements defined earlier.
- Create a
sale
category forModern Style Furniture
andCyber Monday
- Create the parent collection,
sale
.
- Create the sub category
Current Sales
. TheparentCollectionID
is returned from the previous response when creating the parent collectionsale
.
- Create the
Modern Style Furniture
andCyber Monday
categories.
- Optionally, you can include products in a sale tab by filtering for specific attributes using
productAttributeFilters
.