0

I'm trying to filter products using rest api magento 2. For that I'm using

http://domainnamehere.com/index.php/rest/V1/products/?searchCriteria[filter_groups][0][filters][0][field]=category_id&searchCriteria[filter_groups][0][filters][0][value]=3&searchCriteria[filterGroups][0][filters][0][field]=size&searchCriteria[filterGroups][0][filters][0][value]=7&searchCriteria[filter_groups][1][filters][0][field]=status&searchCriteria[filter_groups][1][filters][0][value]=1&searchCriteria[filter_groups][1][filters][0][field]=visibility&searchCriteria[filter_groups][1][filters][0][value]=4&searchCriteria[filter_groups][1][filters][0][condition_type]=eq

If I change the sequence of these filters in API request. I'm getting different result.

For Size and Color Attributes, whenever I'm trying to filter products using size and color, I'm getting simple products instead of configurable products. Since only simple products have these attributes value.

How Can I get configurable products using size and color attributes filter?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.