send_dunning
Send the next (or given) dunning level for an invoice by e-mail and record it in the invoice's dunning history. Required: invoice_table (customer_invoices | mod_seminar_invoices), invoice_id. Optional: level (1|2), dry_run=true to see subject, text, recipient and new payment deadline without sending. Uses the tenant's templates (get_dunning_levels).
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": {
"invoice_table": "<invoice_table>",
"invoice_id": "<invoice_id>"
},
"name": "send_dunning"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | Dunning level to send (1 or 2); default the next level | |
| dry_run | No | Only simulate and report what would happen; change nothing | |
| invoice_id | Yes | ID of the invoice | |
| invoice_table | Yes | Invoice table: customer_invoices or mod_seminar_invoices |