User authentication and session management for B2B integrations
- Get occupancy data by day
Business Management (1.0.0)
Full-featured B2B API for business operations.
Base URL: https://api.alteg.io/api
V1 will be gradually deprecated. We recommend using V2 API for new integrations. V1 endpoints are maintained for backward compatibility, but new features will be released in V2 only.
Request
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
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/company/{location_id}/analytics/overall
- Productionhttps://api.alteg.io/api/v1/company/{location_id}/analytics/overall
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://developer.alteg.io/_mock/en/b2b-v1/openapi/company/{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>'{ "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 }
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/company/{location_id}/analytics/overall/charts/fullness_daily
- Productionhttps://api.alteg.io/api/v1/company/{location_id}/analytics/overall/charts/fullness_daily
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://developer.alteg.io/_mock/en/b2b-v1/openapi/company/{location_id}/analytics/overall/charts/fullness_daily?date_from=2019-08-24&date_to=2019-08-24&team_member_id=0&user_id=0' \
-H 'Accept: application/vnd.api.v2+json' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>'Occupancy by day
Data for each day. Each day is an array of two numbers. The first number is the timestamp of the beginning of the day in the UTC zone, the second number is the value of the indicator on that day.
[ { "label": "Working day occupancy, %", "data": [ … ] } ]
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/company/{location_id}/analytics/overall/charts/income_daily
- Productionhttps://api.alteg.io/api/v1/company/{location_id}/analytics/overall/charts/income_daily
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://developer.alteg.io/_mock/en/b2b-v1/openapi/company/{location_id}/analytics/overall/charts/income_daily?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>'Revenue by day
Data for each day. Each day is an array of two numbers. The first number is the timestamp of the beginning of the day in the UTC zone, the second number is the value of the indicator on that day.
[ { "label": "Revenue", "data": [ … ] } ]