This article presents possible use cases and corresponding sample flows that you can support. This can be a helpful jumping off point as you plan your implementation.
Organize your product catalog by creating categories and subcategories.
To create a category hierarchy:
Call Create Category with the category details. For top-level categories, omit the parentCategory field:
Save the category.id from the response.
Call Create Category again to create a subcategory, including the parent category ID in parentCategory.id:
Add products to a category and specify their display order.
To add and arrange products:
Call Bulk Add Items To Category with the category ID and product references. Use the Wix Stores app ID ("215238eb-22a5-4c36-9e7b-e7c08025e04e") for appId:
Call Set Arranged Items with the products in the desired display order.
To ensure the products are displayed in the arranged order, call List Items In Category with useCategoryArrangement: true:
Reorganize your category hierarchy by moving a category to a different parent category.
To move a category to a new parent:
Identify the category you want to move and the ID of the new parent category.
Call Move Category with the category ID in the path and the new parent category ID:
The position field determines where the category appears among its new siblings. Options include FIRST, LAST, or a specific index.
Retrieve all subcategories belonging to a parent category in their display order.
To list subcategories:
Call Search Categories with a filter for the parent category ID and sort by parentCategory.index: