Completed jobs not invoiced
completed_jobs_not_invoicedFinds completed jobs in a date range that have no linked invoice, helping you identify unbilled work and close billing gaps.
Instructions
Find completed (and optionally validated) jobs in a date range that have no invoice linked to them.
How it works: the Synchroteam job object has no "invoiced" flag, so this tool lists completed jobs (job/list) and invoices (invoice/list, created since date_from minus invoice_lookback_days, excluding cancelled ones), and matches them through each invoice's job reference (id, num or myId). Limits, also returned in 'caveats': invoices with no job link cannot be matched; quotations and credit notes are ignored; results are capped by max_jobs and a 5000-invoice scan.
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": {
"date_from": "<date_from>",
"date_to": "<date_to>"
},
"name": "completed_jobs_not_invoiced"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum uninvoiced jobs to list. | |
| date_to | Yes | End of the job date range (inclusive), YYYY-MM-DD. | |
| max_jobs | No | Maximum jobs to examine. | |
| date_from | Yes | Start of the job date range, YYYY-MM-DD. | |
| verify_each_job | No | Double-check each candidate with a per-job invoice lookup (1 extra API call per candidate, max 100). Slower but catches invoices created outside the scanned window. | |
| include_validated | No | Also check jobs in 'validated' status (completed and approved). | |
| invoice_lookback_days | No | Also scan invoices created this many days before date_from (catches invoices raised before the work was finished). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||