Dictionary

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

Examples

Example 1

{
    "name": "...",
    "groups": [
        {
            "name": "...",
            "value": 18,
            "count": 16,
            "extra": {
                "email": "...",
                "email_when_newsletter": false
            }
        },
        {
            "name": "...",
            "value": 14,
            "count": 12,
            "extra": {
                "email": "...",
                "email_when_newsletter": true
            }
        },
        {
            "name": "...",
            "value": 16,
            "count": 11,
            "extra": {
                "email": "...",
                "email_when_newsletter": false
            }
        }
    ],
    "average": 16,
    "total": 13,
    "count": 19
}
1.9.0 stable