Retrieve Appointments grouped under one attendance identifier as JSON:API resource objects.
Use record_{appointment_id} to retrieve the group containing one Appointment, or visit_{visit_id} to retrieve all Appointments linked to one visit. The attendance_id path parameter and both prefixes are literal wire values.
Related data can be requested by repeating the include parameter. Wire values remain literal API keys: client identifies Booking User data, staff identifies Team Member data, and goods identifies Products. Custom Field Value includes require the corresponding Business User permissions.
This is the read for Save Visit Appointments, which replaces whole Appointments. Nested includes such as attendance_good_items.marks, attendance_good_items.loyalty_abonement, attendance_good_items.loyalty_certificate, and attendance_service_items.assistants return the keys that operation requires you to echo.
Related resources to include; values are literal API keys
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v2/openapi/locations/{location_id}/attendances/{attendance_id}/appointments
- Productionhttps://api.alteg.io/api/v2/locations/{location_id}/attendances/{attendance_id}/appointments
curl -i -X GET \
'https://developer.alteg.io/_mock/en/b2b-v2/openapi/locations/{location_id}/attendances/record_12345/appointments?include=client' \
-H 'Accept: application/vnd.api.v2+json' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>'{ "data": [ { … } ], "included": [ { … } ] }