generate_demand_letter
Generate a legally formatted demand letter PDF with matching envelope, localized for the debtor's jurisdiction. Free and requires no registration.
Instructions
Generate the finished demand-letter PDF (formal letter + matching envelope), localized and legally formatted for the jurisdiction. Returns the PDF as a base64 resource. Free, no registration.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bank | No | Payment/bank details keyed by field (e.g. {bankName, iban, accountNumber}). Optional. | |
| tone | No | Escalation level. Default: final. | |
| amount | Yes | Amount owed, as a number (no separators). Required, > 0. | |
| attested | No | Confirms authorization to send under the sender name. Required when senderType is business/firm. | |
| currency | No | ISO 4217 currency (optional; defaults to the jurisdiction's). | |
| language | No | Letter language code (e.g. en, es, fr, de, pt, ar, zh, ja). Must be offered for the jurisdiction; defaults to en. | |
| senderRef | No | Creditor's own reference number (optional). | |
| debtorName | Yes | Debtor name. Required. | |
| debtorType | No | Whether the debtor is a private individual (consumer) or a business. 'individual' activates jurisdiction consumer rules (e.g. GB Pre-Action Protocol 30-day floor, NL WIK wording). Default: business. | |
| enclosures | No | Enclosed documents, printed as 'Encl.: …' under the signature (e.g. 'Copy of invoice INV-123'). Optional. | |
| senderName | Yes | Creditor name (person or business). Required. | |
| senderType | No | Creditor type. Business/firm requires attested=true. | |
| signerName | No | Name of the person signing (optional; defaults to senderName). | |
| description | No | What the debt is for (optional). | |
| senderTitle | No | Signer's job title (optional). | |
| deadlineDays | No | Days from issue to pay (optional; default 14). | |
| jurisdiction | No | ISO 3166-1 alpha-2 country code of the debtor (e.g. US, GB, DE, BR, AE). Use list_jurisdictions for the full set; XX = generic/international. | |
| originalDate | No | ISO date the debt was incurred/invoiced (optional). | |
| debtorAddress | Yes | Debtor postal address, multi-line. Required. | |
| invoiceNumber | No | Invoice/account number (optional). | |
| senderAddress | Yes | Creditor postal address, multi-line (\n separated). Required. | |
| senderContact | No | Creditor email/phone (optional). | |
| deliveryMethod | No | How the letter is sent; printed as a notation above the recipient (e.g. 'By registered post and email'). Optional. |