AlmondTill/G3N API

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

FieldTypeNotes
idID ID!The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it.
sysIdString String!The human-readable id, shaped like AP-… — stable for the record’s life.
typeString String!The kind of record — always Appointment here.
captionString String!The record’s display name — what people see it called.
statusString String!The record’s current state — one of requested, confirmed, in_progress, completed, no_show, cancelled or rescheduled.
parentIdID ID!The parent LogicalFacility; rootId = the org group; parentId!== rootId always.
rootIdID ID!The id of your organization group — every record of yours carries the same one.
createdAtString String!When the record was created, as a UTC timestamp.
updatedAtString String!When the record last changed, as a UTC timestamp.
revisionNumInt Int!How many times this record has been edited; the first save is 0.
revisionID 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.
refCaptionsRefCaption [RefCaption!]!The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption.
organizationIdID ID!The LF’s Organization — server-stamped at create.
purposeAppointmentPurpose AppointmentPurpose!The booking purpose (service | pickup) — immutable at birth (re-purpose = cancel + rebook).
variantIdIDThe service-type product variant sold: required on service, forbidden on pickup.
orderIdIDThe linked Order: required on pickup (the order being collected); optional on service (sold-together at create/update, or book-then-bill at complete).
resourceIdsID [ID!]!The booked SchedulableResources (1..8, distinct; each in-tenant + active + at the same LF as the parent).
startAtString String!The window start — a UTC ISO-8601 instant (the estate carries no timezone; working hours are advisory).
durationMinutesInt Int!The window length in minutes (1..1440 — the 24h cap IS the overlap-query lookback bound).
customerOrderCustomerThe polymorphic customer capture (the Order block verbatim — inline fields + the corporateCustomerId/consumerId ref arms); optional (a pickup’s customer is the order’s).
noShowAtStringSystem-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.
successorAppointmentIdIDSystem-stamped by reschedule on the superseded terminal — the linked successor.
predecessorAppointmentIdIDSystem-stamped on a reschedule-born successor — the appointment it supersedes.

Used by