About filter
parameter.
Format: filter[range]=new_season,sale&filter[size]=98
The filters are unique and generated for you q
parameter, then returned right in the response, the key is facets
. For example, you search for “black dress” and need to filter by “Style”, when you check the response pay attention at “facets” here you can see array with "id":"attribute_1046"
and "name":"Style"
, next check "facetValues"
for this array. In this data you can see an array with "id":"62000"
and "name":"Backless"
. So your filter
will be: filter[attribute_1046]=62000
. If you need more styles just add a new id by comma filter[attribute_1046]=62000,8314
(“id”:“8314” -> “name”:“A Line”). Also you can add a new filter attribute (“id”:“attribute_10155” -> “name”:“Body Fit”) filter[attribute_1046]=62000,8314&filter[attribute_10155]=6764