[REST API] Filter products on attribute
-
We have a product attribute for manufacturer’s SKU, and sometimes need to make calls to the products REST API endpoint filtering on that attribute (returning a single product, obviously, but thats not the main issue). I just can’t figure out how the parameters should be formatted.
The documentation for filtering on attributes seems to refer to global attributes, which have a “proper” slug if I understand correctly. But when we set up the shop we got the impression that global attributes was intended for things that we maybe wanted to be able to filter by in the frontend, which is why we settled for using custom attributes per product (all using the same label, obviously).
Are we looking at things from the wrong end? Is there a better way to store these values that would let us filter properly via the API?
Cheers!
The topic ‘[REST API] Filter products on attribute’ is closed to new replies.