{"openapi": "3.0.3", "info": {"title": "RematesDB", "version": "0.1.0 (v1)", "description": "API central de datos inmobiliarios y remates bancarios para desarrolladores, brokers e integradores."}, "paths": {"/api/v1/auction-assets/": {"get": {"operationId": "auction_assets_list", "description": "Consulta remates activos y programados. external_id coincide exactamente con asset_id; id es el UUID de detalle. q es el par\u00e1metro can\u00f3nico de b\u00fasqueda indexada.", "summary": "Listar remates judiciales", "parameters": [{"in": "query", "name": "asset_type", "schema": {"type": "string"}}, {"in": "query", "name": "city", "schema": {"type": "string"}, "description": "Alias de compatibilidad obsoleto; aceptado solo cuando el municipio en cat\u00e1logo es \u00fanico.", "deprecated": true, "examples": {"Ambiguous": {"value": "Centro", "summary": "ambiguous"}}}, {"in": "query", "name": "debt_max", "schema": {"type": "number"}}, {"in": "query", "name": "debt_min", "schema": {"type": "number"}}, {"in": "query", "name": "external_id", "schema": {"type": "string"}, "description": "Coincidencia exacta con AuctionAsset.asset_id; no el UUID id."}, {"in": "query", "name": "is_active", "schema": {"type": "boolean"}}, {"in": "query", "name": "legal_stage", "schema": {"type": "string"}}, {"in": "query", "name": "municipality", "schema": {"type": "string"}, "description": "Nombre del municipio o alcald\u00eda para presentaci\u00f3n."}, {"in": "query", "name": "municipality_id", "schema": {"type": "string"}, "description": "cvegeo oficial del INEGI (5 d\u00edgitos); nunca un nombre de presentaci\u00f3n."}, {"name": "ordering", "required": false, "in": "query", "description": "Qu\u00e9 campo usar para ordenar los resultados.", "schema": {"type": "string"}}, {"name": "page", "required": false, "in": "query", "description": "Un n\u00famero de p\u00e1gina dentro del conjunto de resultados paginado.", "schema": {"type": "integer"}}, {"name": "page_size", "required": false, "in": "query", "description": "N\u00famero de resultados a devolver por p\u00e1gina.", "schema": {"type": "integer"}}, {"in": "query", "name": "portfolio", "schema": {"type": "string"}}, {"in": "query", "name": "possession_status", "schema": {"type": "string"}}, {"in": "query", "name": "property_type", "schema": {"type": "string"}}, {"in": "query", "name": "q", "schema": {"type": "string"}, "description": "B\u00fasqueda can\u00f3nica indexada sobre asset_id, direcci\u00f3n y municipio."}, {"in": "query", "name": "search", "schema": {"type": "string"}, "description": "Alias deprecado de q; valores no vac\u00edos conflictivos devuelven invalid_filter.", "deprecated": true}, {"in": "query", "name": "source", "schema": {"type": "string"}}, {"in": "query", "name": "state", "schema": {"type": "string"}, "description": "Nombre del estado para presentaci\u00f3n; CDMX y DF resuelven a Ciudad de M\u00e9xico."}, {"in": "query", "name": "state_code", "schema": {"type": "string"}, "description": "C\u00f3digo cve_ent oficial del INEGI (2 d\u00edgitos)."}, {"in": "query", "name": "status", "schema": {"type": "string"}}, {"in": "query", "name": "value_max", "schema": {"type": "number"}}, {"in": "query", "name": "value_min", "schema": {"type": "number"}}], "tags": ["auction-assets"], "security": [{"ApiKeyAuth": []}], "responses": {"200": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/PaginatedAuctionPublicList"}, "examples": {"RemateEjemplo": {"value": {"count": 120, "next": "https://api.rematesdb.com/api/v1/properties/?page=2", "previous": null, "page": 1, "page_size": 25, "results": [{"id": "3c9d7e2f-5a1b-4d80-8c22-9f5e1b0d0002", "property": "7b8e5c1a-2f3b-4c91-9e11-8a4d2c7e0001", "property_details": {"id": "7b8e5c1a-2f3b-4c91-9e11-8a4d2c7e0001", "address_normalized": "Avenida Insurgentes Sur 1602, Cr\u00e9dito Constructor, Benito Ju\u00e1rez, Ciudad de M\u00e9xico", "colony": "Cr\u00e9dito Constructor", "municipality": "Benito Ju\u00e1rez", "state": "Ciudad de M\u00e9xico", "property_type": "departamento", "completeness_score": 92}, "title": "Departamento en Cr\u00e9dito Constructor", "source_url": "https://boletinjudicial.cdmx.gob.mx/edictos/REM-2026-0042", "current_price": "2850000.00", "minimum_price": "1900000.00", "bid_amount": "1900000.00", "appraised_value": "3200000.00", "auction_number": "1", "listing_type": "judicial", "provider_id": "EDIC-CDMX-2026-0042", "source_created_at": "2026-09-15T09:00:00Z", "state": "Ciudad de M\u00e9xico", "state_code": "09", "municipality": "Benito Ju\u00e1rez", "municipality_id": "09014", "asset_id": "REM-2026-0042", "asset_type": "auction", "status": "active", "legal_stage": "remate_primera_almoneda", "published_value": "2850000.00", "debt_amount": "1450000.00", "currency": "MXN", "auction_date": "2026-11-25T11:00:00Z", "possession_status": "sin_posesion", "portfolio": "Bancario Hipotecario", "description": "Remate judicial en primera almoneda con postura legal sobre el 66.6% del aval\u00fao.", "notes": "Audiencia se\u00f1alada ante juzgado civil de la CDMX.", "is_active": true, "updated_at": "2026-10-20T14:30:00Z", "source_updated_at": "2026-10-18T10:00:00Z"}]}, "summary": "remate_ejemplo"}}}}, "description": ""}}}}, "/api/v1/auction-assets/{id}/": {"get": {"operationId": "auction_assets_retrieve", "description": "Obtiene los datos procesales, econ\u00f3micos y comerciales de un remate por su UUID.", "summary": "Detalle de remate judicial", "parameters": [{"in": "path", "name": "id", "schema": {"type": "string", "format": "uuid"}, "description": "Un Cadena UUID que identifique este auction asset.", "required": true}], "tags": ["auction-assets"], "security": [{"ApiKeyAuth": []}], "responses": {"200": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AuctionPublic"}, "examples": {"RemateEjemplo": {"value": {"id": "3c9d7e2f-5a1b-4d80-8c22-9f5e1b0d0002", "property": "7b8e5c1a-2f3b-4c91-9e11-8a4d2c7e0001", "property_details": {"id": "7b8e5c1a-2f3b-4c91-9e11-8a4d2c7e0001", "address_normalized": "Avenida Insurgentes Sur 1602, Cr\u00e9dito Constructor, Benito Ju\u00e1rez, Ciudad de M\u00e9xico", "colony": "Cr\u00e9dito Constructor", "municipality": "Benito Ju\u00e1rez", "state": "Ciudad de M\u00e9xico", "property_type": "departamento", "completeness_score": 92}, "title": "Departamento en Cr\u00e9dito Constructor", "source_url": "https://boletinjudicial.cdmx.gob.mx/edictos/REM-2026-0042", "current_price": "2850000.00", "minimum_price": "1900000.00", "bid_amount": "1900000.00", "appraised_value": "3200000.00", "auction_number": "1", "listing_type": "judicial", "provider_id": "EDIC-CDMX-2026-0042", "source_created_at": "2026-09-15T09:00:00Z", "state": "Ciudad de M\u00e9xico", "state_code": "09", "municipality": "Benito Ju\u00e1rez", "municipality_id": "09014", "asset_id": "REM-2026-0042", "asset_type": "auction", "status": "active", "legal_stage": "remate_primera_almoneda", "published_value": "2850000.00", "debt_amount": "1450000.00", "currency": "MXN", "auction_date": "2026-11-25T11:00:00Z", "possession_status": "sin_posesion", "portfolio": "Bancario Hipotecario", "description": "Remate judicial en primera almoneda con postura legal sobre el 66.6% del aval\u00fao.", "notes": "Audiencia se\u00f1alada ante juzgado civil de la CDMX.", "is_active": true, "updated_at": "2026-10-20T14:30:00Z", "source_updated_at": "2026-10-18T10:00:00Z"}, "summary": "remate_ejemplo"}}}}, "description": ""}}}}, "/api/v1/map/properties/": {"get": {"operationId": "map_properties_list", "description": "Proyecci\u00f3n geogr\u00e1fica ligera para visualizaci\u00f3n en mapa. Requiere filtro espacial (bbox o near_lat/near_lng/radius_km). Conserva la paginaci\u00f3n est\u00e1ndar y agrega as_of con la fecha y hora de generaci\u00f3n.", "summary": "Marcadores geogr\u00e1ficos de propiedades", "parameters": [{"in": "query", "name": "bathrooms_max", "schema": {"type": "number"}}, {"in": "query", "name": "bathrooms_min", "schema": {"type": "number"}}, {"in": "query", "name": "bbox", "schema": {"type": "string"}, "description": "Envolvente espacial requerida: sw_lat,sw_lng,ne_lat,ne_lng."}, {"in": "query", "name": "bedrooms_max", "schema": {"type": "integer"}}, {"in": "query", "name": "bedrooms_min", "schema": {"type": "integer"}}, {"in": "query", "name": "city", "schema": {"type": "string"}, "description": "Alias de compatibilidad obsoleto; aceptado solo cuando el municipio en cat\u00e1logo es \u00fanico.", "deprecated": true, "examples": {"Ambiguous": {"value": "Centro", "summary": "ambiguous"}}}, {"in": "query", "name": "colony", "schema": {"type": "string"}}, {"in": "query", "name": "construction_area_max", "schema": {"type": "number"}}, {"in": "query", "name": "construction_area_min", "schema": {"type": "number"}}, {"in": "query", "name": "external_id", "schema": {"type": "string"}}, {"in": "query", "name": "has_coordinates", "schema": {"type": "boolean"}}, {"in": "query", "name": "is_active", "schema": {"type": "boolean"}}, {"in": "query", "name": "land_area_max", "schema": {"type": "number"}}, {"in": "query", "name": "land_area_min", "schema": {"type": "number"}}, {"in": "query", "name": "municipality", "schema": {"type": "string"}, "description": "Nombre del municipio o alcald\u00eda para presentaci\u00f3n."}, {"in": "query", "name": "municipality_id", "schema": {"type": "string"}, "description": "cvegeo oficial del INEGI (5 d\u00edgitos); nunca un nombre de presentaci\u00f3n."}, {"in": "query", "name": "near_lat", "schema": {"type": "number"}, "description": "Latitud del centro del radio de b\u00fasqueda."}, {"in": "query", "name": "near_lng", "schema": {"type": "number"}, "description": "Longitud del centro del radio de b\u00fasqueda."}, {"name": "page", "required": false, "in": "query", "description": "Un n\u00famero de p\u00e1gina dentro del conjunto de resultados paginado.", "schema": {"type": "integer"}}, {"in": "query", "name": "page_size", "schema": {"type": "integer"}, "description": "Tama\u00f1o de p\u00e1gina para mapa, con tope en 1000."}, {"in": "query", "name": "parking_min", "schema": {"type": "integer"}}, {"in": "query", "name": "postal_code", "schema": {"type": "string"}}, {"in": "query", "name": "property_type", "schema": {"type": "string"}}, {"in": "query", "name": "radius_km", "schema": {"type": "number"}, "description": "Radio positivo de b\u00fasqueda en kil\u00f3metros."}, {"in": "query", "name": "source", "schema": {"type": "string"}}, {"in": "query", "name": "state", "schema": {"type": "string"}, "description": "Nombre del estado para presentaci\u00f3n; CDMX y DF resuelven a Ciudad de M\u00e9xico."}, {"in": "query", "name": "state_code", "schema": {"type": "string"}, "description": "C\u00f3digo cve_ent oficial del INEGI (2 d\u00edgitos)."}, {"in": "query", "name": "updated_after", "schema": {"type": "string", "format": "date-time"}}], "tags": ["map"], "security": [{"ApiKeyAuth": []}], "responses": {"200": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/PaginatedMapPropertyList"}, "examples": {"MarcadorMapaEjemplo": {"value": {"count": 120, "next": "https://api.rematesdb.com/api/v1/properties/?page=2", "previous": null, "page": 1, "page_size": 25, "results": [{"id": "7b8e5c1a-2f3b-4c91-9e11-8a4d2c7e0001", "location": {"latitude": "19.362945", "longitude": "-99.181234"}, "property_type": "departamento", "state": "Ciudad de M\u00e9xico", "state_code": "09", "municipality": "Benito Ju\u00e1rez", "municipality_id": "09014", "is_active": true, "updated_at": "2026-10-20T14:30:00Z", "geocoded_at": "2026-10-20T14:30:00Z", "geocoding_source": "composite", "latest_auction_value": "2850000.00", "latest_auction_status": "active"}], "as_of": "2026-10-26T12:00:00Z"}, "summary": "marcador_mapa_ejemplo"}}}}, "description": ""}}}}, "/api/v1/map/properties/{id}/": {"get": {"operationId": "map_properties_retrieve", "description": "Obtiene la posici\u00f3n y estado de la \u00faltima subasta activa de una propiedad.", "summary": "Detalle de marcador geogr\u00e1fico", "parameters": [{"in": "path", "name": "id", "schema": {"type": "string", "format": "uuid"}, "description": "Un Cadena UUID que identifique este property.", "required": true}], "tags": ["map"], "security": [{"ApiKeyAuth": []}], "responses": {"200": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/MapProperty"}, "examples": {"MarcadorMapaEjemplo": {"value": {"id": "7b8e5c1a-2f3b-4c91-9e11-8a4d2c7e0001", "location": {"latitude": "19.362945", "longitude": "-99.181234"}, "property_type": "departamento", "state": "Ciudad de M\u00e9xico", "state_code": "09", "municipality": "Benito Ju\u00e1rez", "municipality_id": "09014", "is_active": true, "updated_at": "2026-10-20T14:30:00Z", "geocoded_at": "2026-10-20T14:30:00Z", "geocoding_source": "composite", "latest_auction_value": "2850000.00", "latest_auction_status": "active"}, "summary": "marcador_mapa_ejemplo"}}}}, "description": ""}}}}, "/api/v1/properties/": {"get": {"operationId": "properties_list", "description": "Consulta el cat\u00e1logo de propiedades inmobiliarias normalizadas con filtros geogr\u00e1ficos y de caracter\u00edsticas. Se conservan los nombres para presentaci\u00f3n; state_code y municipality_id usan identificadores INEGI.", "summary": "Listar propiedades", "parameters": [{"in": "query", "name": "bathrooms_max", "schema": {"type": "number"}}, {"in": "query", "name": "bathrooms_min", "schema": {"type": "number"}}, {"in": "query", "name": "bbox", "schema": {"type": "string"}}, {"in": "query", "name": "bedrooms_max", "schema": {"type": "integer"}}, {"in": "query", "name": "bedrooms_min", "schema": {"type": "integer"}}, {"in": "query", "name": "city", "schema": {"type": "string"}, "description": "Alias de compatibilidad obsoleto; aceptado solo cuando el municipio en cat\u00e1logo es \u00fanico.", "deprecated": true, "examples": {"Ambiguous": {"value": "Centro", "summary": "ambiguous"}}}, {"in": "query", "name": "colony", "schema": {"type": "string"}}, {"in": "query", "name": "construction_area_max", "schema": {"type": "number"}}, {"in": "query", "name": "construction_area_min", "schema": {"type": "number"}}, {"in": "query", "name": "external_id", "schema": {"type": "string"}}, {"in": "query", "name": "has_coordinates", "schema": {"type": "boolean"}}, {"in": "query", "name": "is_active", "schema": {"type": "boolean"}}, {"in": "query", "name": "land_area_max", "schema": {"type": "number"}}, {"in": "query", "name": "land_area_min", "schema": {"type": "number"}}, {"in": "query", "name": "municipality", "schema": {"type": "string"}, "description": "Nombre del municipio o alcald\u00eda para presentaci\u00f3n."}, {"in": "query", "name": "municipality_id", "schema": {"type": "string"}, "description": "cvegeo oficial del INEGI (5 d\u00edgitos); nunca un nombre de presentaci\u00f3n."}, {"in": "query", "name": "near_lat", "schema": {"type": "string"}}, {"in": "query", "name": "near_lng", "schema": {"type": "string"}}, {"name": "ordering", "required": false, "in": "query", "description": "Qu\u00e9 campo usar para ordenar los resultados.", "schema": {"type": "string"}}, {"name": "page", "required": false, "in": "query", "description": "Un n\u00famero de p\u00e1gina dentro del conjunto de resultados paginado.", "schema": {"type": "integer"}}, {"name": "page_size", "required": false, "in": "query", "description": "N\u00famero de resultados a devolver por p\u00e1gina.", "schema": {"type": "integer"}}, {"in": "query", "name": "parking_min", "schema": {"type": "integer"}}, {"in": "query", "name": "postal_code", "schema": {"type": "string"}}, {"in": "query", "name": "property_type", "schema": {"type": "string"}}, {"in": "query", "name": "radius_km", "schema": {"type": "string"}}, {"name": "search", "required": false, "in": "query", "description": "Un t\u00e9rmino de b\u00fasqueda.", "schema": {"type": "string"}}, {"in": "query", "name": "source", "schema": {"type": "string"}}, {"in": "query", "name": "state", "schema": {"type": "string"}, "description": "Nombre del estado para presentaci\u00f3n; CDMX y DF resuelven a Ciudad de M\u00e9xico."}, {"in": "query", "name": "state_code", "schema": {"type": "string"}, "description": "C\u00f3digo cve_ent oficial del INEGI (2 d\u00edgitos)."}, {"in": "query", "name": "updated_after", "schema": {"type": "string", "format": "date-time"}}], "tags": ["properties"], "security": [{"ApiKeyAuth": []}], "responses": {"200": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/PaginatedPropertyPublicList"}, "examples": {"PropiedadEjemplo": {"value": {"count": 120, "next": "https://api.rematesdb.com/api/v1/properties/?page=2", "previous": null, "page": 1, "page_size": 25, "results": [{"id": "7b8e5c1a-2f3b-4c91-9e11-8a4d2c7e0001", "address_original": "Av. Insurgentes Sur 1602, Cr\u00e9dito Constructor, Benito Ju\u00e1rez, 03940 Ciudad de M\u00e9xico, CDMX", "address_normalized": "Avenida Insurgentes Sur 1602, Cr\u00e9dito Constructor, Benito Ju\u00e1rez, Ciudad de M\u00e9xico", "colony": "Cr\u00e9dito Constructor", "municipality": "Benito Ju\u00e1rez", "state": "Ciudad de M\u00e9xico", "state_code": "09", "municipality_id": "09014", "postal_code": "03940", "country": "MEX", "location": {"latitude": "19.362945", "longitude": "-99.181234"}, "property_type": "departamento", "bedrooms": 2, "bathrooms": 2, "parking_spaces": 1, "land_area_m2": "85.50", "construction_area_m2": "85.50", "completeness_score": 92, "is_active": true, "updated_at": "2026-10-20T14:30:00Z", "geocoded_at": "2026-10-20T14:30:00Z", "geocoding_provider": "google", "geocoding_confidence": "0.9500", "geocoding_accuracy": "ROOFTOP", "geocoding_source": "composite", "geocoding_query": "Avenida Insurgentes Sur 1602, Benito Ju\u00e1rez, CDMX"}]}, "summary": "propiedad_ejemplo"}}}}, "description": ""}}}}, "/api/v1/properties/{id}/": {"get": {"operationId": "properties_retrieve", "description": "Obtiene la ficha t\u00e9cnica completa y la geolocalizaci\u00f3n de una propiedad por su UUID.", "summary": "Detalle de propiedad", "parameters": [{"in": "path", "name": "id", "schema": {"type": "string", "format": "uuid"}, "description": "Un Cadena UUID que identifique este property.", "required": true}], "tags": ["properties"], "security": [{"ApiKeyAuth": []}], "responses": {"200": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/PropertyPublic"}, "examples": {"PropiedadEjemplo": {"value": {"id": "7b8e5c1a-2f3b-4c91-9e11-8a4d2c7e0001", "address_original": "Av. Insurgentes Sur 1602, Cr\u00e9dito Constructor, Benito Ju\u00e1rez, 03940 Ciudad de M\u00e9xico, CDMX", "address_normalized": "Avenida Insurgentes Sur 1602, Cr\u00e9dito Constructor, Benito Ju\u00e1rez, Ciudad de M\u00e9xico", "colony": "Cr\u00e9dito Constructor", "municipality": "Benito Ju\u00e1rez", "state": "Ciudad de M\u00e9xico", "state_code": "09", "municipality_id": "09014", "postal_code": "03940", "country": "MEX", "location": {"latitude": "19.362945", "longitude": "-99.181234"}, "property_type": "departamento", "bedrooms": 2, "bathrooms": 2, "parking_spaces": 1, "land_area_m2": "85.50", "construction_area_m2": "85.50", "completeness_score": 92, "is_active": true, "updated_at": "2026-10-20T14:30:00Z", "geocoded_at": "2026-10-20T14:30:00Z", "geocoding_provider": "google", "geocoding_confidence": "0.9500", "geocoding_accuracy": "ROOFTOP", "geocoding_source": "composite", "geocoding_query": "Avenida Insurgentes Sur 1602, Benito Ju\u00e1rez, CDMX"}, "summary": "propiedad_ejemplo"}}}}, "description": ""}}}}, "/api/v1/valuations/": {"get": {"operationId": "valuations_list", "description": "Consulta el historial de aval\u00faos y estimaciones econ\u00f3micas asociadas a propiedades.", "summary": "Listar valuaciones", "parameters": [{"in": "query", "name": "observed_after", "schema": {"type": "string", "format": "date"}}, {"name": "ordering", "required": false, "in": "query", "description": "Qu\u00e9 campo usar para ordenar los resultados.", "schema": {"type": "string"}}, {"name": "page", "required": false, "in": "query", "description": "Un n\u00famero de p\u00e1gina dentro del conjunto de resultados paginado.", "schema": {"type": "integer"}}, {"name": "page_size", "required": false, "in": "query", "description": "N\u00famero de resultados a devolver por p\u00e1gina.", "schema": {"type": "integer"}}, {"in": "query", "name": "valuation_type", "schema": {"type": "string", "enum": ["appraisal", "auction_base", "bank", "commercial"]}, "description": "* `appraisal` - Appraisal\n* `commercial` - Commercial\n* `bank` - Bank\n* `auction_base` - Auction base"}], "tags": ["valuations"], "security": [{"ApiKeyAuth": []}], "responses": {"200": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/PaginatedPropertyValuationList"}, "examples": {"ValuacionEjemplo": {"value": {"count": 120, "next": "https://api.rematesdb.com/api/v1/properties/?page=2", "previous": null, "page": 1, "page_size": 25, "results": [{"id": "9e2f4a1c-3b5d-4c80-9a22-7e1b5d0c0003", "property": "7b8e5c1a-2f3b-4c91-9e11-8a4d2c7e0001", "valuation_type": "avaluo_comercial", "amount": "3200000.00", "currency": "MXN", "observed_at": "2026-08-10T10:00:00Z", "source": "perito_judicial", "notes": "Aval\u00fao comercial emitido por perito judicial."}]}, "summary": "valuacion_ejemplo"}}}}, "description": ""}}}}, "/api/v1/valuations/{id}/": {"get": {"operationId": "valuations_retrieve", "description": "Obtiene el importe decimal, la moneda y el tipo de un aval\u00fao por su UUID.", "summary": "Detalle de valuaci\u00f3n", "parameters": [{"in": "path", "name": "id", "schema": {"type": "string", "format": "uuid"}, "description": "Un Cadena UUID que identifique este property valuation.", "required": true}], "tags": ["valuations"], "security": [{"ApiKeyAuth": []}], "responses": {"200": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/PropertyValuation"}, "examples": {"ValuacionEjemplo": {"value": {"id": "9e2f4a1c-3b5d-4c80-9a22-7e1b5d0c0003", "property": "7b8e5c1a-2f3b-4c91-9e11-8a4d2c7e0001", "valuation_type": "avaluo_comercial", "amount": "3200000.00", "currency": "MXN", "observed_at": "2026-08-10T10:00:00Z", "source": "perito_judicial", "notes": "Aval\u00fao comercial emitido por perito judicial."}, "summary": "valuacion_ejemplo"}}}}, "description": ""}}}}}, "components": {"securitySchemes": {"ApiKeyAuth": {"type": "apiKey", "in": "header", "name": "X-API-Key"}}, "schemas": {"PaginatedMapPropertyList": {"type": "object", "required": ["count", "page", "page_size", "results", "as_of"], "properties": {"count": {"type": "integer", "example": 120}, "next": {"type": "string", "nullable": true, "format": "uri", "example": "https://api.rematesdb.com/api/v1/properties/?page=2"}, "previous": {"type": "string", "nullable": true, "format": "uri", "example": null}, "page": {"type": "integer", "example": 1}, "page_size": {"type": "integer", "example": 25}, "results": {"type": "array", "items": {"$ref": "#/components/schemas/MapProperty"}}, "as_of": {"type": "string", "format": "date-time", "example": "2026-10-26T12:00:00Z"}}}, "PaginatedPropertyValuationList": {"type": "object", "required": ["count", "page", "page_size", "results"], "properties": {"count": {"type": "integer", "example": 120}, "next": {"type": "string", "nullable": true, "format": "uri", "example": "https://api.rematesdb.com/api/v1/properties/?page=2"}, "previous": {"type": "string", "nullable": true, "format": "uri", "example": null}, "page": {"type": "integer", "example": 1}, "page_size": {"type": "integer", "example": 25}, "results": {"type": "array", "items": {"$ref": "#/components/schemas/PropertyValuation"}}}}, "PaginatedPropertyPublicList": {"type": "object", "required": ["count", "page", "page_size", "results"], "properties": {"count": {"type": "integer", "example": 120}, "next": {"type": "string", "nullable": true, "format": "uri", "example": "https://api.rematesdb.com/api/v1/properties/?page=2"}, "previous": {"type": "string", "nullable": true, "format": "uri", "example": null}, "page": {"type": "integer", "example": 1}, "page_size": {"type": "integer", "example": 25}, "results": {"type": "array", "items": {"$ref": "#/components/schemas/PropertyPublic"}}}}, "PropertyValuation": {"type": "object", "properties": {"id": {"type": "string", "format": "uuid", "readOnly": true}, "property": {"type": "string", "format": "uuid"}, "valuation_type": {"$ref": "#/components/schemas/ValuationTypeEnum"}, "amount": {"type": "string", "format": "decimal", "pattern": "^-?\\d{0,18}(?:\\.\\d{0,2})?$"}, "currency": {"$ref": "#/components/schemas/CurrencyEnum"}, "observed_at": {"type": "string", "format": "date"}, "source": {"type": "string", "format": "uuid", "nullable": true}, "notes": {"type": "string"}}, "required": ["amount", "id", "observed_at", "property"]}, "PaginatedAuctionPublicList": {"type": "object", "required": ["count", "page", "page_size", "results"], "properties": {"count": {"type": "integer", "example": 120}, "next": {"type": "string", "nullable": true, "format": "uri", "example": "https://api.rematesdb.com/api/v1/properties/?page=2"}, "previous": {"type": "string", "nullable": true, "format": "uri", "example": null}, "page": {"type": "integer", "example": 1}, "page_size": {"type": "integer", "example": 25}, "results": {"type": "array", "items": {"$ref": "#/components/schemas/AuctionPublic"}}}}, "AuctionPublic": {"type": "object", "description": "Public projection of an AuctionAsset. No raw_data, no internal FKs.", "properties": {"id": {"type": "string", "format": "uuid", "readOnly": true}, "property": {"type": "string", "format": "uuid"}, "property_details": {"allOf": [{"$ref": "#/components/schemas/PropertyPublic"}], "readOnly": true}, "title": {"type": "string", "nullable": true, "readOnly": true}, "source_url": {"type": "string", "nullable": true, "readOnly": true}, "current_price": {"type": "string", "nullable": true, "readOnly": true}, "minimum_price": {"type": "string", "nullable": true, "readOnly": true}, "bid_amount": {"type": "string", "format": "decimal", "pattern": "^-?\\d{0,12}(?:\\.\\d{0,2})?$", "nullable": true, "readOnly": true}, "appraised_value": {"type": "string", "nullable": true, "readOnly": true}, "auction_number": {"type": "integer", "nullable": true, "readOnly": true}, "listing_type": {"type": "string", "nullable": true, "readOnly": true}, "provider_id": {"type": "string", "nullable": true, "readOnly": true}, "source_created_at": {"type": "string", "nullable": true, "readOnly": true}, "state": {"type": "string", "readOnly": true}, "state_code": {"type": "string", "nullable": true, "readOnly": true}, "municipality": {"type": "string", "readOnly": true}, "municipality_id": {"type": "string", "nullable": true, "readOnly": true}, "asset_id": {"type": "string", "maxLength": 64}, "asset_type": {"oneOf": [{"$ref": "#/components/schemas/AssetTypeEnum"}, {"$ref": "#/components/schemas/BlankEnum"}]}, "status": {"type": "string", "readOnly": true, "description": "AuctionStatus: active, suspended, closed, or cancelled."}, "legal_stage": {"type": "string", "maxLength": 128}, "published_value": {"type": "string", "format": "decimal", "pattern": "^-?\\d{0,12}(?:\\.\\d{0,2})?$"}, "debt_amount": {"type": "string", "format": "decimal", "pattern": "^-?\\d{0,12}(?:\\.\\d{0,2})?$"}, "currency": {"type": "string", "maxLength": 8}, "auction_date": {"type": "string", "format": "date-time", "nullable": true}, "possession_status": {"type": "string", "maxLength": 32}, "portfolio": {"type": "string", "nullable": true, "maxLength": 64}, "description": {"type": "string"}, "notes": {"type": "string"}, "is_active": {"type": "boolean", "readOnly": true, "description": "Provider publication/visibility flag; independent of status."}, "updated_at": {"type": "string", "format": "date-time", "readOnly": true, "description": "Provider's internal record modification time."}, "source_updated_at": {"type": "string", "format": "date-time", "readOnly": true, "nullable": true, "description": "Nullable timestamp observed from the upstream source."}}, "required": ["appraised_value", "auction_number", "bid_amount", "current_price", "debt_amount", "id", "is_active", "listing_type", "minimum_price", "municipality", "municipality_id", "property", "property_details", "provider_id", "published_value", "source_created_at", "source_updated_at", "source_url", "state", "state_code", "status", "title", "updated_at"]}, "MapProperty": {"type": "object", "description": "Lightweight geographic projection for ``/api/v1/map/properties/``.\n\nPR-3 / Fase 5: adds the geocoding provenance needed by map frontends\n(``geocoded_at``, ``geocoding_source``) plus the latest active\nauction's ``value/status`` via annotations from the view's queryset.\nNo raw provider payload, no address fields \u2014 just enough to render\na marker and a tooltip.", "properties": {"id": {"type": "string", "format": "uuid", "readOnly": true}, "location": {"type": "object", "additionalProperties": {}, "readOnly": true}, "property_type": {"type": "string", "maxLength": 64}, "state": {"type": "string", "maxLength": 64}, "state_code": {"type": "string", "nullable": true, "readOnly": true}, "municipality": {"type": "string", "maxLength": 256}, "municipality_id": {"type": "string", "nullable": true, "readOnly": true}, "is_active": {"type": "boolean"}, "updated_at": {"type": "string", "format": "date-time", "readOnly": true, "description": "Provider's internal property record modification time."}, "geocoded_at": {"type": "string", "format": "date-time", "nullable": true}, "geocoding_source": {"oneOf": [{"$ref": "#/components/schemas/GeocodingSourceEnum"}, {"$ref": "#/components/schemas/BlankEnum"}]}, "latest_auction_value": {"type": "string", "format": "decimal", "pattern": "^-?\\d{0,12}(?:\\.\\d{0,2})?$", "readOnly": true}, "latest_auction_status": {"type": "string", "readOnly": true}}, "required": ["id", "latest_auction_status", "latest_auction_value", "location", "municipality_id", "state_code", "updated_at"]}, "PropertyPublic": {"type": "object", "description": "Public projection of a Property. No raw_data, no fingerprint.", "properties": {"id": {"type": "string", "format": "uuid", "readOnly": true}, "address_original": {"type": "string", "maxLength": 1024}, "address_normalized": {"type": "string", "maxLength": 1024}, "colony": {"type": "string", "maxLength": 256}, "municipality": {"type": "string", "maxLength": 256}, "state": {"type": "string", "maxLength": 64}, "state_code": {"type": "string", "nullable": true, "readOnly": true}, "municipality_id": {"type": "string", "nullable": true, "readOnly": true}, "postal_code": {"type": "string", "maxLength": 10}, "country": {"type": "string", "maxLength": 2}, "location": {"type": "object", "additionalProperties": {"type": "string", "nullable": true}, "readOnly": true}, "property_type": {"type": "string", "maxLength": 64}, "bedrooms": {"type": "integer", "maximum": 32767, "minimum": 0, "nullable": true}, "bathrooms": {"type": "string", "format": "decimal", "pattern": "^-?\\d{0,3}(?:\\.\\d{0,1})?$"}, "parking_spaces": {"type": "integer", "maximum": 32767, "minimum": 0, "nullable": true}, "land_area_m2": {"type": "string", "format": "decimal", "pattern": "^-?\\d{0,12}(?:\\.\\d{0,2})?$"}, "construction_area_m2": {"type": "string", "format": "decimal", "pattern": "^-?\\d{0,12}(?:\\.\\d{0,2})?$"}, "completeness_score": {"type": "string", "format": "decimal", "pattern": "^-?\\d{0,3}(?:\\.\\d{0,2})?$"}, "is_active": {"type": "boolean"}, "updated_at": {"type": "string", "format": "date-time", "readOnly": true, "description": "Provider record modification time."}, "geocoded_at": {"type": "string", "format": "date-time", "nullable": true}, "geocoding_provider": {"type": "string", "maxLength": 64}, "geocoding_confidence": {"type": "string", "format": "decimal", "pattern": "^-?\\d{0,1}(?:\\.\\d{0,4})?$"}, "geocoding_accuracy": {"type": "string", "maxLength": 64}, "geocoding_source": {"oneOf": [{"$ref": "#/components/schemas/GeocodingSourceEnum"}, {"$ref": "#/components/schemas/BlankEnum"}]}, "geocoding_query": {"type": "string", "maxLength": 1024}}, "required": ["address_normalized", "address_original", "bathrooms", "completeness_score", "construction_area_m2", "geocoding_confidence", "id", "land_area_m2", "location", "municipality_id", "state_code", "updated_at"]}, "CurrencyEnum": {"enum": ["MXN", "USD"], "type": "string", "description": "* `MXN` - MXN\n* `USD` - USD"}, "GeocodingSourceEnum": {"enum": ["raw", "derived"], "type": "string", "description": "* `raw` - raw\n* `derived` - derived"}, "BlankEnum": {"enum": [""]}, "AssetTypeEnum": {"enum": ["bank_auction", "cesion", "adjudicacion", "judicial"], "type": "string", "description": "* `bank_auction` - Bank auction\n* `cesion` - Cesion de derechos\n* `adjudicacion` - Adjudicacion\n* `judicial` - Subasta judicial"}, "ValuationTypeEnum": {"enum": ["appraisal", "commercial", "bank", "auction_base"], "type": "string", "description": "* `appraisal` - Appraisal\n* `commercial` - Commercial\n* `bank` - Bank\n* `auction_base` - Auction base"}}}}