The method allows you to get the main indicators of the location for the selected period and compare with the previous period of the same duration
Security
BearerPartnerUser
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/locations/{location_id}/analytics/overall
- Productionhttps://api.alteg.io/api/v1/locations/{location_id}/analytics/overall
curl -i -X GET \
'https://developer.alteg.io/_mock/en/b2b-v1/openapi/locations/{location_id}/analytics/overall?date_from=2019-08-24&date_to=2019-08-24&team_member_id=0&position_id=0&user_id=0' \
-H 'Accept: application/vnd.api.v2+json' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>'Response
{ "data": { "income_total_stats": { … }, "income_services_stats": { … }, "income_goods_stats": { … }, "income_average_stats": { … }, "income_average_services_stats": { … }, "fullness_stats": { … }, "record_stats": { … }, "client_stats": { … } }, "meta": [ {} ], "success": true }