Skip to content

AppointmentSlot

A single open, bookable time range for an appointment type on a specific resource. Computed live from the resource's availability minus its existing commitments; never persisted until a customer books it.

Fields

startAtDateTime!
endAtDateTime!
capacityInt

The activity's per-increment booking capacity, so clients can tell a partially booked slot (spotsRemaining < capacity) from a fully open one. Null when the activity's capacity is unlimited.

spotsRemainingInt

Spots still open in this slot: the capacity minus the bookings already holding it (the tightest increment, for a multi-increment slot). Always at least 1 — a full slot isn't returned — and null when the capacity is unlimited, since there is nothing to count down.

Used in