Breakdown
A comprehensive list of the breakdown query keys, allowed fields values, and operators for the cart resource
To perform a breakdown query on the cart resource send a POST
request to the /carts/breakdown
endpoint specifying the query keys and filter parameters like in the generic example below:
Please find more information on how breakdown queries work here.
Query keys
These are the keys you need to set when performing a breakdown query:
Key | Type | Required | Description | Values |
---|---|---|---|---|
| String | The field you want the results of the query aggragated by. | See the related table to check the full list of valid values for this key. | |
| String | The field of the resource you want the metrics or statistics computed on. | See the related table to check the full list of valid values for this key. | |
| String | The computing operator. | See the related table to check the full list of valid operators based on the value you assigned to the | |
| Object | An additional constraint to fine-tune the set of records shown in the response, applied to the computed results of the query. It is available for operators that return single numeric (float or integer) values. | One of:
| |
| String | The way you want the results of the query to be sorted. | One of | |
| Integer | The maximum number of records shown in the response. | Default is | |
| Object | The optional nested breakdown. | See the related table to check full list of valid values for the nested breakdown |
Operators and field
values
field
valuesThese are the valid values you can specify for the field
key of the breakdown query and the related valid operators, based on that key:
Value | Operators |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Nestable breakdowns and by
values
by
valuesThese are the valid values you can specify for the by
key of the breakdown query and the related forbidden values for the by
key of the nested breakdown, based on the by
key of the parent breakdown (i.e. for each row of the table below the full list of the valid values for the by
key of the nested breakdown is given by all the values in the "Value" column except the values in the row's "Forbidden nesting" cell):
Value | Forbidden nesting |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
| |
| |
| |
| |
| |
| |
| |
|
|
|
|
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
|
Remember also that you cannot group the nested breakdown by the same field by which you're already grouping the parent breakdown.
Last updated