Create appointment
feegow_create_appointmentWRITE: books a new appointment in the clinic's agenda (not in the past). Check feegow_get_available_schedule first; a taken slot or unknown patient is refused. Feegow may notify the patient (SMS/e-mail/WhatsApp) according to the clinic's own automation settings. valor is in CENTS and must be 0 with insurance. POST /appoints/new-appoint.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | Appointment day, yyyy-mm-dd (today or later). | |
| time | Yes | Time of day, 24 h, HH:MM or HH:MM:SS. | |
| No | Patient e-mail. | ||
| notes | No | Appointment note. | |
| phone | No | Patient phone. | |
| mobile | No | Patient mobile phone. | |
| is_return | No | true = a return visit (retorno). | |
| channel_id | No | Booking channel id (feegow_list_booking_channels). | |
| patient_id | Yes | ||
| location_id | Yes | Location (room) id; see feegow_list_locations. 0 = default. | |
| value_cents | Yes | Price in CENTS (e.g. R$ 550.00 = 55000). Must be 0 when using insurance. | |
| insurance_id | No | Insurance (convênio) id: set it, with insurance_plan_id, to book under insurance. | |
| procedure_id | Yes | ||
| specialty_id | Yes | ||
| price_table_id | No | Private price table id. | |
| professional_id | Yes | ||
| insurance_plan_id | No | Plan id of the insurance. Required with insurance_id. |