Search

getSalesTotalsByEmployeeAndDay

Get recent daily sales totals by employee.

This a concise data set that suits best for displaying a graph. To get a full sales report, see getSalesReport.

See also getSalesTotalsByEmployeeAndMonth, getSalesTotalsByWarehouseAndDay, and getSalesTotalsByWarehouseAndMonth.

Input parameters

Parameter nameDescriptionPossible valueRequired
numberOfGroups

Number of employees to retrieve. By default, API returns 50 employees (top employees by total sales during the selected period).

50 is also the largest number that can be requested, but this limit can be changed with a configuration parameter.

integer
numberOfPeriods

Number of days. Specifying numberOfPeriods = 5 will return data for the last 5 days, including today.

By default, API returns last 30 days. 30 is also the largest number that can be requested, but this limit can be changed with a configuration parameter.

integer
warehouseIDLocation IDinteger

Response

Field nameTypeDescription
totalDoubleTotal sales. In US, this is net sales total. In other countries, this is the sales total with VAT.
dateISO date (yyyy-mm-dd)
employeeIDInteger