A dictionary with fields
Field | Type | Description |
---|---|---|
name | String | The name you gave for these stats |
groups | [Dictionary] | Array of Dictionary |
average | Int | Correct average. Ignores groups when the group is a date and is in the future. |
total | Int | Total amount in cents |
count | Int | Total amount of orders |
{
"name": "...",
"groups": [
{
"name": "...",
"value": 15,
"count": 15,
"extra": {
"email": "...",
"email_when_newsletter": false
}
},
{
"name": "...",
"value": 17,
"count": 18,
"extra": {
"email": "...",
"email_when_newsletter": true
}
},
{
"name": "...",
"value": 11,
"count": 17,
"extra": {
"email": "...",
"email_when_newsletter": false
}
}
],
"average": 17,
"total": 15,
"count": 12
}