Owners API
Manage property owners — individuals, companies, or SCI/SC (Societe Civile Immobiliere). Owners are linked to buildings and apartments. Every place needs an owner before you can create leases.
Quick Example
Code
Common Workflows
Create an SCI owner
POST /api/owners— Setowner_category: "sc/sci", includelegal_nameandregistration_numberPOST /api/places— Create place with this owner's ID
Find which properties an owner has
GET /api/owners/places/{place_id}/owner— Get owner of a specific buildingGET /api/owners/estates/{estate_id}/owner— Get owner of a specific unit
Overview
The Owners API provides comprehensive owner management with support for:
- Individual Owners: Personal property owners with contact information
- Corporate Owners: Companies and businesses that own properties
- SCI/SC Entities: Société Civile/Société Civile Immobilière (French investment structures)
- Address Management: Complete address information for owners
- Property Associations: Link owners to their places and estates
- Authentication Integration: Connection with Better Auth system
Authentication
All endpoints require authentication with the following permissions:
- PropertiesRead: For GET operations
- PropertiesWrite: For POST and PUT operations
- PropertiesDelete: For DELETE operations
Base URL
All owner endpoints are prefixed with /api/owners
Core Owner Operations
List Owners
GET /api/owners
Retrieve all owners for the tenant.
Response:
Code
Create Owner
POST /api/owners
Create a new property owner.
Request Body:
Code
Response: 201 Created
Returns the created owner object with generated ID and timestamps.
Get Owner
GET /api/owners/{id}
Retrieve a specific owner by ID.
Path Parameters:
id(UUID): The owner ID
Response: 200 OK
Returns the owner object.
Update Owner
PUT /api/owners/{id}
Update an existing owner. All fields are optional in update requests.
Path Parameters:
id(UUID): The owner ID
Request Body:
Code
Response: 200 OK
Returns the updated owner object.
Delete Owner
DELETE /api/owners/{id}
Delete an owner (only possible if not associated with properties).
Path Parameters:
id(UUID): The owner ID
Response: 204 No Content
Property Association Operations
Get Owner by Place
GET /api/owners/places/{id}/owner
Retrieve the owner of a specific place.
Path Parameters:
id(UUID): The place ID
Response: 200 OK
Returns the owner object associated with the place.
Example Response:
Code
Get Owner by Estate
GET /api/owners/estates/{id}/owner
Retrieve the owner of a specific estate.
Path Parameters:
id(UUID): The estate ID
Response: 200 OK
Returns the owner object associated with the estate.
Data Types and Structures
Owner Categories
individual- Individual person ownercompany- Corporate entity ownersc/sci- Société Civile/Société Civile Immobilière
Individual Owner Fields
Code
Company Owner Fields
Code
SCI/SC Owner Fields
Code
Address Structure
Complete Address Fields
Code
Address Examples
Individual Owner Address:
Code
Company Address:
Code
Validation Rules
Required Fields by Category
- All Categories:
title,last_name,owner_category,country,street_name,postal_code,city,mobile_phone,email - Individual: No additional requirements
- Company: Should have
legal_nameandregistration_numberfor legal compliance - SC/SCI: Should have
legal_nameandregistration_numberfor legal structure
Field Validation
- Title: 1-10 characters
- Last Name: 1-255 characters
- First Name: Max 255 characters
- Email: Valid email format with @ and domain
- Phone Numbers: Max 20 characters each
- Postal Code: Max 20 characters
- Registration Number: Max 50 characters for business entities
Error Responses
Validation Errors
400 Bad Request
Code
Category Validation Error
Code
Not Found
404 Not Found
Code
Conflict
409 Conflict
Code
Common Use Cases
Creating an Individual Property Owner
- Create owner with
POST /api/owners - Set
owner_categoryto "individual" - Provide personal information and contact details
- Include complete address information
- Associate with properties through estate/place management
Managing Corporate Property Owners
- Create owner with
owner_categoryset to "company" - Use company name in
last_namefield - Include contact person in
first_name - Add legal company information in
legal_name - Include business registration number
SCI/SC Investment Structures
- Create owner with
owner_categoryset to "sc/sci" - Provide SCI/SC legal name and registration
- Include manager contact information
- Set up proper legal documentation references
Finding Property Ownership
- Use
GET /api/owners/places/{id}/ownerto find place owner - Use
GET /api/owners/estates/{id}/ownerto find estate owner - Cross-reference with property management records
Owner Contact Updates
- Get current owner with
GET /api/owners/{id} - Update contact information with
PUT /api/owners/{id} - Verify changes are reflected in property records
Integration Notes
- Property Management: Owners are linked to places and estates
- Authentication: Integration with Better Auth through
auth_user_id - Legal Compliance: Different validation rules for entity types
- Contact Management: Integration with general contact system
- Document Management: Owner information used in lease documents
- Financial Systems: Owner details required for rent payments and tax reporting
Business Rules
- Email Uniqueness: Each owner should have a unique email address
- Property Association: Owners can be associated with multiple properties
- Deletion Constraints: Cannot delete owners with active property associations
- Legal Requirements: Company and SCI owners should have registration numbers
- Contact Verification: Mobile phone and email required for all communications
- Address Completeness: Street name, postal code, and city are mandatory
- Category Consistency: Owner type affects required legal documentation
French Legal Considerations
SCI (Société Civile Immobilière)
- Legal entity specifically for real estate investment
- Requires proper registration number
- Manager information must be accurate for legal compliance
- Tax implications require proper legal name documentation
Registration Numbers
- SIRET: For French companies (14 digits)
- SIREN: For business entities (9 digits)
- SCI Registration: Specific to civil real estate companies
Data Retention
- Owner personal data retained according to GDPR
- Business information retention follows commercial code requirements
- Property ownership records maintain legal audit trails