1

Tried using the url below to get all sub-categories, but it retuns all categories without filtering.

http://127.0.0.1/magento/index.php/rest/V1/categories/?searchCriteria[filter_groups][0][filters][0][field]=level&searchCriteria[filter_groups][0][filters][0][value]=3&searchCriteria[filter_groups][0][filters][0][condition_type]=eq

Is categories not support searchCriteria?

3
  • These search criteria applies to all API classes/interfaces which implements the method: getList(\Magento\Framework)
    – Rushvi
    Commented Oct 3, 2016 at 13:10
  • Thanks, CategoryManagementInterface does not have getList() function, it has only getTree() which does not support searchCriteria.
    – Ricky.C
    Commented Oct 4, 2016 at 1:14
  • check this magento.stackexchange.com/questions/314994/… if you still look for an answer Commented Jun 18, 2020 at 9:41

1 Answer 1

0

yes it will give you all category what you have to do now you have to filter in response Code

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.