payment_reminder_draft
Draft a payment reminder email for one unpaid invoice in a friendly, firm or final-notice tone. Returns a subject, plain-text body, days overdue and a suggested next step. Use late_fee_calc first if you want the fee amount quoted in the email. Draft only: nothing is sent. Pure calculation: no network request, nothing is sent or stored. Costs $0.01 USDC per call via x402 (payment goes in _meta["x402/payment"]); invalid input returns an error and is not charged.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tone | Yes | "friendly" (alias "polite"), "firm", or "final" | |
| as_of | No | Today's date for the days-overdue count, YYYY-MM-DD (default: today, UTC) | |
| amount | No | Amount due | |
| currency | No | ISO-4217, default USD | USD |
| due_date | No | YYYY-MM-DD | |
| from_name | Yes | Your name or business, used in the sign-off | |
| client_name | No | Client's name for the greeting | |
| payment_link | No | ||
| invoice_number | No | ||
| late_fee_terms | No | Your agreed late-fee terms, e.g. "1.5% per month"; mentioned in the final notice only | |
| final_deadline_days | No | Final notice: days the client has to pay |