Leases

Check and apply legal compliance

Checks the regulatory compliance of a lease AND automatically updates the lease with compliance information.

Difference with the read-only check:

  • GET /leases/{lease_id}/compliance : checks only, leaves the lease untouched
  • POST /leases/{lease_id}/compliance/update : checks AND updates the lease

Automatic updates performed:

For French leases:

  • Updates is_subject_to_rent_evolution_decree and is_subject_to_reference_rent_cap
  • Calculates and updates reference_rent_per_m2 and reference_rent_increased_per_m2
  • Calculates and updates base_rent_amount and rent_complement_amount according to regulations
  • Updates rent_regulation_zone_type (TENDUE or STANDARD)
  • Calculates and updates IRL (Rent Reference Index) information:
    • rent_revision_date: Rent revision date
    • irl_reference_quarter: IRL reference quarter (e.g.: "T3-2024")
    • irl_reference_value: Official IRL value
  • Updates rent_regulation_compliance_status with the overall status
  • Updates rent_regulation_applied_at and rent_regulation_last_check with the current date

Currently supported rent control zones:

  • Paris: 75001 to 75020
  • Lyon: 69001 to 69009, 69100
  • Plaine Commune: 93200, 93300, 93400, 93450, 93800, 93120, 93430, 93380, 93240
  • Est Ensemble: 93170, 93000, 93140, 93310, 93260, 93100, 93130, 93500, 93230
  • Montpellier: 34000, 34070, 34080, 34090
  • Bordeaux: 33000, 33100, 33200, 33300, 33800
  • Lille: 59000, 59800, 59160, 59260
  • Pays Basque: All 64xxx postal codes
  • Grenoble: All 38xxx postal codes

Important: This operation modifies the lease. Make sure you have leases:write permissions.

post/leases/{lease_id}/compliance/update

Request

  • Base URL: https://api.faireplace.com/api
  • URL: https://api.faireplace.com/api/leases/{lease_id}/compliance/update
  • Auth: HTTP bearer

Path parameters

lease_idstring uuid required
Example:550e8400-e29b-41d4-a716-446655440000

Lease ID to check and update

Response

Compliance checked and lease updated successfully.

The response contains the compliance check result with all calculated information. The lease has been automatically updated in the database with:

  • Calculated reference rents
  • IRL information
  • Compliance status
  • Regulation metadata
lease_idstring uuid required

Lease ID

country_codestring required

Country code

country_namestring required

Country name

postal_codestring required

Postal code

rent_revision_datestring date nullable

Rent revision date

irl_reference_quarterstring nullable

IRL reference quarter

irl_reference_valuenumber nullable

IRL reference value

Example response

{
  "country_code": "FR",
  "compliance_checks": [
    {
      "check_type": "RentControl",
      "status": "Compliant"
    }
  ],
  "overall_status": "Compliant"
}

Changes

No recorded changes to this operation across all 1 revision of this API.