v2

latestOpenAPI 3.1.12026-08-078549932.4 MB
Estimates

Link a pre-existing open estimate to an appointment. Honors the unique index on `treatment_plans.appointment_id` (one estimate per appointment): * No estimate on the appointment yet → set AppointmentId on the chosen one. * The appointment's auto-created estimate is empty → drop it and re-point the chosen estimate (preserves the chosen estimate's identity + consent history). * The appointment's estimate already has lines → merge the chosen estimate's lines into it and remove the chosen estimate. Returns the resulting estimate the Services tab should render.

post/Estimates/{id}/link-appointment

Path parameters

idstring required

Request body

appointmentIdstring

Response

OK

idstring
estimateNumberstring
clientIdstring nullable
clientNamestring nullable
patientIdstring nullable
patientNamestring nullable
appointmentIdstring nullable
statusstring
selectedTierstring nullable
invoiceIdstring nullable
notesstring nullable
createdByIdstring nullable
createdByNamestring nullable
createdAtstring date-time
updatedAtstring date-time