- closes the day in Docistra, so nobody (the AI agent, the booking page, reception) can book it
- cancels every reserved booking that day
- messages each patient on WhatsApp from the clinic’s own number: a normal message when the patient wrote in the last 23 hours, otherwise Docistra’s approved
appointment_cancelledtemplate. When WhatsApp can’t reach them, an SMS - tells the patients on the waiting list that places opened, and rings the clinic’s staff once
Options
Good to know
- Paid visits are never cancelled automatically. They come back in
not_cancelledwithpaid_locked, for reception to handle. patient_notified.viaisnullwith areasonwhen a patient couldn’t be messaged:no_phone,consent(they declined messages),test_org(the clinic is still in test mode in Docistra),no_channel.- Calling it again for the same day is safe: the day stays closed, and bookings already cancelled are skipped.
- To reopen the day:
DELETE /doctors/{id}/days/{date}/off. Bookings cancelled by the day off stay cancelled. - Running late instead of absent? Use
POST /doctors/{id}/delaywithminutes: every visit still ahead that day moves later and each patient is told the new time. - If the clinic closes a day in Docistra itself, you get a
doctor.day_offwebhook, plusappointment.cancelledfor each booking reception cancels.