Category Object


A category for organizing items into a hierarchical structure.

Categories can be nested to create a multi-level hierarchy. Each category belongs to a specific category tree, identified by its treeReference. Each Wix Stores site has one category tree.

Note: Currently, only Wix Stores Catalog (V3) categories are supported. Pass appNamespace: "@wix/stores" in the treeReference for all API calls.

Properties
breadcrumbsInfoBreadcrumbsInfoRead-only

Category breadcrumbs, representing the path from the top-level ancestor category down to the parent of the current category.

Breadcrumbs are useful for building navigation UI and for SEO purposes. For top-level categories, the breadcrumbs list is empty.

Returned only when you pass "BREADCRUMBS_INFO" to the fields array.


createdDatestringRead-onlyformat date-time

Date and time the category was created.


descriptionstringminLength 1maxLength 600

Plain-text category description.

Returned only when you pass "DESCRIPTION" to the fields array.


extendedFieldsExtendedFields

Custom extended fields for the category object.

Extended fields must be configured in the app dashboard before they can be accessed with API calls.


idstringformat GUIDimmutable

Category ID.


imageImage

Category image.

  • Pass WixMedia image ID for media previously saved in the Wix Media Manager.
  • Pass full image URL to upload to Wix Media Manager.

itemCounterintegerRead-only

Number of items directly assigned to this category. Doesn't include items in subcategories.


managingAppIdstringformat GUIDimmutable

ID of the app responsible for managing items in this category.

When set, only the specified app can add or remove items from this category. This is useful for third-party apps that want to create categories exclusively managed by their app, preventing site owners or other apps from modifying the category's items.

You can get your app's ID from the app dashboard.


namestringminLength 1maxLength 80

Category name.


parentCategoryParentCategoryimmutable

Information about the category's parent. Top-level categories don't have a parent.


revisionstringRead-onlyformat int64

Revision number, which increments by 1 each time the category is updated. To prevent conflicting changes, the current revision must be passed when updating.

Ignored when creating a category.


richContentDescriptionRichContent

Category description using rich content.

Note: Returned only when you pass "RICH_CONTENT_DESCRIPTION" to the fields array in Categories API requests.

See Ricos document reference

seoDataSeoSchema

Custom SEO data for the category.


slugstringformat URL_SLUG

Category slug.

If not provided, the slug is autogenerated based on the category name.


treeReferenceTreeReferenceRead-only

Reference to the category tree this category belongs to.

When working with Wix Stores categories, always pass appNamespace: "@wix/stores" and treeKey: null.


updatedDatestringRead-onlyformat date-time

Date and time the category was updated.


visiblebooleanimmutable

Whether the category is visible to site visitors.

Visibility cascades to subcategories: if a parent category's visibility is set to false, all its subcategories become hidden as well. Setting a subcategory's visibility to true fails if any of its parent categories are hidden.

Notes:

  1. Hidden categories and their items are still accessible via API calls. For example, List Items In Category returns items even for hidden categories.
  2. The visible field can only be changed using the Update Category Visibility method.
  3. Default: true
Did this help?