Billing & Payments
Payment Reminder
Dunning letter — overdue invoice reference, escalation level, days overdue, and how to pay.
The contract
Fields your API call provides. Amounts and totals are always computed by the caller — templates only format.
| company.name | string | required |
| company.email | string | required |
| customer.name | string | required |
| due_date | string | required |
| amount_due | number | required |
| sender_name | string | required |
| days_overdue | number | required |
| invoice_date | string | required |
| reminder_date | string | required |
| invoice_number | string | required |
| escalation_level | string | required |
| payment_instructions | string | required |
MCP-ready: forks of this template will expose generate_payment_reminder when the MCP server ships.
Generate it (after you fork & publish)
curl -X POST https://your-paperbrain-host/api/generate/gen_<your-id> \
-H "Content-Type: application/json" \
-d '{
"company": {
"name": "Northwind Consulting",
"email": "billing@northwind.example"
},
"customer": {
"name": "Dana Whitfield"
},
"due_date": "2026-05-18",
"amount_due": 9500,
"sender_name": "Ravi Mehta",
"days_overdue": 23,
"invoice_date": "2026-05-04",
"reminder_date": "2026-06-10",
"invoice_number": "INV-2039",
"escalation_level": "Second notice",
"payment_instructions": "You can pay by ACH to account 4471-002 (routing 021000021) or by card via the link on the invoice. Please reference INV-2039."
}'gen_<your-id>is your generator's id once you fork and publish. The body shown is this template's sample data — the exact shape the contract validates.