client_statement_email
Send unpaid invoice statements as PDF email attachments to a single client or all clients with balances. Use dry-run to preview recipients before sending.
Instructions
E-mail the statement of unpaid invoices ("Facturi neachitate {company}") with the PDF attached. Pass uuid to send to one client (to its e-mail, or to — which must be an address of one of your clients), or omit it to send to every client with a balance of at least minBalance and an e-mail address. Use dryRun: true first: it returns who would receive the statement and who is skipped (no e-mail, below the minimum balance, unsubscribed) without sending anything. Requires the invoice-sending permission and a plan with e-mail sending. The bulk send stops at the plan's daily/burst e-mail limit and reports stoppedReason.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Recipient override for a single client (defaults to the client e-mail) | |
| asOf | No | Reference date (YYYY-MM-DD). Invoices issued after it are ignored and days overdue are counted up to it. Default: today. | |
| uuid | No | Client UUID. Omit to e-mail all clients with a balance. | |
| dryRun | No | Do not send; return the recipients and the skip reasons. For a single client it returns the statement that would be sent. | |
| message | No | Optional message appended to the standard Romanian body (plain text) | |
| companyId | No | Company UUID override (uses active company if not set) | |
| minBalance | No | Bulk only: minimum balance a client must owe to receive the statement (default 0.01) |