Skip to main content
input_object

Filter criteria for historical events.

•[EventType!]

Filter events by one or more event types.

•DateTime

Filter events that occurred on or before this date. If only this is provided, occurred_at_min defaults to this date - 30 days. Defaults to now if neither date is provided. Maximum range between occurred_at_min and occurred_at_max is 365 days.

•DateTime

Filter events that occurred on or after this date. If only this is provided, occurred_at_max defaults to the earlier of this date + 30 days or now. Defaults to 30 days ago if neither date is provided. Maximum range between occurred_at_min and occurred_at_max is 365 days.

•ID

Filter events by shop ID. Example value: gid://shopify/Shop/1234.

•ID

Filter events by subject ID. Example value: gid://shopify/App/1234.

•SubjectType

Filter events by subject type (APP or THEME).


Was this section helpful?