v1
latestOpenAPI 3.0.12026-07-1318302.2 MBreturns
Query stats on returns
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": "return_line_items.line_item_total_amount", "operator": "stats" } }
post/returns/stats
Response
The stats result from returns