{"openapi":"3.1.0","info":{"title":"ImmoFluss REST API","version":"1.0.0","description":"Öffentliche REST-API von ImmoFluss für Nutzer-Workflows (Skripte, Automatisierungen, eigene Integrationen). Teilt sich die Business-Logik mit dem MCP-Server. Authentifizierung per persönlichem API-Key (`Authorization: Bearer imf_sk_…`) oder OAuth-Access-Token (`imf_at_…`). Schreib-Endpunkte erfordern ein Pro-/Ultra-Abo. Tageskontingent geteilt mit MCP.","contact":{"name":"ImmoFluss","url":"https://immo-fluss.de"}},"servers":[{"url":"https://app.immo-fluss.de/api/v1"}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"http","scheme":"bearer","description":"Persönlicher API-Key (imf_sk_…) im Authorization-Header."},"BearerAuth":{"type":"http","scheme":"bearer","description":"OAuth-2.1-Access-Token des MCP-Servers (imf_at_…)."}}},"paths":{"/status":{"get":{"summary":"Konto-Tier und Tageskontingent abrufen","operationId":"get_status","tags":["Lesen"],"security":[{"ApiKeyAuth":[]},{"BearerAuth":[]}],"responses":{"200":{"description":"Aktueller API-Status des Kontos; verbraucht kein Kontingent","content":{"application/json":{"schema":{"type":"object","properties":{"tier":{"type":"string","enum":["free","prime","ultra"]},"dailyToolCallsUsed":{"type":"integer"},"dailyToolCallLimit":{"type":"integer"},"writeAccess":{"type":"boolean"},"scope":{"type":"array","items":{"type":"string"}}},"required":["tier","dailyToolCallsUsed","dailyToolCallLimit","writeAccess","scope"]}}}},"401":{"description":"Kein/ungültiges Token"}}}},"/properties":{"get":{"summary":"Immobilien auflisten","operationId":"get_properties","tags":["Lesen"],"security":[{"ApiKeyAuth":[]},{"BearerAuth":[]}],"responses":{"200":{"description":"Erfolg","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Kein/ungültiges Token"},"403":{"description":"Fehlender Scope oder Tier (Pro/Ultra) erforderlich"},"422":{"description":"Validierungsfehler"},"429":{"description":"Tageskontingent erreicht"}}},"post":{"summary":"Immobilie anlegen","operationId":"post_properties","tags":["Schreiben"],"security":[{"ApiKeyAuth":[]},{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":150},"adresse":{"type":"string","maxLength":300},"typ":{"type":"string","maxLength":50},"kaufpreis":{"type":"number","minimum":0},"qm":{"type":"number","exclusiveMinimum":0},"baujahr":{"type":"integer","minimum":1500,"maximum":2100},"kaufdatum":{"type":"string","maxLength":10},"geschaetzteKaltmiete":{"type":"number","minimum":0},"notizen":{"type":"string","maxLength":1000}},"required":["name"]}}}},"responses":{"200":{"description":"Erfolg","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Kein/ungültiges Token"},"403":{"description":"Fehlender Scope oder Tier (Pro/Ultra) erforderlich"},"422":{"description":"Validierungsfehler"},"429":{"description":"Tageskontingent erreicht"}}}},"/tenants":{"get":{"summary":"Mieter auflisten","operationId":"get_tenants","tags":["Lesen"],"security":[{"ApiKeyAuth":[]},{"BearerAuth":[]}],"responses":{"200":{"description":"Erfolg","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Kein/ungültiges Token"},"403":{"description":"Fehlender Scope oder Tier (Pro/Ultra) erforderlich"},"422":{"description":"Validierungsfehler"},"429":{"description":"Tageskontingent erreicht"}}},"post":{"summary":"Mieter anlegen","operationId":"post_tenants","tags":["Schreiben"],"security":[{"ApiKeyAuth":[]},{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":150},"immobilieId":{"type":"string","maxLength":100},"kaltmiete":{"type":"number","minimum":0},"nebenkosten":{"type":"number","minimum":0},"kaution":{"type":"number","minimum":0},"haushaltsgroesse":{"type":"integer","minimum":1,"maximum":20},"mietbeginn":{"type":"string","maxLength":10},"mietende":{"type":"string","maxLength":10},"email":{"type":"string","maxLength":150},"telefon":{"type":"string","maxLength":50},"notizen":{"type":"string","maxLength":500}},"required":["name","immobilieId","kaltmiete"]}}}},"responses":{"200":{"description":"Erfolg","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Kein/ungültiges Token"},"403":{"description":"Fehlender Scope oder Tier (Pro/Ultra) erforderlich"},"422":{"description":"Validierungsfehler"},"429":{"description":"Tageskontingent erreicht"}}}},"/deadlines":{"get":{"summary":"Termine & Fristen","operationId":"get_deadlines","tags":["Lesen"],"security":[{"ApiKeyAuth":[]},{"BearerAuth":[]}],"parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","minimum":7,"maximum":730}}],"responses":{"200":{"description":"Erfolg","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Kein/ungültiges Token"},"403":{"description":"Fehlender Scope oder Tier (Pro/Ultra) erforderlich"},"422":{"description":"Validierungsfehler"},"429":{"description":"Tageskontingent erreicht"}}}},"/termine":{"post":{"summary":"Eigenen Termin eintragen","operationId":"post_termine","tags":["Schreiben"],"security":[{"ApiKeyAuth":[]},{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","maxLength":120},"art":{"type":"string","enum":["eigentuemerversammlung","handwerker","uebergabe","besichtigung","frist","sonstiges"]},"date":{"type":"string","maxLength":10},"time":{"type":"string","maxLength":5},"propertyId":{"type":"string","maxLength":100},"note":{"type":"string","maxLength":500}},"required":["date"]}}}},"responses":{"200":{"description":"Erfolg","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Kein/ungültiges Token"},"403":{"description":"Fehlender Scope oder Tier (Pro/Ultra) erforderlich"},"422":{"description":"Validierungsfehler"},"429":{"description":"Tageskontingent erreicht"}}}},"/bank-transactions":{"get":{"summary":"Bankumsätze durchsuchen","operationId":"get_bank_transactions","tags":["Lesen"],"security":[{"ApiKeyAuth":[]},{"BearerAuth":[]}],"responses":{"200":{"description":"Erfolg","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Kein/ungültiges Token"},"403":{"description":"Fehlender Scope oder Tier (Pro/Ultra) erforderlich"},"422":{"description":"Validierungsfehler"},"429":{"description":"Tageskontingent erreicht"}}}},"/nebenkosten-abrechnungen":{"get":{"summary":"Nebenkostenabrechnungen und fehlende Abrechnungen","operationId":"get_nebenkosten_abrechnungen","tags":["Lesen"],"security":[{"ApiKeyAuth":[]},{"BearerAuth":[]}],"parameters":[{"name":"year","in":"query","required":false,"schema":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}}],"responses":{"200":{"description":"Erfolg","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Kein/ungültiges Token"},"403":{"description":"Fehlender Scope oder Tier (Pro/Ultra) erforderlich"},"422":{"description":"Validierungsfehler"},"429":{"description":"Tageskontingent erreicht"}}}},"/rent-status":{"get":{"summary":"Mieteingang eines Monats","operationId":"get_rent_status","tags":["Lesen"],"security":[{"ApiKeyAuth":[]},{"BearerAuth":[]}],"parameters":[{"name":"month","in":"query","required":false,"schema":{"type":"string","maxLength":7}},{"name":"propertyId","in":"query","required":false,"schema":{"type":"string","maxLength":100}}],"responses":{"200":{"description":"Erfolg","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Kein/ungültiges Token"},"403":{"description":"Fehlender Scope oder Tier (Pro/Ultra) erforderlich"},"422":{"description":"Validierungsfehler"},"429":{"description":"Tageskontingent erreicht"}}}},"/tenants/{id}/account":{"get":{"summary":"Mieterkonto mit Rückstand und Zahlungsverlauf","operationId":"get_tenants_id_account","tags":["Lesen"],"security":[{"ApiKeyAuth":[]},{"BearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"ID (tenantId)","schema":{"type":"string"}},{"name":"months","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":36}}],"responses":{"200":{"description":"Erfolg","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Kein/ungültiges Token"},"403":{"description":"Fehlender Scope oder Tier (Pro/Ultra) erforderlich"},"422":{"description":"Validierungsfehler"},"429":{"description":"Tageskontingent erreicht"}}}},"/tenants/{id}/rent-payments":{"post":{"summary":"Miete eines Monats als eingegangen markieren","operationId":"post_tenants_id_rent_payments","tags":["Schreiben"],"security":[{"ApiKeyAuth":[]},{"BearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"ID (tenantId)","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"month":{"type":"string","maxLength":7},"amount":{"type":"number","exclusiveMinimum":0,"maximum":1000000},"paidDate":{"type":"string","maxLength":10}},"required":[]}}}},"responses":{"200":{"description":"Erfolg","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Kein/ungültiges Token"},"403":{"description":"Fehlender Scope oder Tier (Pro/Ultra) erforderlich"},"422":{"description":"Validierungsfehler"},"429":{"description":"Tageskontingent erreicht"}}}},"/loans":{"get":{"summary":"Kredite auflisten","operationId":"get_loans","tags":["Lesen"],"security":[{"ApiKeyAuth":[]},{"BearerAuth":[]}],"responses":{"200":{"description":"Erfolg","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Kein/ungültiges Token"},"403":{"description":"Fehlender Scope oder Tier (Pro/Ultra) erforderlich"},"422":{"description":"Validierungsfehler"},"429":{"description":"Tageskontingent erreicht"}}},"post":{"summary":"Kredit anlegen","operationId":"post_loans","tags":["Schreiben"],"security":[{"ApiKeyAuth":[]},{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":150},"bank":{"type":"string","maxLength":150},"ursprungsBetrag":{"type":"number","exclusiveMinimum":0},"jahreszins":{"type":"number","minimum":0,"maximum":25},"monatlicheRate":{"type":"number","minimum":0},"restschuld":{"type":"number","minimum":0},"startdatum":{"type":"string","maxLength":10},"zinsbindungJahre":{"type":"integer","minimum":0,"maximum":40},"immobilieId":{"type":"string","maxLength":100},"kreditart":{"type":"string","maxLength":60},"tilgungsmodell":{"type":"string","enum":["annuitaet","ratentilgung","endfaellig"]},"tilgungsfreieMonate":{"type":"integer","minimum":0,"maximum":120},"monatlicheTilgung":{"type":"number","minimum":0},"faelligkeitsdatum":{"type":"string","maxLength":10},"tilgungsersatzRate":{"type":"number","minimum":0},"tilgungsersatzBezeichnung":{"type":"string","maxLength":150},"referenzzins":{"type":"string","maxLength":60},"zinsaufschlag":{"type":"number","minimum":-5,"maximum":15}},"required":["name","bank","ursprungsBetrag","jahreszins"]}}}},"responses":{"200":{"description":"Erfolg","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Kein/ungültiges Token"},"403":{"description":"Fehlender Scope oder Tier (Pro/Ultra) erforderlich"},"422":{"description":"Validierungsfehler"},"429":{"description":"Tageskontingent erreicht"}}}},"/expenses":{"get":{"summary":"Ausgaben durchsuchen","operationId":"get_expenses","tags":["Lesen"],"security":[{"ApiKeyAuth":[]},{"BearerAuth":[]}],"parameters":[{"name":"query","in":"query","required":false,"schema":{"type":"string","maxLength":100}},{"name":"category","in":"query","required":false,"schema":{"type":"string","maxLength":100}},{"name":"propertyId","in":"query","required":false,"schema":{"type":"string","maxLength":100}},{"name":"year","in":"query","required":false,"schema":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},{"name":"amount","in":"query","required":false,"schema":{"type":"number"}},{"name":"amountTolerance","in":"query","required":false,"schema":{"type":"number","minimum":0}}],"responses":{"200":{"description":"Erfolg","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Kein/ungültiges Token"},"403":{"description":"Fehlender Scope oder Tier (Pro/Ultra) erforderlich"},"422":{"description":"Validierungsfehler"},"429":{"description":"Tageskontingent erreicht"}}},"post":{"summary":"Ausgabe anlegen","operationId":"post_expenses","tags":["Schreiben"],"security":[{"ApiKeyAuth":[]},{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","maxLength":150},"amount":{"type":"number","exclusiveMinimum":0},"category":{"type":"string","maxLength":100},"paymentDate":{"type":"string","maxLength":10},"propertyId":{"type":"string","maxLength":100},"paymentMethod":{"type":"string","maxLength":50},"notes":{"type":"string","maxLength":500},"isKaufnebenkosten":{"type":"boolean"},"isFinanzierungskosten":{"type":"boolean"},"expenseType":{"type":"string","maxLength":60}},"required":["title","amount","category"]}}}},"responses":{"200":{"description":"Erfolg","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Kein/ungültiges Token"},"403":{"description":"Fehlender Scope oder Tier (Pro/Ultra) erforderlich"},"422":{"description":"Validierungsfehler"},"429":{"description":"Tageskontingent erreicht"}}}},"/expenses/breakdown":{"get":{"summary":"Ausgaben-Auswertung","operationId":"get_expenses_breakdown","tags":["Lesen"],"security":[{"ApiKeyAuth":[]},{"BearerAuth":[]}],"parameters":[{"name":"year","in":"query","required":false,"schema":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},{"name":"propertyId","in":"query","required":false,"schema":{"type":"string","maxLength":100}}],"responses":{"200":{"description":"Erfolg","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Kein/ungültiges Token"},"403":{"description":"Fehlender Scope oder Tier (Pro/Ultra) erforderlich"},"422":{"description":"Validierungsfehler"},"429":{"description":"Tageskontingent erreicht"}}}},"/pending-receipts":{"get":{"summary":"Offene Belege durchsuchen","operationId":"get_pending_receipts","tags":["Lesen"],"security":[{"ApiKeyAuth":[]},{"BearerAuth":[]}],"parameters":[{"name":"query","in":"query","required":false,"schema":{"type":"string","maxLength":100}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["pending","processing","processed","error"]}},{"name":"includeUrls","in":"query","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"Erfolg","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Kein/ungültiges Token"},"403":{"description":"Fehlender Scope oder Tier (Pro/Ultra) erforderlich"},"422":{"description":"Validierungsfehler"},"429":{"description":"Tageskontingent erreicht"}}}},"/portfolio":{"get":{"summary":"Portfolio-Übersicht","operationId":"get_portfolio","tags":["Lesen"],"security":[{"ApiKeyAuth":[]},{"BearerAuth":[]}],"responses":{"200":{"description":"Erfolg","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Kein/ungültiges Token"},"403":{"description":"Fehlender Scope oder Tier (Pro/Ultra) erforderlich"},"422":{"description":"Validierungsfehler"},"429":{"description":"Tageskontingent erreicht"}}}},"/net-worth":{"get":{"summary":"Vermögensstand: Marktwert je Immobilie und Restschuld je Kredit","operationId":"get_net_worth","tags":["Lesen"],"security":[{"ApiKeyAuth":[]},{"BearerAuth":[]}],"responses":{"200":{"description":"Erfolg","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Kein/ungültiges Token"},"403":{"description":"Fehlender Scope oder Tier (Pro/Ultra) erforderlich"},"422":{"description":"Validierungsfehler"},"429":{"description":"Tageskontingent erreicht"}}}},"/fahrten":{"get":{"summary":"Fahrten auflisten","operationId":"get_fahrten","tags":["Lesen"],"security":[{"ApiKeyAuth":[]},{"BearerAuth":[]}],"parameters":[{"name":"year","in":"query","required":false,"schema":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},{"name":"propertyId","in":"query","required":false,"schema":{"type":"string","maxLength":100}},{"name":"category","in":"query","required":false,"schema":{"type":"string","maxLength":100}}],"responses":{"200":{"description":"Erfolg","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Kein/ungültiges Token"},"403":{"description":"Fehlender Scope oder Tier (Pro/Ultra) erforderlich"},"422":{"description":"Validierungsfehler"},"429":{"description":"Tageskontingent erreicht"}}},"post":{"summary":"Fahrt anlegen","operationId":"post_fahrten","tags":["Schreiben"],"security":[{"ApiKeyAuth":[]},{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"startAddress":{"type":"string","maxLength":250},"destinationAddress":{"type":"string","maxLength":250},"category":{"type":"string","maxLength":100},"title":{"type":"string","maxLength":150},"reason":{"type":"string","maxLength":500},"date":{"type":"string","maxLength":10},"dates":{"maxItems":62,"type":"array","items":{"type":"string","maxLength":10}},"numberOfRoundTrips":{"type":"integer","minimum":1,"maximum":365},"oneWayDistanceKm":{"type":"number","exclusiveMinimum":0},"immobilieId":{"type":"string","maxLength":100}},"required":["startAddress","destinationAddress","category"]}}}},"responses":{"200":{"description":"Erfolg","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Kein/ungültiges Token"},"403":{"description":"Fehlender Scope oder Tier (Pro/Ultra) erforderlich"},"422":{"description":"Validierungsfehler"},"429":{"description":"Tageskontingent erreicht"}}}},"/bauzinsen":{"get":{"summary":"Aktuelle Bauzinsen","operationId":"get_bauzinsen","tags":["Lesen"],"security":[{"ApiKeyAuth":[]},{"BearerAuth":[]}],"responses":{"200":{"description":"Erfolg","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Kein/ungültiges Token"},"403":{"description":"Fehlender Scope oder Tier (Pro/Ultra) erforderlich"},"422":{"description":"Validierungsfehler"},"429":{"description":"Tageskontingent erreicht"}}}},"/expenses/{id}":{"patch":{"summary":"Ausgabe bearbeiten","operationId":"patch_expenses_id","tags":["Schreiben"],"security":[{"ApiKeyAuth":[]},{"BearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"ID (expenseId)","schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","maxLength":150},"amount":{"type":"number","exclusiveMinimum":0},"category":{"type":"string","maxLength":100},"paymentDate":{"type":"string","maxLength":10},"propertyId":{"type":"string","maxLength":100},"paymentMethod":{"type":"string","maxLength":50},"notes":{"type":"string","maxLength":500},"isKaufnebenkosten":{"type":"boolean"},"isFinanzierungskosten":{"type":"boolean"},"expenseType":{"type":"string","maxLength":60}},"required":[]}}}},"responses":{"200":{"description":"Erfolg","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Kein/ungültiges Token"},"403":{"description":"Fehlender Scope oder Tier (Pro/Ultra) erforderlich"},"422":{"description":"Validierungsfehler"},"429":{"description":"Tageskontingent erreicht"}}},"delete":{"summary":"Ausgabe löschen","operationId":"delete_expenses_id","tags":["Schreiben"],"security":[{"ApiKeyAuth":[]},{"BearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"ID (expenseId)","schema":{"type":"string"}}],"responses":{"200":{"description":"Erfolg","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Kein/ungültiges Token"},"403":{"description":"Fehlender Scope oder Tier (Pro/Ultra) erforderlich"},"422":{"description":"Validierungsfehler"},"429":{"description":"Tageskontingent erreicht"}}}},"/fahrten/{id}":{"delete":{"summary":"Fahrt löschen","operationId":"delete_fahrten_id","tags":["Schreiben"],"security":[{"ApiKeyAuth":[]},{"BearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"ID (fahrtId)","schema":{"type":"string"}}],"responses":{"200":{"description":"Erfolg","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Kein/ungültiges Token"},"403":{"description":"Fehlender Scope oder Tier (Pro/Ultra) erforderlich"},"422":{"description":"Validierungsfehler"},"429":{"description":"Tageskontingent erreicht"}}}},"/tenants/{id}":{"patch":{"summary":"Mieter bearbeiten","operationId":"patch_tenants_id","tags":["Schreiben"],"security":[{"ApiKeyAuth":[]},{"BearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"ID (tenantId)","schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":150},"email":{"type":"string","maxLength":150},"telefon":{"type":"string","maxLength":50},"kaltmiete":{"type":"number","minimum":0},"nebenkosten":{"type":"number","minimum":0},"kaution":{"type":"number","minimum":0},"haushaltsgroesse":{"type":"integer","minimum":0,"maximum":20},"mietbeginn":{"type":"string","maxLength":10},"mietende":{"type":"string","maxLength":10},"immobilieId":{"type":"string","maxLength":100},"notizen":{"type":"string","maxLength":500}},"required":[]}}}},"responses":{"200":{"description":"Erfolg","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Kein/ungültiges Token"},"403":{"description":"Fehlender Scope oder Tier (Pro/Ultra) erforderlich"},"422":{"description":"Validierungsfehler"},"429":{"description":"Tageskontingent erreicht"}}}},"/loans/{id}":{"patch":{"summary":"Kredit bearbeiten","operationId":"patch_loans_id","tags":["Schreiben"],"security":[{"ApiKeyAuth":[]},{"BearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"ID (loanId)","schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":150},"bank":{"type":"string","maxLength":150},"jahreszins":{"type":"number","minimum":0,"maximum":25},"monatlicheRate":{"type":"number","minimum":0},"restschuld":{"type":"number","minimum":0},"startdatum":{"type":"string","maxLength":10},"zinsbindungJahre":{"type":"integer","minimum":0,"maximum":40},"immobilieId":{"type":"string","maxLength":100},"kreditart":{"type":"string","maxLength":60},"tilgungsmodell":{"type":"string","enum":["annuitaet","ratentilgung","endfaellig"]},"tilgungsfreieMonate":{"type":"integer","minimum":0,"maximum":120},"monatlicheTilgung":{"type":"number","minimum":0},"faelligkeitsdatum":{"type":"string","maxLength":10},"tilgungsersatzRate":{"type":"number","minimum":0},"tilgungsersatzBezeichnung":{"type":"string","maxLength":150},"referenzzins":{"type":"string","maxLength":60},"zinsaufschlag":{"type":"number","minimum":-5,"maximum":15}},"required":[]}}}},"responses":{"200":{"description":"Erfolg","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Kein/ungültiges Token"},"403":{"description":"Fehlender Scope oder Tier (Pro/Ultra) erforderlich"},"422":{"description":"Validierungsfehler"},"429":{"description":"Tageskontingent erreicht"}}}},"/properties/{id}":{"patch":{"summary":"Immobilie bearbeiten","operationId":"patch_properties_id","tags":["Schreiben"],"security":[{"ApiKeyAuth":[]},{"BearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"ID (propertyId)","schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":150},"kaufpreis":{"type":"number","exclusiveMinimum":0},"qm":{"type":"number","exclusiveMinimum":0},"baujahr":{"type":"integer","minimum":1500,"maximum":2100},"manuellGeschaetzterWert":{"type":"number","exclusiveMinimum":0},"notizen":{"type":"string","maxLength":1000}},"required":[]}}}},"responses":{"200":{"description":"Erfolg","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Kein/ungültiges Token"},"403":{"description":"Fehlender Scope oder Tier (Pro/Ultra) erforderlich"},"422":{"description":"Validierungsfehler"},"429":{"description":"Tageskontingent erreicht"}}}},"/rental-contract-drafts":{"get":{"summary":"Mietvertrags-Entwürfe auflisten","operationId":"get_rental_contract_drafts","tags":["Lesen"],"security":[{"ApiKeyAuth":[]},{"BearerAuth":[]}],"responses":{"200":{"description":"Erfolg","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Kein/ungültiges Token"},"403":{"description":"Fehlender Scope oder Tier (Pro/Ultra) erforderlich"},"422":{"description":"Validierungsfehler"},"429":{"description":"Tageskontingent erreicht"}}},"post":{"summary":"Mietvertrag vorbereiten (Entwurf anlegen)","operationId":"post_rental_contract_drafts","tags":["Schreiben"],"security":[{"ApiKeyAuth":[]},{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"titel":{"type":"string","maxLength":150},"contractType":{"type":"string","enum":["private","commercial"]},"immobilieId":{"type":"string","maxLength":100},"propertyAddress":{"type":"string","maxLength":300},"apartmentNumber":{"type":"string","maxLength":50},"floor":{"type":"string","maxLength":50},"propertyType":{"type":"string","maxLength":60},"propertyQm":{"type":"number","exclusiveMinimum":0},"roomCount":{"type":"integer","minimum":1,"maximum":100},"additionalPropertyDetails":{"type":"string","maxLength":2000},"includesParking":{"type":"boolean"},"parkingCount":{"type":"integer","minimum":1,"maximum":50},"parkingType":{"type":"string","enum":["tiefgarage","außenstellplatz","carport","garage"]},"parkingContract":{"type":"string","enum":["inbegriffen","extra"]},"parkingPrice":{"type":"number","minimum":0},"parkingDetails":{"type":"string","maxLength":300},"includesCellar":{"type":"boolean"},"cellarCount":{"type":"integer","minimum":1,"maximum":50},"cellarContract":{"type":"string","enum":["inbegriffen","extra"]},"cellarPrice":{"type":"number","minimum":0},"cellarDetails":{"type":"string","maxLength":300},"includesBalcony":{"type":"boolean"},"balconyCount":{"type":"integer","minimum":1,"maximum":20},"includesTerrace":{"type":"boolean"},"terraceCount":{"type":"integer","minimum":1,"maximum":20},"includesGarden":{"type":"boolean"},"gardenDetails":{"type":"string","maxLength":300},"includesAttic":{"type":"boolean"},"atticCount":{"type":"integer","minimum":1,"maximum":20},"atticDetails":{"type":"string","maxLength":300},"landlords":{"maxItems":5,"type":"array","items":{"type":"object","properties":{"vorname":{"type":"string","maxLength":120},"nachname":{"type":"string","maxLength":120},"email":{"type":"string","maxLength":150},"telefon":{"type":"string","maxLength":50},"geburtsdatum":{"type":"string","maxLength":10},"ausweisnummer":{"type":"string","maxLength":80},"plz":{"type":"string","maxLength":10},"ort":{"type":"string","maxLength":120},"strasse":{"type":"string","maxLength":200},"bankIban":{"type":"string","maxLength":50},"bankBic":{"type":"string","maxLength":20},"bankName":{"type":"string","maxLength":120},"bankAccountHolder":{"type":"string","maxLength":150}},"additionalProperties":false}},"tenants":{"maxItems":5,"type":"array","items":{"type":"object","properties":{"vorname":{"type":"string","maxLength":120},"nachname":{"type":"string","maxLength":120},"email":{"type":"string","maxLength":150},"telefon":{"type":"string","maxLength":50},"geburtsdatum":{"type":"string","maxLength":10},"ausweisnummer":{"type":"string","maxLength":80},"plz":{"type":"string","maxLength":10},"ort":{"type":"string","maxLength":120},"strasse":{"type":"string","maxLength":200},"hausnummer":{"type":"string","maxLength":20}},"additionalProperties":false}},"mietbeginn":{"type":"string","maxLength":10},"vertragslaufzeit":{"type":"string","enum":["unbefristet","befristet"]},"mietende":{"type":"string","maxLength":10},"befristungsgrund":{"type":"string","maxLength":1000},"kuendigungsfristMieterMonate":{"type":"integer","minimum":0,"maximum":60},"kuendigungMieterBisMonatsende":{"type":"boolean"},"kuendigungsfristVermieterMonate":{"type":"integer","minimum":0,"maximum":60},"kuendigungVermieterBisMonatsende":{"type":"boolean"},"kuendigungsausschluss":{"type":"boolean"},"kuendigungsausschlussTyp":{"type":"string","enum":["monate","jahre","datum"]},"kuendigungsausschlussWert":{"type":"integer","minimum":1,"maximum":120},"kuendigungsausschlussEnde":{"type":"string","maxLength":10},"kaltmiete":{"type":"number","minimum":0},"nebenkosten":{"type":"number","minimum":0},"kaution":{"type":"number","minimum":0},"mietart":{"type":"string","enum":["standard","staffel","index"]},"staffeln":{"maxItems":40,"type":"array","items":{"type":"object","properties":{"gueltigAb":{"type":"string","maxLength":10},"kaltmiete":{"type":"number","minimum":0},"nebenkosten":{"type":"number","minimum":0},"notizen":{"type":"string","maxLength":300}},"required":["gueltigAb","kaltmiete"],"additionalProperties":false}},"indexMieteStichtag":{"type":"string","maxLength":10},"haustiereErlaubt":{"type":"boolean"},"rauchenErlaubt":{"type":"boolean"},"untervermietungErlaubt":{"type":"boolean"},"schoenheitsreparaturen":{"type":"string","enum":["mieter","vermieter","geteilt"]},"sondereVereinbarungen":{"type":"string","maxLength":20000}},"required":[]}}}},"responses":{"200":{"description":"Erfolg","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Kein/ungültiges Token"},"403":{"description":"Fehlender Scope oder Tier (Pro/Ultra) erforderlich"},"422":{"description":"Validierungsfehler"},"429":{"description":"Tageskontingent erreicht"}}}},"/rental-contract-drafts/{id}":{"get":{"summary":"Mietvertrags-Entwurf lesen","operationId":"get_rental_contract_drafts_id","tags":["Lesen"],"security":[{"ApiKeyAuth":[]},{"BearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"ID (draftId)","schema":{"type":"string"}}],"responses":{"200":{"description":"Erfolg","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Kein/ungültiges Token"},"403":{"description":"Fehlender Scope oder Tier (Pro/Ultra) erforderlich"},"422":{"description":"Validierungsfehler"},"429":{"description":"Tageskontingent erreicht"}}},"patch":{"summary":"Mietvertrags-Entwurf ergänzen","operationId":"patch_rental_contract_drafts_id","tags":["Schreiben"],"security":[{"ApiKeyAuth":[]},{"BearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"ID (draftId)","schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"titel":{"type":"string","maxLength":150},"contractType":{"type":"string","enum":["private","commercial"]},"immobilieId":{"type":"string","maxLength":100},"propertyAddress":{"type":"string","maxLength":300},"apartmentNumber":{"type":"string","maxLength":50},"floor":{"type":"string","maxLength":50},"propertyType":{"type":"string","maxLength":60},"propertyQm":{"type":"number","exclusiveMinimum":0},"roomCount":{"type":"integer","minimum":1,"maximum":100},"additionalPropertyDetails":{"type":"string","maxLength":2000},"includesParking":{"type":"boolean"},"parkingCount":{"type":"integer","minimum":1,"maximum":50},"parkingType":{"type":"string","enum":["tiefgarage","außenstellplatz","carport","garage"]},"parkingContract":{"type":"string","enum":["inbegriffen","extra"]},"parkingPrice":{"type":"number","minimum":0},"parkingDetails":{"type":"string","maxLength":300},"includesCellar":{"type":"boolean"},"cellarCount":{"type":"integer","minimum":1,"maximum":50},"cellarContract":{"type":"string","enum":["inbegriffen","extra"]},"cellarPrice":{"type":"number","minimum":0},"cellarDetails":{"type":"string","maxLength":300},"includesBalcony":{"type":"boolean"},"balconyCount":{"type":"integer","minimum":1,"maximum":20},"includesTerrace":{"type":"boolean"},"terraceCount":{"type":"integer","minimum":1,"maximum":20},"includesGarden":{"type":"boolean"},"gardenDetails":{"type":"string","maxLength":300},"includesAttic":{"type":"boolean"},"atticCount":{"type":"integer","minimum":1,"maximum":20},"atticDetails":{"type":"string","maxLength":300},"landlords":{"maxItems":5,"type":"array","items":{"type":"object","properties":{"vorname":{"type":"string","maxLength":120},"nachname":{"type":"string","maxLength":120},"email":{"type":"string","maxLength":150},"telefon":{"type":"string","maxLength":50},"geburtsdatum":{"type":"string","maxLength":10},"ausweisnummer":{"type":"string","maxLength":80},"plz":{"type":"string","maxLength":10},"ort":{"type":"string","maxLength":120},"strasse":{"type":"string","maxLength":200},"bankIban":{"type":"string","maxLength":50},"bankBic":{"type":"string","maxLength":20},"bankName":{"type":"string","maxLength":120},"bankAccountHolder":{"type":"string","maxLength":150}},"additionalProperties":false}},"tenants":{"maxItems":5,"type":"array","items":{"type":"object","properties":{"vorname":{"type":"string","maxLength":120},"nachname":{"type":"string","maxLength":120},"email":{"type":"string","maxLength":150},"telefon":{"type":"string","maxLength":50},"geburtsdatum":{"type":"string","maxLength":10},"ausweisnummer":{"type":"string","maxLength":80},"plz":{"type":"string","maxLength":10},"ort":{"type":"string","maxLength":120},"strasse":{"type":"string","maxLength":200},"hausnummer":{"type":"string","maxLength":20}},"additionalProperties":false}},"mietbeginn":{"type":"string","maxLength":10},"vertragslaufzeit":{"type":"string","enum":["unbefristet","befristet"]},"mietende":{"type":"string","maxLength":10},"befristungsgrund":{"type":"string","maxLength":1000},"kuendigungsfristMieterMonate":{"type":"integer","minimum":0,"maximum":60},"kuendigungMieterBisMonatsende":{"type":"boolean"},"kuendigungsfristVermieterMonate":{"type":"integer","minimum":0,"maximum":60},"kuendigungVermieterBisMonatsende":{"type":"boolean"},"kuendigungsausschluss":{"type":"boolean"},"kuendigungsausschlussTyp":{"type":"string","enum":["monate","jahre","datum"]},"kuendigungsausschlussWert":{"type":"integer","minimum":1,"maximum":120},"kuendigungsausschlussEnde":{"type":"string","maxLength":10},"kaltmiete":{"type":"number","minimum":0},"nebenkosten":{"type":"number","minimum":0},"kaution":{"type":"number","minimum":0},"mietart":{"type":"string","enum":["standard","staffel","index"]},"staffeln":{"maxItems":40,"type":"array","items":{"type":"object","properties":{"gueltigAb":{"type":"string","maxLength":10},"kaltmiete":{"type":"number","minimum":0},"nebenkosten":{"type":"number","minimum":0},"notizen":{"type":"string","maxLength":300}},"required":["gueltigAb","kaltmiete"],"additionalProperties":false}},"indexMieteStichtag":{"type":"string","maxLength":10},"haustiereErlaubt":{"type":"boolean"},"rauchenErlaubt":{"type":"boolean"},"untervermietungErlaubt":{"type":"boolean"},"schoenheitsreparaturen":{"type":"string","enum":["mieter","vermieter","geteilt"]},"sondereVereinbarungen":{"type":"string","maxLength":20000}},"required":[]}}}},"responses":{"200":{"description":"Erfolg","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Kein/ungültiges Token"},"403":{"description":"Fehlender Scope oder Tier (Pro/Ultra) erforderlich"},"422":{"description":"Validierungsfehler"},"429":{"description":"Tageskontingent erreicht"}}},"delete":{"summary":"Mietvertrags-Entwurf löschen","operationId":"delete_rental_contract_drafts_id","tags":["Schreiben"],"security":[{"ApiKeyAuth":[]},{"BearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"ID (draftId)","schema":{"type":"string"}}],"responses":{"200":{"description":"Erfolg","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Kein/ungültiges Token"},"403":{"description":"Fehlender Scope oder Tier (Pro/Ultra) erforderlich"},"422":{"description":"Validierungsfehler"},"429":{"description":"Tageskontingent erreicht"}}}}}}