Property Object
ThePropiedad (Property) object represents a real estate property in the system. It contains all the necessary information about a property listing.
Schema Definition
The property schema is defined using Zod validation library with OpenAPI integration for automatic documentation generation.Fields
codigo_id
Length: Exactly 6 characters
Required: Optional (auto-generated if not provided)
Example:
Description: Unique property identifier code. Must be exactly 6 characters if provided. If not provided during creation, the system will automatically generate a unique code using alphanumeric characters (A-Z, 1-9, excluding O, 0, I, L for clarity).
Required: Optional (auto-generated if not provided)
Example:
"ZN1001"Description: Unique property identifier code. Must be exactly 6 characters if provided. If not provided during creation, the system will automatically generate a unique code using alphanumeric characters (A-Z, 1-9, excluding O, 0, I, L for clarity).
pais
Example:
Description: Country where the property is located. No specific format restrictions.
"Argentina"Description: Country where the property is located. No specific format restrictions.
ciudad
Example:
Description: City or municipality where the property is located.
"Tigre"Description: City or municipality where the property is located.
direccion
Example:
Description: Complete street address of the property including street name and number.
"Av. Cazón 123"Description: Complete street address of the property including street name and number.
ambientes
Example:
Description: Number of rooms/environments in the property. Typically includes bedrooms, living room, dining room, etc.
3Description: Number of rooms/environments in the property. Typically includes bedrooms, living room, dining room, etc.
metros_cuadrados
Example:
Description: Total property size in square meters. Can be a decimal value for precise measurements.
75.5Description: Total property size in square meters. Can be a decimal value for precise measurements.
precio
Example:
Description: Property price in local currency. For rentals, this typically represents monthly rent. For sales, this is the total purchase price.
120000Description: Property price in local currency. For rentals, this typically represents monthly rent. For sales, this is the total purchase price.
tipo_contratacion
Allowed values:
Example:
Description: Type of property contract or listing type.
"Alquiler" | "Venta"Example:
"Venta"Description: Type of property contract or listing type.
"Alquiler": Property available for rent"Venta": Property available for sale
estado
Allowed values:
Example:
Description: Current status of the property in the listing process.
"Disponible" | "Reservado" | "Alquilado" | "Vendido"Example:
"Disponible"Description: Current status of the property in the listing process.
"Disponible": Available for viewing and contracting"Reservado": Reserved by a potential client"Alquilado": Currently rented"Vendido": Sold (no longer available)
descripcion
Example:
Description: Optional additional description or notes about the property. Can include features, amenities, condition, or other relevant information.
"Hermosa vista al río"Description: Optional additional description or notes about the property. Can include features, amenities, condition, or other relevant information.