All the available Commerce Layer Metrics API query types and the supported operators
Commerce Layer Metrics API lets you retrieve metric data and statistics through four types of queries:
Breakdown, date breakdown, and stats queries return aggregated metrics computed on the values of specific fields, based on selected operators. The search query is an actual search, returning the specified fields of the matching records.
To perform breakdown, date breakdown, and stats queries you need to specify the operator you want to use to compute the calculation on the selected field. The valid operators depend on the field itself, hence on the resource you're doing statistics on. You can find here below the complete list of the available operators for the Metrics API queries (see the related tables to check the subset of valid operators by field for orders, returns, or carts).