Leases
Generate rent receipts
Generate rent receipts (quittances/reçus de loyer) for all active tenants of a lease for a given period.
Art. 21 Loi 89-462: The landlord must provide a rent receipt free of charge upon tenant request. The receipt must separate rent and charges. If the full amount has been paid, a "quittance" is issued. If only partial payment was made, a "reçu" is issued instead.
Behavior:
- One receipt is generated per active tenant (lessee) on the lease
- Each tenant's rent_share percentage is applied to rent and charges
- If a receipt already exists for the same tenant/period, it is skipped (no duplicates)
- A PDF is automatically generated for each receipt using the Typst template
- The PDF includes: landlord info, tenant info with rent share %, property details, itemized charges, totals, and legal text
Permissions required: leases:write
post/leases/{lease_id}/receipts/generate
Request
- Base URL: https://api.faireplace.com/api
- URL: https://api.faireplace.com/api/leases/{lease_id}/receipts/generate
- Auth: HTTP bearer
Path parameters
lease_idstring uuid required
Lease ID
Request body
Example request
{
"period_start": "2026-03-01",
"period_end": "2026-03-31",
"payments": [
{
"amount_paid": 537.5
}
],
"payment_date": "2026-03-15"
}Response
Receipts generated successfully. Returns one receipt per active tenant.
Example response
[
{
"lessee_name": "Marie Martin",
"period_start": "2026-03-01",
"period_end": "2026-03-31",
"rent_amount": 450,
"charges_total": 87.5,
"charges_detail": [
{
"category_name": "Eau froide",
"amount": 12.5,
"calculation_method": "Provision"
}
],
"total_due": 537.5,
"amount_paid": 537.5,
"document_type": "QUITTANCE",
"has_pdf": true
}
]Changes
No recorded changes to this operation across all 1 revision of this API.