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