Server-side APIEndpointsAppointments
Read an appointment
One appointment by its SCHEDULED:<id> reference.
API-key only, gated on devapi_appointments_get. Responses carry
Cache-Control: no-store.
Parameters
Path parameters
appointmentRefstringrequiredExample: SCHEDULED:91234SCHEDULED:<id>, the id every appointment carries. A bare number means the same.
Headers
x-api-keystringrequiredExample: mk_…Your Developer API key. Server-side only.
X-Acting-User-IdstringExample: MDU_A1B2C3D4E5F6The staff member the call is attributed to, as an MDU_… id. Omit it to attribute the call to the workspace admin.
Responses
The appointment object
The same object is returned by search,
and a visit is this plus clinical.
| Field | Type | Notes |
|---|---|---|
id | string | SCHEDULED:<n>. Store this, and pass it back here or in appointmentRefs. |
system | string | SCHEDULED, the only system today. |
appointmentId | integer | The numeric part of id. |
status | string | SCHEDULED, CONFIRMED, CANCELLED, COMPLETED, RESCHEDULED, IN_CONSULTATION, NO_SHOW, OVERDUE or MISSED. |
visitType, mode | string | null | |
appointmentDate | string | YYYY-MM-DD in the clinic's timezone. |
fromDateTimeIso, toDateTimeIso | string | ISO-8601 with offset. Always present on an appointment. |
timezone | string | null | IANA name, e.g. Asia/Kolkata. |
tokenDisplay | string | null | Set only for a token booking; the same value as queueToken.display. |
queueToken | object | null | null for a slot booking. For a token: number, display (e.g. C-013), sessionId (a session), estimatedStart (the live estimate, with offset; given in search results and null on this read, and null once the token is being seen, done, cancelled or overdue) and trackingUrl (the patient's live tracking page; on this read only, null in search results). A token is called by number, so fromDateTimeIso is only the estimate made at booking. On a visit only display is set. |
visitNumber | integer | null | The patient's visit ordinal at this clinic. null for cancelled rows. |
patient | object | id, mrn, name. |
practitioner | object | id is an MDU_… staff id, a string. id and name are null together. |
location | object | id resolves against GET /v1/addresses. |
reasonForVisit, bookingSource | string | null | |
payment | object | amount is a decimal string ("800"), never a JSON number. method is the clinic's own label; do not branch on it. |
cancellation | object | null | type, reason, at when cancelled. |
prescriptionIds | integer[] | Prescriptions written at this appointment. |
updatedAt | string | null |