Skip to content
For AI agents: the complete documentation index is available at llms.txt; this page is also available as Markdown at index.md.

CreatedAt Criterion

The CreatedAt Search Criterion searches for products based on the date when they were created.

Arguments

  • created_at - indicating the date that should be matched, provided as a string acceptable byDateTimeInterface constructor
  • operator - Operator value

Operators

Value Description
= Matches products updated exactly on the given date (default)
> Matches products updated after the given date
>= Matches products updated on or after the given date
< Matches products updated before the given date
<= Matches products updated on or before the given date

Example

You can use this Search Criterion over the REST API, in the payload of the POST /product/catalog/products/view request:

1
2
3
4
5
6
7
8
<ProductQuery>
    <Filter>
        <CreatedAtCriterion>
            <created_at>2023-06-12</created_at>
            <operator>>=</operator>
        </CreatedAtCriterion>
    </Filter>
</ProductQuery>
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
{
  "ProductQuery": {
    "Filter": {
      "CreatedAtCriterion": {
        "created_at": "2023-06-12",
        "operator": ">="
      }
    }
  }
}