Appointment
object type
An Appointment — a booking of 1..8 SchedulableResources at an LF for a time window: a service-type product sale OR an order pickup (purpose pickup — orderId required, the order being collected). The ratified lifecycle verbatim: confirm reserves capacity (the resbook calendar rows; the gate is capacity-only — CONFLICT/DOUBLE_BOOKED unless the appointment.overbook_allowed policy admits); no_show fires from the scheduler only (noShowAt = startAt + the appointment.no_show_window_minutes policy, stamped at confirm — NO caller op); rescheduled = a doomed terminal superseded by the linked successor (born requested — ITS confirm re-runs the capacity gate); completed may link an order for billing (the complete-time orderId — auto-minting a line is a named growth). durationMinutes ≤ 1440 (24h — the overlap-lookback bound). The create-time gates: appointment.lead_time_minutes + appointment.max_advance_days.
Fields
| Field | Type | Notes |
|---|---|---|
id | ID ID! | The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it. |
sysId | String String! | The human-readable id, shaped like AP-… — stable for the record’s life. |
type | String String! | The kind of record — always Appointment here. |
caption | String String! | The record’s display name — what people see it called. |
status | String String! | The record’s current state — one of requested, confirmed, in_progress, completed, no_show, cancelled or rescheduled. |
parentId | ID ID! | The parent LogicalFacility; rootId = the org group; parentId!== rootId always. |
rootId | ID ID! | The id of your organization group — every record of yours carries the same one. |
createdAt | String String! | When the record was created, as a UTC timestamp. |
updatedAt | String String! | When the record last changed, as a UTC timestamp. |
revisionNum | Int Int! | How many times this record has been edited; the first save is 0. |
revision | ID ID! | The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten. |
refCaptions | RefCaption [RefCaption!]! | The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption. |
organizationId | ID ID! | The LF’s Organization — server-stamped at create. |
purpose | AppointmentPurpose AppointmentPurpose! | The booking purpose (service | pickup) — immutable at birth (re-purpose = cancel + rebook). |
variantId | ID | The service-type product variant sold: required on service, forbidden on pickup. |
orderId | ID | The linked Order: required on pickup (the order being collected); optional on service (sold-together at create/update, or book-then-bill at complete). |
resourceIds | ID [ID!]! | The booked SchedulableResources (1..8, distinct; each in-tenant + active + at the same LF as the parent). |
startAt | String String! | The window start — a UTC ISO-8601 instant (the estate carries no timezone; working hours are advisory). |
durationMinutes | Int Int! | The window length in minutes (1..1440 — the 24h cap IS the overlap-query lookback bound). |
customer | OrderCustomer | The polymorphic customer capture (the Order block verbatim — inline fields + the corporateCustomerId/consumerId ref arms); optional (a pickup’s customer is the order’s). |
noShowAt | String | System-stamped at confirm = startAt + the resolved appointment.no_show_window_minutes — the scheduler marks no_show at this instant if the appointment is still confirmed. |
successorAppointmentId | ID | System-stamped by reschedule on the superseded terminal — the linked successor. |
predecessorAppointmentId | ID | System-stamped on a reschedule-born successor — the appointment it supersedes. |