| 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
styleattribute with the valuesmodern,traditional, andrusticusing theproduct-attributesendpoint. This attribute distinguishes lamps by aesthetic, and is defined with theOPTIONStype to support multiple accepted values. IfisMandatoryis 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
lampscategory using thecategoriesendpoint. 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 lampsandtable lampssubcategories using the bulk insert API. In the request body, provide theparentCategoryIdfrom thelampscategory created in Step 2. You can optionally enable localization support using theisLocalizablefield and define localized names underlocalizedProperties.
- Map the
styleattribute to thelampscategory using thecategoriesendpoint. SetisMandatorytotrueto ensure that all products in this category and its subcategoriesceiling lampsandtable lampsmust include astylevalue. This attribute mapping ensures consistency across the product hierarchy and streamlines catalog validation. Use the attribute ID returned when thestyleattribute was created.
- Create four
livestatus products, each assigned to either theceiling lampsortable lampssubcategory. To enable variants, include theparentProductfield 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
salecategory forModern Style FurnitureandCyber Monday
- Create the parent collection,
sale.
- Create the sub category
Current Sales. TheparentCollectionIDis returned from the previous response when creating the parent collectionsale.
- Create the
Modern Style FurnitureandCyber Mondaycategories.
- Optionally, you can include products in a sale tab by filtering for specific attributes using
productAttributeFilters.
