User authentication and session management for B2B integrations
- Get list of appointments
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
- staff_id: team member ID.
Use this to retrieve appointments for a specific team member
- client_id: Client ID
Use this to retrieve appointments for a specific client
- created_user_id: User ID
User who created the appointment
Use this to filter appointments created by a specific user
- start_date: Session start date (inclusive)
Returns appointments with a session starting on or after this date
- end_date: Session end date (inclusive)
Returns appointments with a session ending on or before this date
- c_start_date: Appointment creation date from
Returns appointments created on or after this date
- c_end_date: Appointment creation date until
Returns appointments created on or before this date
- changed_after: Modified or created after this datetime
Returns appointments created or modified after the specified date and time
- changed_before: Modified or created before this datetime
Returns appointments created or modified before the specified date and time
team member ID, if you only need appointments for a specific team member
The ID of the user who created the appointment. If you need appointments created by a specific user
Session date starting at (filter by session date). If you need appointments for a session starting from a specific date
Session date to. If you need appointments for a session before a specific date
Appointment creation date starting from(filter by appointment creation date). If you need appointments created since a specific date
Appointment creation date by (filter by appointment creation date).
The date the appointment was modified/created. If you need appointments created/modified starting from a specific date and time
The date the appointment was modified/created. If you need appointments created/modified before a specific date and time
Flag to include in the response financial transactions by appointments
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/records/{location_id}
- Productionhttps://api.alteg.io/api/v1/records/{location_id}
- 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/records/{location_id}?page=1&count=50&team_member_id=7572&client_id=572&created_user_id=7572&start_date=2026-01-21&end_date=2026-01-21&c_start_date=2026-01-21&c_end_date=2026-01-21&changed_after=2026-01-21T23%3A00%3A00&changed_before=2026-01-21T23%3A00%3A00&include_consumables=0&include_finance_transactions=0&with_deleted=true' \
-H 'Accept: application/vnd.api.v2+json' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: string'OK
Array of objects with data
{ "success": true, "data": [ { … }, { … } ], "meta": { "page": 1, "total_count": 10 } }
Request
When creating an appointment for a group event, the event_id parameter becomes mandatory. In this case, the following parameters become optional:
- staff_id
- services
- datetime
- session_length
Custom fields You can pass custom values using custom fields created specifically for your location (see the "Custom Fields" section for setup details). Once created, these fields can be included in the custom_fields object when creating an appointment. Each key in this object must match the code of the corresponding custom field. Example:
If your location has the following custom fields: my_custom_field with type="number" some_another_field with type="list"
You can pass their values during appointment creation as follows: custom_fields:
{ "my_custom_field": 123, "some_another_field": ["first value", "second value"] }
- When this appointment is later retrieved using the GET method, the same custom field values will be returned in the response.
Service parameters (id, cost, discount)
Client parameters (phone, name, email)
Whether to keep the appointment if the time is busy or non-working, or give an error
Specifies how many hours before the visit an SMS reminder should be sent to the client. Set to 0 if no reminder is needed.
Specifies how many hours before the visit an email reminder should be sent to the client. Set to 0 if no reminder is needed.
Appointment status (2 - User confirmed the appointment, 1 - User came, services provided, 0 - user waiting, -1 - user did not show)
Technical break duration in seconds.
- Must be in multiples of 300 (5-minute intervals)
- Maximum value is 3600 (1 hour)
- If null or not provided, uses location default from Settings → Appointment Log → Technical Breaks
Technical break duration in seconds.
- Must be in multiples of 300 (5-minute intervals)
- Maximum value is 3600 (1 hour)
- If null or not provided, uses location default from Settings → Appointment Log → Technical Breaks
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/records/{location_id}
- Productionhttps://api.alteg.io/api/v1/records/{location_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://developer.alteg.io/_mock/en/b2b-v1/openapi/records/24699 \
-H 'Accept: application/vnd.api.v2+json' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"staff_id": 8886,
"services": [
{
"id": 331,
"first_cost": 9000,
"discount": 50,
"cost": 4500
},
{
"id": 333,
"first_cost": 2000,
"discount": 10,
"cost": 1800
}
],
"client": {
"phone": "+13155550175",
"name": "James Smith",
"email": "j.smith@example.com"
},
"save_if_busy": false,
"datetime": "2026-09-21T23:00:00.000-05:00",
"seance_length": 3600,
"send_sms": true,
"comment": "test appointment!",
"sms_remain_hours": 6,
"email_remain_hours": 24,
"attendance": 1,
"api_id": "777",
"custom_color": "f44336",
"record_labels": [
"67345",
"104474"
],
"custom_fields": {
"my_custom_field": 123,
"some_another_field": [
"first value",
"second value"
]
}
}'Created
Array of objects with data
{ "success": true, "data": [ { … }, { … } ], "meta": { "page": 1, "total_count": 10 } }
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/record/{location_id}/{record_id}
- Productionhttps://api.alteg.io/api/v1/record/{location_id}/{record_id}
- 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/record/{location_id}/{record_id}?include_consumables=0&include_finance_transactions=0' \
-H 'Accept: application/vnd.api.v2+json' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: string'OK
Object with data
{ "success": true, "data": { "id": 2, "company_id": 4564, "staff_id": 9, "services": [ … ], "goods_transactions": [], "staff": { … }, "client": { … }, "clients_count": 1, "date": "2026-09-21T23:00:00.000-05:00", "datetime": "2026-09-21T23:00:00.000-05:00", "create_date": "2026-01-17T19:41:44-0500", "comment": "do not write down", "visit_attendance": 0, "attendance": 0, "confirmed": 1, "seance_length": 3600, "length": 3600, "sms_before": 0, "sms_now": 0, "sms_now_text": "", "email_now": 0, "notified": 0, "master_request": 0, "api_id": "", "from_url": "", "review_requested": 0, "visit_id": 8263004, "created_user_id": 1073232, "deleted": false, "paid_full": 0, "prepaid": false, "prepaid_confirmed": false, "last_change_date": "2026-01-17T19:44:14-0500", "custom_color": "f44336", "custom_font_color": "#ffffff", "record_labels": [ … ], "activity_id": 0, "custom_fields": [], "documents": [ … ], "sms_remain_hours": 5, "email_remain_hours": 1, "bookform_id": 0, "record_from": "", "is_mobile": 0, "is_sale_bill_printed": false, "consumables": [ … ], "finance_transactions": [ … ] }, "meta": [] }