User authentication and session management for B2B integrations
- Set team member schedules
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
Retrieves work schedules for team members as working intervals.
Optionally includes:
- Busy intervals (appointments and events)
- Off-day type identifiers
Query Parameters:
start_date/end_date- Date range for schedule searchstaff_ids[]- Filter by specific team membersinclude[]- Include additional data (busy_intervals, off_day_type)
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/company/{location_id}/staff/schedule
- Productionhttps://api.alteg.io/api/v1/company/{location_id}/staff/schedule
- 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/720441/staff/schedule?start_date=2026-01-31&end_date=2026-03-31&staff_ids=0&include=busy_intervals' \
-H 'Accept: application/vnd.api.v2+json' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: application/json'{ "success": true, "data": [ { … } ], "meta": { "count": 1 } }
Request
Sets work schedules for team members by date.
Supports both setting new schedules and deleting existing ones in a single request.
Returns the resulting schedules for affected team members within the date range from minimum to maximum modified date.
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/company/{location_id}/staff/schedule
- Productionhttps://api.alteg.io/api/v1/company/{location_id}/staff/schedule
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
https://developer.alteg.io/_mock/en/b2b-v1/openapi/company/720441/staff/schedule \
-H 'Accept: application/vnd.api.v2+json' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"schedules_to_set": [
{
"team_member_id": 12345,
"dates": [
"2026-01-31",
"2026-02-01"
],
"slots": [
{
"from": "10:00",
"to": "14:00"
},
{
"from": "15:00",
"to": "19:00"
}
]
}
],
"schedules_to_delete": [
{
"team_member_id": 12345,
"dates": [
"2026-02-02"
]
}
]
}'{ "success": true, "data": [ { … } ], "meta": { "count": 2 } }
Request
DEPRECATED: Use PUT /location/{location_id}/staff/schedule instead.
Updates the work schedule for a specific team member.
Working time intervals
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/schedule/{location_id}/{team_member_id}
- Productionhttps://api.alteg.io/api/v1/schedule/{location_id}/{team_member_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
https://developer.alteg.io/_mock/en/b2b-v1/openapi/schedule/720441/12345 \
-H 'Accept: application/vnd.api.v2+json' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: application/json' \
-d '[
{
"date": "2026-01-15",
"is_working": true,
"slots": [
{
"from": "10:00",
"to": "14:30"
},
{
"from": "15:00",
"to": "22:00"
}
]
},
{
"date": "2026-01-16",
"is_working": true,
"slots": [
{
"from": "10:00",
"to": "14:00"
},
{
"from": "15:00",
"to": "23:15"
}
]
}
]'