younifyd
Menu

Get shop categories for given filters

Get shop categories for given filters

GET/shops/{shopKey}/categories

Use it in a workflow

  1. Add a step and choose the SCAYLE Admin connector.
  2. Pick the Get shop categories for given filters action (under ShopCategories).
  3. Fill in the fields below, then reference the result from later steps as {{getShopCategoriesForGivenFilters.response.data}}.

Request

Path parameters

shopKeystringrequired

The shop key.

Query parameters

limitinteger

Maximum number of entities in the result. When fetching entities with children, the limit always applies to the amount of parent entities (max. 1000).

Default 100

filters[id]array<integer>

Comma-separated list of IDs of entities that should be used for filtering.

filters[minId]integer

Minimum (inclusive) ID of entities that should be returned.

filters[maxId]integer

Maximum (inclusive) ID of entities that should be returned.

sortstring

Sort by the provided column.

One ofidDefault "id"

sortDirstring

Sort ascending or descending

One ofascdescDefault "asc"

cursorstring

Valid cursor used for pagination.

filters[parentId]integer

Filter shop categories by parent ID.

witharray<string>

Comma-separated list of additional properties that should be included in the response.

Response

Returns 200 with an object. Read it in later steps with {{getShopCategoriesForGivenFilters.response.data.<field>}}.

entitiesarray<object>
idinteger

The ID of the shop category.

parentIdinteger

The ID of the parent shop category.

leftSiblingIdinteger

The ID of the left sibling shop category. It defines the shop category position in the category tree.

nameobject

The localized category name.

productSetsarray<object>6 fields

Product sets define which products to include in the shop category.

supportedFilterGroupsarray<string>

List of supported filter groups.

propertiesarray<object>2 fields

The properties assigned to the shop category. Can be specified on creation only.

isActiveboolean

Declares whether the shop category is active or not. Can be specified on creation only.

isVisibleboolean

Declares whether the shop category is visible in the shop or not. Can be specified on creation only.

isExcludedFromSearchboolean

Declares whether the shop category should be excluded from search.

isIncludedInSearchWhenInvisibleboolean

Declares whether the shop category should still be included in search results while it is invisible.

Default false

customDataany

Arbitrary fields assigned to shop categories

countriesarray<object>13 fields

List of country specific configurations.

cursorobject
nextstring

The cursor pointing to the next page. If null there is no next page available.

json
{
  "entities": [
    {
      "id": 3,
      "parentId": 1,
      "leftSiblingId": 2,
      "name": {
        "de_DE": "Meine Shop-Kategorie",
        "en_GB": "My Shop Category"
      },
      "productSets": [
        {
          "productSetId": 3,
          "referencedProductSetId": 0,
          "includeProductIds": [
            0
          ],
          "excludeProductIds": [
            0
          ],
          "isNew": true,
          "attributes": [
            {
              "name": null,
              "include": null,
              "exclude": null
            }
          ]
        }
      ],
      "supportedFilterGroups": [
        "string"
      ],
      "properties": [
        {
          "key": "myKey",
          "value": "myValue"
        }
      ],
      "isActive": true,
      "isVisible": true,
      "isExcludedFromSearch": true,
      "isIncludedInSearchWhenInvisible": false,
      "customData": null
    }
  ],
  "cursor": {
    "next": "MQ=="
  }
}

Need more? See the SCAYLE Admin guide for connection setup and behaviour shared by every action.