Actions107
- Account Actions
- Container Actions
- Delivery Actions
- Notification Actions
- Order Actions
- Statistics Actions
- Voucher Actions
- WebHook Actions
Container → Create Statistics Query
AI-generatedSummary
Builds a protobuf JSON StatisticsQuery for use with Orderly’s List Stats action. The builder starts with Additional Query JSON, then applies the account, statistic type IDs, From date, and increment fields before converting the result to the Orderly schema.
Inputs
- Account ID JSON — Whole AccountId object; defaults from the incoming item’s
AccountIdproperty. Leave empty to omit it. - Statistic Type IDs — Comma-separated StatisticId values. Each trimmed, non-empty value becomes an entry in the query’s
Typesarray. - From — Date/time value assigned to the query’s
Fromfield when provided. - Increment — Statistic aggregation interval: Unknown, Hourly, Daily, Weekly, Monthly, or Yearly. Defaults to Daily.
- Additional Query JSON — JSON object supplying advanced query fields. The listed fields are applied afterward, overriding matching keys. Defaults to
{}.
Output shape
One item per input item, containing a StatisticsQuery JSON object.
The result is normalized through the Orderly protobuf schema, which omits implicit default values and ignores unknown fields. Invalid JSON objects or incompatible values can cause an error; with Continue On Fail enabled, that input item instead returns an
errorfield.