Skip to content

Document template · generic.hr.warning_letter

Warning Letter

  • Render-verified
  • Legal-sensitive
  • Version 1.0.0

Formal written warning with incident facts, breached rules, expected correction, correction deadline and escalation path. Includes acknowledgement-of-receipt block.

JSON Schema

Fields in this template

Data sent to the API is validated against the template’s JSON Schema before anything is rendered. This template defines 25 fields:

Field Required Type Description
employer Required object
employer.name Required string
employer.address Required string
employer.reference Optional string
employee Required object
employee.name Required string
employee.position Required string
employee.address Required string
letter_date Required date
delivery_method Required enum
warning_level Required enum
incident_facts Required array of object
incident_facts[].date Required date
incident_facts[].location Optional string
incident_facts[].description Required string
rules_breached Optional array of string
prior_warnings Optional array of object
prior_warnings[].date Required date
prior_warnings[].level Required enum
prior_warnings[].summary Required string
expected_corrections Required array of string
correction_deadline Required date
signatory Required object
signatory.name Required string
signatory.role Required string

POST /render

Generate it

One POST /render call: send your JSON, get the finished PDF back. Or skip the JSON entirely and describe the document in plain language on chut.app.

curl
curl -X POST https://api.papii.eu/render \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "template": "generic.hr.warning_letter",
    "data": { ... },
    "options": {"language": "en"}
  }' -o warning-letter.pdf

Frequently asked questions

What is “Warning Letter”?

Formal written warning with incident facts, breached rules, expected correction, correction deadline and escalation path. Includes acknowledgement-of-receipt block. On papii this document is available as template generic.hr.warning_letter: a JSON Schema plus a deterministic PDF renderer, so the same data always produces the same document.

Can I generate a Warning Letter with AI?

Yes. chut.app — the AI back office papii powers — fills this template from a plain-language description: you describe the document in one sentence, the AI structures the data, papii validates it against the schema and renders the PDF. Developers can also call the papii API directly with structured JSON.

Is the Warning Letter template legally compliant?

This template is render-verified: its schema, sample data and PDF output are automatically tested on every release. It is published with status “ready”, meaning it has not yet been through papii’s final legal review. Where it references specific legislation, that is stated in the template description — always have a professional check documents with legal effect before relying on them.