Generate customer statements
generate_customer_statementsUse this when the user wants customer statements (customer statement template, statement of account, open item statement) for customers who owe them money, from the same open invoices: typed, pasted CSV/TSV, or an attached CSV/XLSX export. Returns a PDF with one page per customer listing each open invoice with date, due date, amount, paid, open balance and days past due, an aging strip and the balance due, plus polite past-due reminder email drafts. Filter by customer names or overdue_only. Does not send statements or emails, and does not build an aging summary (use generate_aging_report).
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": "generate_customer_statements"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | An open invoices or A/R aging export (CSV, TSV or XLSX) from QuickBooks, Xero, FreshBooks, Wave or a spreadsheet, e.g. open_invoices.csv. | |
| message | No | Short note printed on every statement, e.g. "Thank you for your business." | |
| currency | No | Currency code, e.g. "USD" (default), "CAD", "EUR". With a mixed-currency file, only this currency is aged. | |
| invoices | No | Open invoices: an array of objects like {customer:"Acme Corp", invoice_number:"INV-1042", invoice_date:"2026-08-01", terms:"Net 30", amount:1200, amount_paid:200}, or pasted CSV/TSV text with a header row, or one line per invoice like "Acme Corp, INV-1042, 2026-08-01, Net 30, 1200, paid 200". Give this or file. | |
| remit_to | No | Payment instructions printed on each statement, e.g. "ACH or check to Bright Path Design, 12 Main St". | |
| customers | No | Only these customers, e.g. ["Acme Corp", "Globex"] or "Acme Corp, Globex". Default every customer with a balance. | |
| as_of_date | No | Age the invoices as of this date, e.g. "2026-10-31". Default today in New York time. | |
| sender_name | No | Name to sign the reminder emails with, e.g. "Dana Lee". | |
| company_name | No | Your business name for the report header and email sign-off, e.g. "Bright Path Design LLC". | |
| overdue_only | No | true to make statements only for customers with past-due invoices. Default false. | |
| default_terms | No | Terms for invoices with no due date and no terms, e.g. "Net 30" (default) or 15. | |
| company_address | No | Your address or contact lines for the statement header, e.g. "12 Main St, Austin TX 78701, billing@brightpath.com". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| input | Yes | ||
| notes | Yes | ||
| pages | Yes | ||
| totals | Yes | ||
| currency | Yes | ||
| downloads | Yes | ||
| reminders | Yes | ||
| as_of_date | Yes | ||
| as_of_note | Yes | ||
| statements | Yes | ||
| reminders_total | Yes | ||
| statements_count | Yes | ||
| statements_not_listed | Yes |