Criteria Input

Input representation of the filter criteria item request.

JSON Example

1"criteria":
2[{
3   "attributeType": "ProductStandard",
4   "property": "name",
5   "operator": "eq",
6   "value": "iPhone"
7},
8{
9   "criteriaType": "CustomWhereCondition",
10   "value": "(effectiveenddate = null OR effectiveenddate >= 2024-06-25)"
11}
12]

Properties

NameTypeDescriptionRequired or OptionalAvailable Version
attributeTypeStringSearch attribute type of the facet for a faceted search. Valid values are ProductStandard, ProductCustom, ProductDynamicAttribute, ProductAttributeStandard, or ProductAttributeCustom. This property is applicable if the Use Indexed Data For Product Listing and Search toggle from the Product Discovery Settings page from Setup is enabled.Optional63.0
criteriaTypeStringType of criteria for the filter. Valid value is CustomWhereCondition.Required60.0
operatorStringOperator used for the filter criteria.Required60.0
propertyStringProperty name to use in the filter, which must be the same as the object field.Required60.0
valueObjectValue for the filter criteria.Required60.0

The supported operators are:

  • eq
  • in
  • contains—This value isn’t applicable if the Use Indexed Data For Product Listing and Search toggle from the Product Discovery Settings page from Setup is enabled.
  • gt—Specifies a greater than criteria. Available from API version 63.0 and later for Number, Date, and Datetime data types only.
  • lt—Specifies a less than criteria. Available from API version 63.0 and later for Number, Date, and Datetime data types only.
  • gte—Specifies a greater than or equal to criteria. Available from API version 63.0 and later for Number, Date, and Datetime data types only.
  • lte—Specifies a less than or equal to criteria. Available from API version 63.0 and later for Number, Date, and Datetime data types only.