Date breakdown
A comprehensive list of the date breakdown query keys, allowed fields values, and operators for the order resource
To perform a date breakdown query on the order resource send a POST
request to the /orders/date_breakdown
endpoint specifying in the payload the query keys and filter parameters like in the generic example below:
Please find more information on how date breakdown queries work here.
Query keys
These are the keys you need to set when performing a date breakdown query:
Key | Type | Required | Description | Values |
---|---|---|---|---|
| String | The date 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 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 | |
| String | The time interval over which the metrics / stats are computed. The results will be aggregated by date accordingly. | One of | |
| Object | The optional breakdown (eventually nested). | See the related section for any information about the breakdown query. |
by
values
by
valuesThese are the valid values you can specify for the by
key of the date breakdown query:
Value | Description |
---|---|
| The date and time at which the order was approved (complete date plus hours, minutes and seconds — according to the ISO 8601 standard). |
| The date and time at which the order was archived (complete date plus hours, minutes and seconds — according to the ISO 8601 standard). |
| The date and time at which the order was cancelled (complete date plus hours, minutes and seconds — according to the ISO 8601 standard). |
| The date and time at which the order was created (complete date plus hours, minutes and seconds — according to the ISO 8601 standard). |
| The date and time at which the order's fulfillment status was last updated (complete date plus hours, minutes and seconds — according to the ISO 8601 standard). |
| The date and time at which the order's payment status was last updated (complete date plus hours, minutes and seconds — according to the ISO 8601 standard). |
| The date and time at which the order was placed (complete date plus hours, minutes and seconds — according to the ISO 8601 standard). |
| The date and time at which the order was last updated (complete date plus hours, minutes and seconds — according to the ISO 8601 standard). |
| The date and time of the order's latest status change, regardless of the order's status (complete date plus hours, minutes and seconds — according to the ISO 8601 standard). |
| The date and time at which the shipment status was cancelled (complete date plus hours, minutes and seconds — according to the ISO 8601 standard). |
| The date and time at which the shipment status was put on hold (complete date plus hours, minutes and seconds — according to the ISO 8601 standard). |
| The date and time at which the shipment was picked (complete date plus hours, minutes and seconds — according to the ISO 8601 standard). |
| The date and time at which the shipment was packed (complete date plus hours, minutes and seconds — according to the ISO 8601 standard). |
| The date and time at which the shipment was ready to ship (complete date plus hours, minutes and seconds — according to the ISO 8601 standard). |
| The date and time at which the shipment was shipped (complete date plus hours, minutes and seconds — according to the ISO 8601 standard). |
| The date and time at which the shipment was created (complete date plus hours, minutes and seconds — according to the ISO 8601 standard). |
| The date and time at which the shipment was updated (complete date plus hours, minutes and seconds — according to the ISO 8601 standard). |
Operators and field
values
field
valuesThese are the valid values you can specify for the field
key of the date breakdown query and the related valid operators, based on that key:
Value | Operators |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Last updated