Income Reports

Income / sales specific reports

Sum

Get sum of all sales

GET https://api.pesatime.com/v1/reports/sum

Request Body

Name
Type
Required
Description

date_from

Date

yes

Date from in format - YYYY-MM-DD

date_to

Date

yes

Date to in format - YYYY-MM-DD

groupBy

Object

no

Follows mongodb grouping standards. See below instructions for grouping. properties allowed for grouping -

date -> $date
-----
Example
------
{
    "date": {
        "$dateToString": {
            "format": "%2025-%01-%01",
            "date": "$date"
        }
    }
}

Last updated

Was this helpful?