Complete Job
complete_jobMark a service appointment and work order as completed, and optionally generate an invoice from provided line items.
Instructions
Close out a job: mark the Service Appointment complete, set the Work Order to Completed, and optionally generate an Invoice from the provided line items. Returns a consolidated summary of everything that was updated.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"appointment_id": "<appointment_id>",
"work_order_id": "<work_order_id>"
},
"name": "complete_job"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| company_id | No | Company to bill (required if invoicing). | |
| line_items | No | Invoice line items (used only when generate_invoice is true). | |
| work_order_id | Yes | Work Order to close. | |
| appointment_id | Yes | Service Appointment to complete. | |
| generate_invoice | No | Whether to generate an invoice. | |
| resolution_notes | No | Notes recorded on completion. |