Generate the invoices that are due
invoice_generate_dueGenerate invoices for every unbilled schedule occurrence on or before a given date, render PDFs, and report created, skipped, and still due items.
Instructions
Create a real invoice in the invoice server for every schedule occurrence on or before as_of that has not been invoiced yet, and render each PDF. Returns what was created, what was skipped and what is still due.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "invoice_generate_due"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as_of | No | YYYY-MM-DD, defaults to today. Every occurrence on or before this date that has not been invoiced is billed. Idempotent: one invoice per schedule per period, keyed by the occurrence date, so running it twice creates nothing the second time | |
| dry_run | No | List what would be created without creating anything. Default false. One run creates at most 60 invoices, oldest period first | |
| schedule_id | No | Only this schedule. Free and unlimited on every tier |