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": 17,
            "count": 16,
            "extra": {
                "email": "...",
                "email_when_newsletter": false
            }
        },
        {
            "name": "...",
            "value": 19,
            "count": 11,
            "extra": {
                "email": "...",
                "email_when_newsletter": true
            }
        },
        {
            "name": "...",
            "value": 15,
            "count": 10,
            "extra": {
                "email": "...",
                "email_when_newsletter": false
            }
        }
    ],
    "average": 17,
    "total": 11,
    "count": 10
}
Version update available Please adjust your integration to the latest stable version (1.9.0)
1.5.1 stable