companies_overdue_reminders_backlog
Preview and send a company's missed overdue-reminder backlog: count invoices and balances per client, then email one statement per client after confirmation.
Instructions
Count or send the reminder backlog of a company: overdue, unpaid issued invoices that passed a reminder step before the daily run could send it (the reminders were off at the time, or the invoices were imported). The daily run never mails those. Calls POST /api/v1/companies/{uuid}/overdue-reminders/backlog. With dryRun true (the default here) nothing is sent: the result lists, per client, how many invoices and what balance an email would cover. With dryRun false each client gets one email listing all their backlog invoices, with the statement PDF attached, and every invoice is marked with the step it missed, so a second call sends nothing for them and the daily run continues with later steps. Clients and invoices excluded from reminders, clients without an email and unsubscribed recipients are left out and counted under skipped. Returns 422 REMINDERS_OFF when the company has the reminders off, 402 when the plan cannot send emails, 409 while another send is running. Requires company edit permission. Show the dry run to the user and get their confirmation before sending.
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": {
"uuid": "<uuid>"
},
"name": "companies_overdue_reminders_backlog"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uuid | Yes | Company UUID | |
| dryRun | No | true (default) = only count what would be sent; false = send the emails |