v1

latestOpenAPI 3.0.12026-07-1318302.2 MB
orders

Query stats on orders

Stats are aggregations that summarize your data within an operator (depending of the field, some of them could not be available), such as: value_count, cardinality, avg, min, max, sum or stats (which returns avg, min, max, sum) computed on the field specificed. When performing a stats query on the Metrics API endpoint you get in the response the value of the computation (based on the selected operator) on the selected field.

Stats request

{ "stats": { "field": "order.total_amount_cents", "operator": "stats" } }

post/orders/stats

Response

The stats result from orders