Categories
Category routes manage product categories (ec_categories), matching the dashboard product-report Categories tab.
Category Data
- Use Categories.List with parent=0 for top-level categories, then parent=category_id for subcategories.
- Use Categories.Add/Edit/Update to create or change category title, description, parent, type, and related fields.
- Use Categories.Remove/Delete to hard-delete a category row.
Usage
- Load Categories.List before Products.Add so the UI can pick cat_id and sub_cat_id.
- Store category_id from list/add responses for later edit and remove calls.
Common Flow
- Load product permissions from User.Basic.
- Use Categories.List/Count for category screens and pickers.
- Use Categories.Get for one category.
- Use Categories.Add/Edit/Remove only when allowed.