Generate the invoices that are due
invoice_generate_dueGenerate invoices for all scheduled occurrences due on or before a date, skip already invoiced periods, and render each PDF. Preview with dry-run to see what would be created.
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.
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 |