younifyd
Menu

Get categories/list

Get categories/list

GET/V1/categories/list

Use it in a workflow

  1. Add a step and choose the Adobe Commerce connector.
  2. Pick the Get categories/list action (under Categories).
  3. Fill in the fields below, then reference the result from later steps as {{getCategoriesList.response.data}}.

Request

Query parameters

searchCriteria[filterGroups][0][filters][0][field]string

Field

searchCriteria[filterGroups][0][filters][0][value]string

Value

searchCriteria[filterGroups][0][filters][0][conditionType]string

Condition type

searchCriteria[sortOrders][0][field]string

Sorting field.

searchCriteria[sortOrders][0][direction]string

Sorting direction.

searchCriteria[pageSize]integer

Page size.

searchCriteria[currentPage]integer

Current page.

Response

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

itemsarray<object>

Categories

idinteger

Category id.

parent_idinteger

Parent category ID

namestring

Category name

is_activeboolean

Whether category is active

positioninteger

Category position

levelinteger

Category level

childrenstring

Children ids comma separated.

created_atstring

Category creation date and time.

updated_atstring

Category last update date and time.

pathstring

Category full path.

available_sort_byarray<string>

Available sort by for category.

include_in_menuboolean

Category is included in menu.

extension_attributesobject

ExtensionInterface class for @see \Magento\Catalog\Api\Data\CategoryInterface

custom_attributesarray<object>2 fields

Custom attributes values.

search_criteriaobject

Search criteria interface.

filter_groupsarray<object>required1 fields

A list of filter groups.

sort_ordersarray<object>2 fields

Sort order.

page_sizeinteger

Page size.

current_pageinteger

Current page.

total_countinteger

Total count.

json
{
  "items": [
    {
      "id": 0,
      "parent_id": 0,
      "name": "string",
      "is_active": false,
      "position": 0,
      "level": 0,
      "children": "string",
      "created_at": "string",
      "updated_at": "string",
      "path": "string",
      "available_sort_by": [
        "string"
      ],
      "include_in_menu": false
    }
  ],
  "search_criteria": {
    "filter_groups": [
      {
        "filters": [
          {
            "field": "string",
            "value": "string",
            "condition_type": "string"
          }
        ]
      }
    ],
    "sort_orders": [
      {
        "field": "string",
        "direction": "string"
      }
    ],
    "page_size": 0,
    "current_page": 0
  },
  "total_count": 0
}

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