Server-side APIEndpointsAppointments

Cancel an appointment

Cancel an appointment and remove it from the clinic's calendar.

Cancels an appointment and removes it from the clinic's calendar, as the front desk's delete does in Medos. The appointment is marked CANCELLED and deleted, and its pending reminders are stopped. The method is DELETE.

API-key only, gated on devapi_appointments_cancel. X-Acting-User-Id is optional.

Parameters

Path parameters

appointmentRefstringrequiredExample: SCHEDULED:91234

SCHEDULED:<id>. A bare number means the same.

Query parameters

addressIdintegerrequiredExample: 1

The appointment's location.

Headers

x-api-keystringrequiredExample: mk_…

Your Developer API key. Server-side only.

X-Acting-User-IdstringExample: MDU_A1B2C3D4E5F6

The staff member the call is attributed to, as an MDU_… id. Omit it to attribute the call to the workspace admin.

  • addressId is required: the appointment's location.id.
  • No refund is recorded. This removes the booking. If the patient paid, handle the refund in Medos.
  • Deleting twice is a 404 the second time, because the appointment is already gone, and it no longer appears in search.

Responses

A 204 has no body.

Test request