Filtering is only possible for a subset of fields. template_suffix and tags are both unsupported. Products List REST API Reference.
You can’t filter by template_suffix in graphql, but you can filter by tags. As the REST API is deprecated, we recommend you move to graphql if possible. Products Graphql API Reference
@jsharps I can’t use GraphQl here as the data that I need everything like vendor, template_suffix, title, image, page urls, tags, description etc are available only above REST api that I shared
Vendor is there in the same object. I’m able to filter products by vendor. But not by any other keys. My main concern is to filter data with tags/template_suffix as I’m currently using above api that I shared to display products. But I’m unable filter data after user selects any category (template_suffix) as the api itself is not accepting.
Plz check & suggest on this as it’s a very important for my business.
@Luke Will I get all data like vendor, IDs, template_suffix, title, description, image, page urls etc as I got in REST api shared above for all products to display if I use GraphQl and filter out based on user selection for any key to get specific products to meet above mentioned my request?
If so, please share the resources for the same to help me out
As I said per my last response, you’re not passing category in the request so it won’t be returned. I’d suggest studying a bit more how GraphQL works to understand the basics of it.