Skip to main content

Get All Property Types

GET /api/metadata/property-types
Retrieves all available property types with their associated subtypes.

Response

success
boolean
required
Indicates if the request was successful
data
array
required
Array of property type objects
{
  "success": true,
  "data": [
    {
      "id": 1,
      "name": "Casa",
      "slug": "casa",
      "subtypes": [
        {
          "id": 1,
          "name": "Casa en barrio cerrado",
          "slug": "casa-barrio-cerrado",
          "type_id": 1
        },
        {
          "id": 2,
          "name": "Casa en country",
          "slug": "casa-country",
          "type_id": 1
        }
      ]
    },
    {
      "id": 2,
      "name": "Departamento",
      "slug": "departamento",
      "subtypes": [
        {
          "id": 3,
          "name": "Monoambiente",
          "slug": "monoambiente",
          "type_id": 2
        },
        {
          "id": 4,
          "name": "Departamento tipo dúplex",
          "slug": "departamento-duplex",
          "type_id": 2
        },
        {
          "id": 5,
          "name": "Departamento en torre",
          "slug": "departamento-torre",
          "type_id": 2
        }
      ]
    },
    {
      "id": 3,
      "name": "PH",
      "slug": "ph",
      "subtypes": [
        {
          "id": 6,
          "name": "PH con jardín",
          "slug": "ph-jardin",
          "type_id": 3
        },
        {
          "id": 7,
          "name": "PH al fondo",
          "slug": "ph-fondo",
          "type_id": 3
        }
      ]
    }
  ]
}

Get Property Subtypes

GET /api/metadata/property-subtypes
Retrieves property subtypes, optionally filtered by property type.

Query Parameters

propertyTypeId
integer
Filter subtypes by property type ID. If not provided, returns all subtypes.

Response

success
boolean
required
Indicates if the request was successful
data
array
required
Array of property subtype objects
{
  "success": true,
  "data": [
    {
      "id": 1,
      "name": "Casa en barrio cerrado",
      "slug": "casa-barrio-cerrado",
      "type_id": 1
    },
    {
      "id": 2,
      "name": "Casa en country",
      "slug": "casa-country",
      "type_id": 1
    },
    {
      "id": 3,
      "name": "Monoambiente",
      "slug": "monoambiente",
      "type_id": 2
    }
  ]
}

Available Property Types

The system includes the following property types:
  • Casa (House)
  • Departamento (Apartment)
  • PH (Townhouse)
  • Terreno (Land)
  • Local comercial (Commercial Space)
  • Galpón (Warehouse)
  • Oficina comercial (Commercial Office)
  • Campo (Rural Property)
  • Depósito (Storage)
  • Bodega (Cellar)
  • Consultorio (Medical Office)
  • Fondo de comercio (Business)
  • Hotel (Hotel)
  • Cochera (Parking Space)

Build docs developers (and LLMs) love