Creates an appointment for a client with a Team Member at a chosen start time.
A client is optional. Pass
client_idof an existing client, an inlineclientobject resolved attach-only by normalized phone withoutclients:write, or neither for a clientless appointment.With a client the
201response carriesvisit_id > 0; a clientless appointment hasvisit_id: null. Payment and visit operations are keyed byappointment_id, notvisit_id.Slot conflicts are checked server-side: if a parallel request takes the slot first, the call fails with
409 slot_taken— pick a new slot from availability and retry with a newIdempotency-Key.Requires
Idempotency-Key; a retry of the same request returns the original result instead of recording a duplicate appointment.For a package service, pass
components[{package_component_id, team_member_id}]from availability; the201response returns all created appointments plus their sharedvisit_id.Inline client resolution does not reveal whether a client was found or created.
Client-generated unique key for this logical request (UUID recommended). A retry with the same key and body returns the original result; the same key with a different body fails with 409 idempotency_key_reused. Keys are retained at least 24 hours and are scoped to credential, Location, and operation; after expiry the value may be reused for a new logical request.
RFC 3339 with the Location's local UTC offset (take it from availability).
Inline client for createAppointment: attach-only resolver links an existing client by normalized phone without changing the client record, or creates a new client when none exists. It never restores a deleted client and the response does not reveal whether the client was found or created. No clients:write scope is required.
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v3/openapi/locations/{location_id}/appointments
- Preview resource API contract - endpoint surface is not live yethttps://api.alteg.io/api/v3/locations/{location_id}/appointments
- OAuth2
- RestrictedKey
- Book for an existing client
- Book with an inline client
curl -i -X POST \
'https://developer.alteg.io/_mock/en/b2b-v3/openapi/locations/{location_id}/appointments' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: string' \
-d '{
"client_id": 789,
"team_member_id": 321,
"service_ids": [
100
],
"starts_at": "2026-07-24T11:30:00+01:00"
}'The created appointment.
Requests left in the most constrained policy window that applies to this request.
On 429, seconds until the most constrained policy frees up; it equals Retry-After there. On a successful response it reports the length of that policy's window rather than the time left in the current one, so treat it as the window size, not as a countdown — the counter to pace against is RateLimit-Remaining.
Most constrained policy applied to the request, as <limit>;w=<window in seconds>.
Version tag of the returned resource. Send it back in If-Match on the next PATCH or DELETE.
A scheduled appointment. visit_id remains a response field and can be null; payment and visit operations are keyed by appointment_id.
Status of an appointment. waiting — scheduled, not yet confirmed; confirmed — confirmed by the client; arrived — the client attended (terminal "done" state); no_show — the client did not attend; cancelled — cancelled via the cancel command (never set through the status command).
- Appointment
- AppointmentCreateResponse
- An appointment
- Package appointment result
{ "id": 12345, "object": "appointment", "location_id": 4321, "client_id": 789, "visit_id": 5001, "team_member_id": 321, "service_ids": [ 100 ], "resource_instance_ids": [], "status": "waiting", "starts_at": "2026-07-24T11:30:00+01:00", "ends_at": "2026-07-24T12:30:00+01:00", "duration_seconds": 3600, "is_paid": false, "comment": null, "cancelled_at": null, "cancellation_reason": null, "created_at": "2026-07-20T09:57:15Z", "updated_at": "2026-07-20T09:57:15Z" }