Reports
Retrieve Daily Sales and Labor
get/v2/reports/daily_sales_and_labor
Request
- Base URLhttps://api.7shifts.com
- Auth
- OAuth 2Authorization codehttps://app.7shifts.com/oauth2/authorizeClient credentialsPasswordToken URLhttps://app.7shifts.com/oauth2/token
- or API key in cookie 7session
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
start_datestring required
Starting date for which you want the daily sales and labor data for.
end_datestring required
Ending date for which you want the daily sales and labor data for.
location_idinteger required
Location ID
department_idinteger
Department ID
Headers
x-api-versionstring
An API version
Example:2022-05-01
7shifts API version
x-company-guidstring uuid
Company GUID
Response
OK
Example response
{
"data": [
{
"date": "2020-01-01",
"actual_sales": 1234,
"projected_sales": 1234,
"projected_sales_override": 142,
"actual_labor_cost": 1234,
"projected_labor_cost": 1234,
"sales_per_labor_hour": 1.23,
"projected_sales_per_labor_hour": 1.23,
"items_per_labor_hour": 1.23,
"projected_items_per_labor_hour": 1.23,
"labor_percent": 1.23,
"id": 44,
"location_id": 123,
"department_id": 23,
"actual_items": 12,
"projected_items": 14,
"projected_items_override": 13,
"labor_target": 12.3,
"actual_labor_minutes": 142,
"projected_labor_minutes": 145,
"actual_ot_minutes": 23
}
]
}Changes
No recorded changes to this operation across all 2 revisions of this API.