Energy Diagnosis API
Manage DPE certificates (Diagnostic de Performance Energetique) — the mandatory energy performance assessments required for all French rental properties. Track energy ratings, validity, and compliance.
Quick Example
Code
Common Workflows
Ensure compliance before leasing
GET /api/places/{place_id}/energy-diagnoses-- Check if a valid DPE existsPOST /api/energy-diagnoses-- Upload DPE if missing (specifyplace_idin the body)- The DPE rating will appear on the lease document
Monitor DPE expiration across portfolio
GET /api/energy-diagnoses-- List all diagnoses (supports filtering byplace_id,energy_label,ges_label)- Check the
valid_untilfield on each diagnosis to identify upcoming expirations - Schedule renewal before expiration (DPE valid for 10 years)
Overview
Energy diagnosis management includes:
- DPE Certificates: Official energy performance certificates
- Energy Ratings: A-G energy efficiency classifications (energy label and GES label)
- Compliance Tracking: Mandatory diagnosis requirements
- Validity Management: Certificate expiration and renewal
- Building vs Unit: Assessments at place level or estate (unit) level
Authentication
Requires PropertiesRead, PropertiesWrite, or PropertiesDelete permissions.
Base URL
Energy diagnosis endpoints:
- Main CRUD:
/api/energy-diagnosesand/api/energy-diagnoses/{id} - By Place:
/api/places/{place_id}/energy-diagnoses - By Estate:
/api/places/{place_id}/estates/{estate_id}/energy-diagnoses
Core Operations
List All Energy Diagnoses
GET /api/energy-diagnoses
Supports pagination (page, limit) and filtering by place_id, estate_id, energy_label, ges_label.
Response:
Code
List Energy Diagnoses by Place
GET /api/places/{place_id}/energy-diagnoses
Returns all diagnoses associated with a specific place.
Create Energy Diagnosis
POST /api/energy-diagnoses
Must specify either place_id or estate_id in the body, but not both.
Request:
Code
Required fields: reference_number, diagnosis_date, valid_until, energy_label, ges_label, construction_year
Get Energy Diagnosis
GET /api/energy-diagnoses/{id}
Update Energy Diagnosis
PUT /api/energy-diagnoses/{id}
For optional fields, omitting the field preserves the existing value, sending null removes it.
Delete Energy Diagnosis
DELETE /api/energy-diagnoses/{id}
Estate-Level Diagnoses
List Estate Energy Diagnoses
GET /api/places/{place_id}/estates/{estate_id}/energy-diagnoses
Returns all diagnoses associated with a specific estate (unit) within a place.
Energy Ratings
Energy Label Scale (EnergyLabel)
- A: <= 50 kWh/m2/year (Very efficient)
- B: 51-90 kWh/m2/year (Efficient)
- C: 91-150 kWh/m2/year (Good)
- D: 151-230 kWh/m2/year (Average)
- E: 231-330 kWh/m2/year (Poor)
- F: 331-420 kWh/m2/year (Very poor)
- G: > 420 kWh/m2/year (Extremely poor)
GES Label Scale (GesLabel) -- Greenhouse Gas Emissions
- A: <= 5 kg CO2/m2/year (Very low impact)
- B: 6-10 kg CO2/m2/year (Low impact)
- C: 11-20 kg CO2/m2/year (Moderate impact)
- D: 21-35 kg CO2/m2/year (Average impact)
- E: 36-55 kg CO2/m2/year (High impact)
- F: 56-80 kg CO2/m2/year (Very high impact)
- G: > 80 kg CO2/m2/year (Extremely high impact)
Validation Rules
The following business rules are enforced server-side:
- Exclusivity: A DPE must be associated with either a
place_idor anestate_id, but not both. At least one must be provided during creation. - Value constraints:
energy_consumption>= 0,ges_emission>= 0,heated_area> 0,construction_yearbetween 1800 and the current year. - Format constraints:
reference_numberis 1-100 characters (required),notesmax 1000 characters, dates in ISO format (YYYY-MM-DD). - Temporal constraints:
valid_untilmust be later thandiagnosis_date, with a maximum validity of 10 years. - Label constraints:
energy_labelandges_labelare required and must be one of A, B, C, D, E, F, G.
Error Responses
400 Bad Request
Code
422 Unprocessable Entity
Code
Common Use Cases
Property Marketing
- Display energy ratings in property listings
- Highlight energy-efficient properties
- Provide energy cost estimates to tenants
Compliance Management
- Track diagnosis validity dates via the
valid_untilfield - Schedule renewal reminders
- Ensure all properties have valid diagnoses
Energy Performance Tracking
- Monitor building energy efficiency
- Track improvements after renovations
- Compare performance across portfolio
Legal Requirements
- Provide mandatory diagnosis for lease agreements
- Include energy ratings in property advertisements
- Archive diagnosis certificates for legal compliance
French Legal Requirements
Mandatory Diagnoses
- All Rentals: DPE required for all rental properties
- Sales: DPE mandatory for property sales
- Validity: 10-year validity period for DPE
- Display: Energy rating must be shown in advertisements
Penalties
- Missing or invalid DPE can result in fines
- Incorrect information can invalidate lease agreements
- Professional liability for diagnosticians
Recent Changes
- New DPE methodology since July 2021
- Stricter energy consumption calculations
- Enhanced reliability and accuracy requirements
Integration Notes
- Property Listings: Energy ratings displayed in marketing materials
- Lease Compliance: Automatic validation of diagnosis requirements
- Renewal Tracking: Monitor
valid_untildates for expiring diagnoses - Document Storage: Use
media_idto link uploaded DPE PDF documents - Reporting: Energy performance analytics and portfolio reporting