# Income Reports

## Sum

Get sum of all sales

<mark style="color:green;">`GET`</mark> `https://api.pesatime.com/v1/reports/sum`

#### Request Body

<table><thead><tr><th width="143.75">Name</th><th width="115.421875">Type</th><th width="111.5234375">Required</th><th>Description</th></tr></thead><tbody><tr><td>date_from</td><td>Date</td><td><mark style="color:red;">yes</mark></td><td>Date from in format - YYYY-MM-DD</td></tr><tr><td>date_to</td><td>Date</td><td><mark style="color:red;">yes</mark></td><td>Date to in format - YYYY-MM-DD</td></tr><tr><td>groupBy</td><td>Object</td><td>no</td><td><p>Follows mongodb grouping standards. See below instructions for grouping.<br>properties allowed for grouping - </p><pre class="language-json"><code class="lang-json">date -> $date
-----
Example
------
{
    "date": {
        "$dateToString": {
            "format": "%2025-%01-%01",
            "date": "$date"
        }
    }
}
</code></pre></td></tr></tbody></table>
