Actions107
- Account Actions
- Container Actions
- Delivery Actions
- Notification Actions
- Order Actions
- Statistics Actions
- Voucher Actions
- WebHook Actions
Voucher → Create Statistics Query
AI-generatedSummary
Builds an Orderly StatisticsQuery protobuf JSON object for use with List Stats, combining the supplied account, statistic types, start time, increment, and any advanced query fields.
Inputs
- Account ID JSON — Whole AccountId object; defaults from the incoming item's AccountId property when present. Leave empty to omit it.
- Statistic Type IDs — Comma-separated StatisticId values. Each non-empty value becomes a Types entry with an Id.
- From — Start time for the statistics query, included as From when provided.
- Increment — Aggregation interval: Unknown, Hourly, Daily, Weekly, Monthly, or Yearly. Defaults to Daily.
- Additional Query JSON — Advanced query fields merged first; the common fields above are applied afterward and can override matching fields.
Output shape
A single n8n item containing the StatisticsQuery object in its JSON body for each input item.
The object is converted through the Orderly protobuf schema, which omits unset fields and ignores unknown JSON fields. Invalid JSON or a non-object value for Account ID JSON or Additional Query JSON causes an error; with Continue On Fail enabled, that input item instead returns an error field.