FairePlace Property Management API
FairePlace Property Management API
Comprehensive API for managing properties, leases, tenants, and all aspects of real estate management. Built with Rust and Actix-web following hexagonal architecture principles.
Authentication
This API uses API keys for authentication with tenant-based isolation.
Base URL
- Production:
https://api.faireplace.com/api
Tags
Health
API health check endpoints
Contacts
Contact management
Estates
Real estate unit (lot) management
Leases
Lease management
Signatures
Electronic lease signing.
These endpoints allow you to:
- Initiate a signature process for a lease
- List contracts pending signature
- Request a signature (send OTP)
- Validate an OTP and apply the signature
- Track signature status
Workers
Endpoints reserved for Cloudflare workers (signature-orchestrator, etc.).
These endpoints use API key authentication (
X-API-Key) instead of
Bearer API keys. They allow workers to:
- Update individual signature statuses
- Finalize signature documents
- Synchronize state between workers and the database
Lessees
Tenant management.
Dedicated tenant endpoints
The endpoints under/lessee/leases are specifically designed to allow tenants to:
- View their own leases
- Sign their leases electronically
- Download signed leases
lessee:leases:read- To view leaseslessee:leases:sign- To sign leaseslessee:leases:download- To download signed leases
Owners
Owner management
Places
Building/residence management
Rooms
Room management
Equipment
Equipment management
Inventory
Inventory management
Keys
Key management
Types
Property, room, and equipment types
Media
Media management (photos, PDF documents)
Rent Regulation & Rent Control
Country references, rent regulation checks, and rent control compliance
Lease Types
Lease types and their configurations
Energy Diagnosis
Energy performance diagnostics (DPE)
Estate Diagnostics
Estate diagnostic documents management (lead, asbestos, electrical, gas, risk assessment, co-ownership rules).
Diagnostics are attached to a property (estate) and can be automatically linked to lease annexes
via the
POST /leases/{lease_id}/annexes/attach-mandatory endpoint.
Only one active diagnostic per type per estate is allowed. Creating a new diagnostic of the same type
automatically deactivates the previous one.Security Deposits
Security deposit (dépôt de garantie) management.
Per Art. 22 of Loi 89-462:
- Restitution within 1 month (conformity) or 2 months (non-conformity) after lease end
- Maximum 20% retention for co-ownership charge provisions
- Late penalty: 10% of monthly rent (HC) per month of delay
- One deposit per lease (unique constraint)
Rent Receipts
Rent receipt (quittance de loyer) generation and management.
Per Art. 21 of Loi 89-462, the landlord must provide a rent receipt free of charge
upon tenant request. The receipt must clearly separate rent and charges.
Key features
- Generate one receipt per active tenant, applying their
rent_sharepercentage - Automatic PDF generation (Typst) with full legal compliance
- Full payment → "Quittance de loyer", partial payment → "Reçu de loyer"
- Itemized charge breakdown by category
- Duplicate prevention (unique constraint per tenant/period)
Meters
Meter (compteur) management for tracking consumption in properties.
Key features
- Meter CRUD: Create and manage physical meters (electricity, gas, water, heating, cooling)
- Sub-meter hierarchy: Organize meters in parent/child relationships
- Readings: Record manual, automatic, photo, or estimated readings
- Auto-consumption: Automatic consumption calculation with rollover support
- Anomaly detection: Flags consumption deviating >50% from average
- Billing integration: Link meters to leases and charges for billing
Meter types
ELECTRICITY, GAS, WATER_HOT, WATER_COLD, HEATING, COOLING
Billing types
INDIVIDUAL, COLLECTIVE, SHARED, INCLUDEDCharges
Rental charge management including freeze periods, distribution references,
notifications, regulations, reviews, audit logs, and meter associations.
Key features
- Freeze Periods: Legislative freeze periods that block charge modifications (Art. 17-2 Loi 89-462)
- Distribution References: Historical reference values for distribution key calculations
- Notifications: Consumption alerts, annual review notices, regularization reminders
- Regulations: Charge adjustments due to freeze periods or legal exceptions
- Reviews: Annual charge regularization process (Art. 23 Loi 89-462)
- Audit Logs: Full traceability of charge modifications
- Meters: Physical meter associations with leases and charges
Services
Building-related services
Credits
Credit system management.
Credits allow owners to pay for platform services
(e.g., lease signing) without having to enter their payment information each time.
Features
- Purchase credits via Stripe Checkout Session
- Check credit balance
- Transaction history (purchases, consumption)
- List available packages
Restrictions
- Only users with the owner role can purchase credits
- Credits are isolated by tenant (multi-tenant)
Lease Annexes
Management of regulatory and supplementary lease annexes.
Annexes are the mandatory and optional documents that accompany a rental
contract in compliance with French legislation (ALUR Law, Decrees 87-712/87-713, etc.).
System catalog
The platform maintains a global catalog of system annexes containing official regulatory documents. These annexes are shared across all tenants and serve as templates when attaching to a lease.Three source categories
| Source | Description | Example |
|---|---|---|
STATIC_FILE | Embedded static PDF file | Information notice, Recoverable charges |
GENERATED | PDF dynamically generated from lease data | Furniture inventory |
USER_UPLOAD | Document manually uploaded by the user | Insurance certificate |
Recommended workflow
- Create the lease via
POST /leases - Attach mandatory annexes via
POST /leases/{id}/annexes/attach-mandatory - Add custom annexes via
POST /leases/{id}/annexes - Check compliance via
GET /leases/{id}/annexes/compliance - Download PDFs via
GET /leases/{id}/annexes/{annex_id}/download
Webhooks
Endpoints for receiving webhooks from external services.
Stripe Webhooks
The/webhooks/stripe endpoint receives Stripe events to:
- Automatically credit accounts after successful purchase
- Log individual payments for traceability
Mandates
Management mandates (mandats de gestion) between a principal (owner/lessee)
and a mandataire: create, attach a document, activate, and revoke.
Countries
Country reference data (ISO codes, lookups).
Coupons
Coupon validation and redemption (free-signature / discount codes).
Usage
Subscription plan usage and limits (consumption summary).
Rent Revisions
Lease rent revision (IRL indexation): simulate, record, list, and apply
annual rent revisions on a lease.
Public Tools
Unauthenticated free-tool widgets (no API key) powering the SEO calculators
and document generators on faireplace.com. JSON endpoints return DTOs; the
/generate and /bordereau endpoints stream a PDF (application/pdf).Guest Signature
Public token-based guest signature flow (no login): view the session,
download the PDF, request an OTP, and sign. The guest token is carried in
the URL path.
Owner Claim
Owner-claim flow: public token-based claim view, claim confirmation, and the
authenticated start of an owner claim.
Lease Termination
Ending a lease: termination record, forced termination, and effects on the property.
Lease Notices
Notice periods and congés (notice given by either party).
Condition Reports
État des lieux: entry and exit inspections, room by room, with the
condition of each element and its electronic signature.
Documents
Documents attached to a lease.
PDF
Generation and retrieval of lease PDFs.
Templates
Document templates attached to a lease type.
Charge Configuration
Default charge configuration carried by a lease type.
Rent Payments
Recording and reading the rent payments of a lease.
Rent Reminders
Reminders sent to the landlord at the rent due date.
Payments
Checkout sessions, payment status, and payment confirmation.
Stripe
Stripe-facing endpoints (webhooks and checkout plumbing).
Amendment Documents
Documents attached to a lease amendment (avenant).
Amendment Duration Details
Duration changes carried by an amendment.
Amendment Rent Details
Rent changes carried by an amendment.
Amendment History
Chronological history of an amendment.
Amendment Notifications
Notifications sent about an amendment.
Amendment Validations
Validation steps an amendment must clear before it takes effect.
Syndic Management
Building management companies (syndics) and their relationship to a property.
Syndic Fund Calls
Fund calls (appels de fonds) issued by a syndic.
Syndic Fund Allocations
Allocation of a syndic fund call across the leases of a property.