Skip to main content

GET Category and any of its child categories, if any by category ID

GET 

/v/c/:categoryId

Provides the ability to retrieve complete information about an existing category.

Returns


Specify the unique identifier of the category either from the category creation request or from the Category Tree, and the endpoint will return complete information about the corresponding category, structured data of its child categories, and information about the number of products in that category.

Returns an Error if an invalid category identifier was specified.

Request

Path Parameters

    categoryId integerrequired

    unique PIMS internal category ID

Responses

success

Schema
    status stringrequired

    The status of the API request. A value of "OK" indicates that the request was successfully sent and processed.

    currentCategory object[]required
  • Array [
  • id integerrequired

    Automatically calculated value that represents a unique PIMS internal category ID. You can use to retrieve more details about the category.

    cat_name stringrequired

    The name of the category identified by categoryId.

    cat_parent_id integerrequired

    The relative path of the category that is calculated and uses '>' as a separator for the unique category ID.

    cat_path_id stringrequired

    The calculated relative path of the category, uses '>' as a unique category ID separator.

    cat_path stringrequired

    The calculated relative path of the category, uses '>' as a category name separator.

    cat_data objectrequired

    Metadata associated with the category. Extendable

    status string

    Describes the activity status of the category. In the context of GET API requests, categories are filtered based on their status, and only categories with the active status will be returned. If the status is not explicitly specified, the category is considered active by default and will be included in the query results.

    cat_image string

    The path for the image of the category.

    cat_rank integer

    A numerical classification for the category's rank.

    cat_filters object[]

    Is an array of filters used to filter data by attribute products in this category, and its structure and number of elements depend on the PIM settings. The following is an example of one possible structure.

  • Array [
  • anyOf
    filter_name stringrequired

    The name of the filter.

    filter_values object[]required

    An array of values for the filter, with each item having a "label" and "value" option.

  • Array [
  • label stringrequired

    The label option for the filter value.

    value stringrequired

    The value option for the filter value.

  • ]
  • filter_var stringrequired

    The attribute name by which products will be filtered within this category.

    filter_type stringrequired

    Possible values: [multiselect, dropdown]

    The type of the filter.

  • ]
  • sku_count integerrequired

    The number of parts in this category.

  • ]
  • childCategories object[]

    Structured category data for children of current category

  • Array [
  • cat_rank integerrequired

    A numerical classification for the category's rank.

    cat_order integerrequired

    The proper sorting order for the categories when displayed in a user interface.

    id integerrequired

    Automatically calculated value that represents a unique PIMS internal category ID. You can use to retrieve more details about the category.

    cat_name stringrequired

    The name of the category identified by categoryId.

    cat_data object
    cat_image stringrequired

    The path for the image of the category.

  • ]
Loading...