---
title: "Generate a notice / termination letter (PDF)"
method: POST
path: "/public/tools/conge/generate"
tags: ["Public Tools"]
---

# Generate a notice / termination letter (PDF)

`POST /public/tools/conge/generate`

## Request

- Base URL: `https://api.faireplace.com/api`
- URL: `https://api.faireplace.com/api/public/tools/conge/generate`
- Auth: none required

Generates a notice / termination letter PDF. `party` = `locataire` (tenant
notice) or `bailleur` (landlord notice). The notice reason and lease kind
drive the legal mentions and notice period.

Public, unauthenticated tool. Returns `application/pdf`.

## Request body

- CongeGenerateRequest: Notice / termination letter generator. `party` = `locataire` (tenant notice, Art. 12/15) or `bailleur` (landlord notice, Art. 15 II/III). Notice period is computed client-side; the backend maps the DTO to the Typst template.
  - `party` 'locataire' | 'bailleur', required
  - `notice_reason` string, required: Reason code. Tenant: TENANT_STANDARD, TENSE_ZONE, FIRST_EMPLOYMENT, PROFESSIONAL_TRANSFER, JOB_LOSS, NEW_JOB_AFTER_JOB_LOSS, RSA_BENEFICIARY, AAH_BENEFICIARY, HEALTH_CONDITION, DOMESTIC_VIOLENCE, SOCIAL_HOUSING_ATTRIBUTION. Landlord: SALE, PERSONAL_USE, LEGITIMATE_REASON.
  - `lease_kind` 'vide' | 'meuble' | 'etudiant' | 'mobilite', required: Lease type, drives the notice-period computation.
  - `notice_date` string, date, required: Tenant: LRAR reception date. Landlord: letter drafting date.
  - `lease_end_date` string, date, nullable: Landlord only: lease term (notice effective date).
  - `delivery_method` string, nullable
  - `tracking_number` string, nullable
  - `reduced_notice_justification` string, nullable
  - `owner` DocOwnerDto, required: Landlord identity for a generated document.
    - `title` string
    - `first_name` string
    - `last_name` string, required
    - `legal_name` string: Company / legal name (e.g. an SCI).
    - `address` string, required
    - `postal_code` string, required
    - `city` string, required
  - `lessees` DocLesseeDto[], required
    - `title` string
    - `first_name` string
    - `last_name` string, required
  - `property` DocPropertyDto, required: Rented dwelling for a generated document.
    - `address` string, required
    - `postal_code` string, required
    - `city` string, required
  - `sale_price` string, nullable: Landlord, sale notice (Art. 15 II).
  - `sale_conditions` string, nullable
  - `tenant_preemption_expires_at` string, nullable
  - `beneficiary_name` string, nullable: Landlord, repossession (Art. 15 I).
  - `beneficiary_address` string, nullable
  - `beneficiary_relationship` string, nullable
  - `reprise_justification` string, nullable
  - `legitimate_reason_detail` string, nullable
  - `tenant_income_eligible` boolean, nullable: Landlord: elderly-tenant protection (Art. 15 III).
  - `rehousing_offer` string, nullable

## Response `200`

The generated notice letter PDF.

## Other responses

- `400`: Bad request
- `422`: Unprocessable Entity
- `500`: Internal Server Error

---

[API](https://skmtc.dev/faireplace/apis/faireplace-property-management-api.md) · [All operations](https://skmtc.dev/faireplace/apis/faireplace-property-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/faireplace/apis/faireplace-property-management-api/revisions/69de39762919?raw)
