As using custom attributes is deprecated in the ProductInterface object, but on getting the attribute list by custom_attributes, we have the list of all sets of attributes per product.
The problem comes when it needs to get several attributes on the PLP, but as a result, all list is returned.
Solution Overview
Add the input components on the custom_attributes field to filter the returned list of attributes by the used_in_components - of strict list CustomAttributesListsEnum enum.
The components input is not required to be used on the query.
Overview of the issue
As using custom attributes is deprecated in the
ProductInterface
object, but on getting the attribute list bycustom_attributes
, we have the list of all sets of attributes per product. The problem comes when it needs to get several attributes on the PLP, but as a result, all list is returned.Solution Overview
Add the input
components
on thecustom_attributes
field to filter the returned list of attributes by theused_in_components
- of strict listCustomAttributesListsEnum
enum. Thecomponents
input is not required to be used on the query.Syntax
Request/Response Samples
1. Query without filter
Request
Response
2. Query with one component
Request
Response
3. Query with two components
Request
Response