Categories
Categories are the primary tree-shaped taxonomy for every tenant. Each
category can hold products directly or roll up its descendants' products
(depending on the aggregate flag).
Endpoints
GET
/api/b2b/pim/categoriesauth: sessionGET
/api/b2b/pim/categories/:slugauth: sessionPOST
/api/b2b/pim/categoriesauth: sessionPATCH
/api/b2b/pim/categories/:slugauth: sessionDELETE
/api/b2b/pim/categories/:slugauth: sessionPOST
/api/b2b/pim/categories/:slug/moveauth: sessionData shape
slug— tenant-unique stable identifier (URL-safe).parent_slug— null for root categories.name—MultiLangString.seo—{ title, description, og_image }per locale.aggregate— whether this category rolls up descendant products for storefront listings.
Notes
- Moving a category via the
/moveendpoint updates thepathof every descendant in a single transaction. - Deleting a non-empty category returns
409 Conflict; either move its products/children first, or pass?force=true(soft-archive).