You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To filter products on their categories, use the property `categories`.
43
43
Here are the allowed operators you can use to filter on the category code as well as the corresponding type of value expected in the `search` query parameter.
@@ -59,7 +59,7 @@ To get the products of the `winter_collection` category, you can use the followi
59
59
```
60
60
61
61
62
-
### On status
62
+
### On their status
63
63
64
64
To filter products on their status, use the `enabled` property.
65
65
Here are the allowed operators you can use to filter on the status as well as the corresponding type of value expected in the `search` query parameter.
@@ -76,7 +76,7 @@ To get the disabled products, you can use the following URL.
To filter products on their completeness, use the `completeness` product property. You will also need to provide a `scope` value to specify on which channel you want to filter with the completeness.
82
82
Here are the allowed operators you can use to filter by completeness as well as the corresponding type of value expected in the `search` query parameter.
@@ -103,7 +103,7 @@ To get the products that are 100% complete on both the `en_US` and `fr_FR` local
103
103
/api/rest/v1/products?search={"completeness":[{"operator":"GREATER OR EQUALS THAN ON ALL LOCALES","value":100,"locales":["en_US","fr_FR"],"scope":"ecommerce"}]}
104
104
```
105
105
106
-
### On group or family
106
+
### On their group or family
107
107
108
108
To filter products on groups or families, use respectively the product property `groups` and `family`.
109
109
Here are the allowed operators you can use to filter on these properties as well as the corresponding type of value expected in the `search` query parameter.
@@ -128,7 +128,7 @@ To get the products that are not in the `camcorders` and `digital_cameras` famil
To filter products on creation or update date, use respectively the product property `created` and `updated`.
134
134
Here are the allowed operators to filter on these properties as well as the corresponding type of value expected in the `search` query parameter.
@@ -160,6 +160,25 @@ To get the products that were updated during the last 4 days, you can use the fo
160
160
/api/rest/v1/products?search={"updated":[{"operator":"SINCE LAST N DAYS","value":4}]}
161
161
```
162
162
163
+
164
+
### On their parent
165
+
166
+
To get the variant products of a given product model, use the filter called `parent`.
167
+
For now, this filter only accepts one operator: `=`. It expects a code of a product model, given as a string. This product model can be either a root product model or a sub product model.
168
+
169
+
#### Examples
170
+
To get all the variant products of the root product model with the code `tshirt_armor`, you can use the following URL.
0 commit comments