Invoice finished jobs
invoice_jobsMake one open invoice per finished job — up to 50 at a time — from each job’s billable line items, materials, unbilled labor and approved change orders, posted to the books. Call list_jobs_to_invoice first and use its ids; only ready jobs can be invoiced. Usually queued for the account holder to approve (read staged). It does NOT email the invoices to anyone, and no money moves; a job that fails does not stop the others, and the result says which were invoiced.
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": {
"job_ids": "<job_ids>"
},
"name": "invoice_jobs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_ids | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Why the result was truncated, when it was. | |
| failed | No | ||
| staged | No | TRUE means nothing has changed yet — the write is queued in the account holder's Approvals queue in Seayora. Say it is waiting for approval; never report it as done. | |
| message | No | ||
| results | No | ||
| batch_id | No | ||
| draft_id | No | The staged proposal's id, when it was queued rather than performed. | |
| invoiced | No | ||
| not_sent | No | ||
| requested | No | ||
| truncated | No | Present and true when the result was too large to return in full. Treat it as a partial answer. | |
| total_available | No | How many rows existed before truncation. |