{"openapi":"3.1.0","info":{"title":"Rentumi Partner API","version":"1.0.0","description":"API do tworzenia, aktualizowania, pobierania i wycofywania ofert najmu partnera.","contact":{"email":"info@rentumi.pl","url":"https://rentumi.pl/dokumentacja-api"}},"servers":[{"url":"https://rentumi.pl","description":"Produkcja"}],"security":[{"bearerAuth":[]}],"paths":{"/v1/health":{"get":{"security":[],"summary":"Stan usługi","responses":{"200":{"description":"API działa"}}}},"/v1/listings":{"get":{"summary":"Lista ofert partnera","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"Strona ofert"},"401":{"description":"Brak prawidłowego tokenu","content":{"application/json":{"schema":{"type":"object","required":["error","request_id"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"object","additionalProperties":{"type":"string"}}}},"request_id":{"type":"string"}}}}}},"422":{"description":"Błąd walidacji","content":{"application/json":{"schema":{"type":"object","required":["error","request_id"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"object","additionalProperties":{"type":"string"}}}},"request_id":{"type":"string"}}}}}},"429":{"description":"Przekroczony limit żądań","content":{"application/json":{"schema":{"type":"object","required":["error","request_id"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"object","additionalProperties":{"type":"string"}}}},"request_id":{"type":"string"}}}}}},"500":{"description":"Błąd wewnętrzny","content":{"application/json":{"schema":{"type":"object","required":["error","request_id"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"object","additionalProperties":{"type":"string"}}}},"request_id":{"type":"string"}}}}}}}}},"/v1/listings/{external_id}":{"parameters":[{"name":"external_id","in":"path","required":true,"schema":{"type":"string","maxLength":100}}],"get":{"summary":"Pobierz ofertę","responses":{"200":{"description":"Oferta","content":{"application/json":{"schema":{"allOf":[{"type":"object","additionalProperties":false,"required":["external_id","transaction","property_type","status","title","rent_pln","area_m2","address","contact"],"properties":{"external_id":{"type":"string","minLength":1,"maxLength":100,"example":"CRM-1042"},"transaction":{"type":"string","enum":["rent"]},"property_type":{"type":"string","enum":["apartment","house","room"]},"status":{"type":"string","enum":["active","hidden","rented","archived"]},"title":{"type":"string","minLength":10,"maxLength":120},"description":{"type":["string","null"],"maxLength":50000},"rent_pln":{"type":"number","minimum":0},"admin_fee_pln":{"type":["number","null"],"minimum":0},"deposit_pln":{"type":["number","null"],"minimum":0},"area_m2":{"type":"number","exclusiveMinimum":0},"rooms":{"type":["integer","null"],"minimum":1},"floor":{"type":["integer","null"],"minimum":-10},"total_floors":{"type":["integer","null"],"minimum":0},"available_from":{"type":["string","null"],"format":"date"},"address":{"type":"object","additionalProperties":false,"required":["city"],"properties":{"country":{"type":"string","default":"PL"},"voivodeship":{"type":["string","null"]},"city":{"type":"string"},"district":{"type":["string","null"]},"locality":{"type":["string","null"]},"street":{"type":["string","null"]},"house_number":{"type":["string","null"]},"postal_code":{"type":["string","null"]},"latitude":{"type":["number","null"],"minimum":-90,"maximum":90},"longitude":{"type":["number","null"],"minimum":-180,"maximum":180}}},"contact":{"type":"object","additionalProperties":false,"required":["phone"],"properties":{"name":{"type":["string","null"]},"email":{"type":["string","null"],"format":"email"},"phone":{"type":"string","example":"+48500600700"}}},"amenities":{"type":"array","maxItems":100,"uniqueItems":true,"items":{"type":"string"}},"media":{"type":"array","maxItems":30,"items":{"type":"object","additionalProperties":false,"required":["url"],"properties":{"url":{"type":"string","format":"uri","pattern":"^https://"},"sort_order":{"type":"integer","minimum":0},"is_floor_plan":{"type":"boolean","default":false}}}},"source_url":{"type":["string","null"],"format":"uri"},"heating":{"type":["string","null"],"enum":["none","district","electric","electric_foil","gas","heat_pump",null]},"building":{"type":["string","null"],"enum":["block","tenement","apartment_building","house",null]},"year_built":{"type":["integer","null"],"minimum":1000,"maximum":2200},"pets_allowed":{"type":["boolean","null"]},"smoking_allowed":{"type":["boolean","null"]}}},{"type":"object","required":["id","url","created_at","updated_at","warnings"],"properties":{"id":{"type":"string","format":"uuid"},"url":{"type":"string","format":"uri"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"warnings":{"type":"array","items":{"type":"string"}}}}]}}}},"401":{"description":"Brak prawidłowego tokenu","content":{"application/json":{"schema":{"type":"object","required":["error","request_id"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"object","additionalProperties":{"type":"string"}}}},"request_id":{"type":"string"}}}}}},"404":{"description":"Nie znaleziono"},"422":{"description":"Błąd walidacji","content":{"application/json":{"schema":{"type":"object","required":["error","request_id"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"object","additionalProperties":{"type":"string"}}}},"request_id":{"type":"string"}}}}}},"429":{"description":"Przekroczony limit żądań","content":{"application/json":{"schema":{"type":"object","required":["error","request_id"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"object","additionalProperties":{"type":"string"}}}},"request_id":{"type":"string"}}}}}},"500":{"description":"Błąd wewnętrzny","content":{"application/json":{"schema":{"type":"object","required":["error","request_id"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"object","additionalProperties":{"type":"string"}}}},"request_id":{"type":"string"}}}}}}}},"put":{"summary":"Utwórz lub zastąp ofertę","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["external_id","transaction","property_type","status","title","rent_pln","area_m2","address","contact"],"properties":{"external_id":{"type":"string","minLength":1,"maxLength":100,"example":"CRM-1042"},"transaction":{"type":"string","enum":["rent"]},"property_type":{"type":"string","enum":["apartment","house","room"]},"status":{"type":"string","enum":["active","hidden","rented","archived"]},"title":{"type":"string","minLength":10,"maxLength":120},"description":{"type":["string","null"],"maxLength":50000},"rent_pln":{"type":"number","minimum":0},"admin_fee_pln":{"type":["number","null"],"minimum":0},"deposit_pln":{"type":["number","null"],"minimum":0},"area_m2":{"type":"number","exclusiveMinimum":0},"rooms":{"type":["integer","null"],"minimum":1},"floor":{"type":["integer","null"],"minimum":-10},"total_floors":{"type":["integer","null"],"minimum":0},"available_from":{"type":["string","null"],"format":"date"},"address":{"type":"object","additionalProperties":false,"required":["city"],"properties":{"country":{"type":"string","default":"PL"},"voivodeship":{"type":["string","null"]},"city":{"type":"string"},"district":{"type":["string","null"]},"locality":{"type":["string","null"]},"street":{"type":["string","null"]},"house_number":{"type":["string","null"]},"postal_code":{"type":["string","null"]},"latitude":{"type":["number","null"],"minimum":-90,"maximum":90},"longitude":{"type":["number","null"],"minimum":-180,"maximum":180}}},"contact":{"type":"object","additionalProperties":false,"required":["phone"],"properties":{"name":{"type":["string","null"]},"email":{"type":["string","null"],"format":"email"},"phone":{"type":"string","example":"+48500600700"}}},"amenities":{"type":"array","maxItems":100,"uniqueItems":true,"items":{"type":"string"}},"media":{"type":"array","maxItems":30,"items":{"type":"object","additionalProperties":false,"required":["url"],"properties":{"url":{"type":"string","format":"uri","pattern":"^https://"},"sort_order":{"type":"integer","minimum":0},"is_floor_plan":{"type":"boolean","default":false}}}},"source_url":{"type":["string","null"],"format":"uri"},"heating":{"type":["string","null"],"enum":["none","district","electric","electric_foil","gas","heat_pump",null]},"building":{"type":["string","null"],"enum":["block","tenement","apartment_building","house",null]},"year_built":{"type":["integer","null"],"minimum":1000,"maximum":2200},"pets_allowed":{"type":["boolean","null"]},"smoking_allowed":{"type":["boolean","null"]}}}}}},"responses":{"200":{"description":"Oferta zaktualizowana","content":{"application/json":{"schema":{"allOf":[{"type":"object","additionalProperties":false,"required":["external_id","transaction","property_type","status","title","rent_pln","area_m2","address","contact"],"properties":{"external_id":{"type":"string","minLength":1,"maxLength":100,"example":"CRM-1042"},"transaction":{"type":"string","enum":["rent"]},"property_type":{"type":"string","enum":["apartment","house","room"]},"status":{"type":"string","enum":["active","hidden","rented","archived"]},"title":{"type":"string","minLength":10,"maxLength":120},"description":{"type":["string","null"],"maxLength":50000},"rent_pln":{"type":"number","minimum":0},"admin_fee_pln":{"type":["number","null"],"minimum":0},"deposit_pln":{"type":["number","null"],"minimum":0},"area_m2":{"type":"number","exclusiveMinimum":0},"rooms":{"type":["integer","null"],"minimum":1},"floor":{"type":["integer","null"],"minimum":-10},"total_floors":{"type":["integer","null"],"minimum":0},"available_from":{"type":["string","null"],"format":"date"},"address":{"type":"object","additionalProperties":false,"required":["city"],"properties":{"country":{"type":"string","default":"PL"},"voivodeship":{"type":["string","null"]},"city":{"type":"string"},"district":{"type":["string","null"]},"locality":{"type":["string","null"]},"street":{"type":["string","null"]},"house_number":{"type":["string","null"]},"postal_code":{"type":["string","null"]},"latitude":{"type":["number","null"],"minimum":-90,"maximum":90},"longitude":{"type":["number","null"],"minimum":-180,"maximum":180}}},"contact":{"type":"object","additionalProperties":false,"required":["phone"],"properties":{"name":{"type":["string","null"]},"email":{"type":["string","null"],"format":"email"},"phone":{"type":"string","example":"+48500600700"}}},"amenities":{"type":"array","maxItems":100,"uniqueItems":true,"items":{"type":"string"}},"media":{"type":"array","maxItems":30,"items":{"type":"object","additionalProperties":false,"required":["url"],"properties":{"url":{"type":"string","format":"uri","pattern":"^https://"},"sort_order":{"type":"integer","minimum":0},"is_floor_plan":{"type":"boolean","default":false}}}},"source_url":{"type":["string","null"],"format":"uri"},"heating":{"type":["string","null"],"enum":["none","district","electric","electric_foil","gas","heat_pump",null]},"building":{"type":["string","null"],"enum":["block","tenement","apartment_building","house",null]},"year_built":{"type":["integer","null"],"minimum":1000,"maximum":2200},"pets_allowed":{"type":["boolean","null"]},"smoking_allowed":{"type":["boolean","null"]}}},{"type":"object","required":["id","url","created_at","updated_at","warnings"],"properties":{"id":{"type":"string","format":"uuid"},"url":{"type":"string","format":"uri"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"warnings":{"type":"array","items":{"type":"string"}}}}]}}}},"201":{"description":"Oferta utworzona","content":{"application/json":{"schema":{"allOf":[{"type":"object","additionalProperties":false,"required":["external_id","transaction","property_type","status","title","rent_pln","area_m2","address","contact"],"properties":{"external_id":{"type":"string","minLength":1,"maxLength":100,"example":"CRM-1042"},"transaction":{"type":"string","enum":["rent"]},"property_type":{"type":"string","enum":["apartment","house","room"]},"status":{"type":"string","enum":["active","hidden","rented","archived"]},"title":{"type":"string","minLength":10,"maxLength":120},"description":{"type":["string","null"],"maxLength":50000},"rent_pln":{"type":"number","minimum":0},"admin_fee_pln":{"type":["number","null"],"minimum":0},"deposit_pln":{"type":["number","null"],"minimum":0},"area_m2":{"type":"number","exclusiveMinimum":0},"rooms":{"type":["integer","null"],"minimum":1},"floor":{"type":["integer","null"],"minimum":-10},"total_floors":{"type":["integer","null"],"minimum":0},"available_from":{"type":["string","null"],"format":"date"},"address":{"type":"object","additionalProperties":false,"required":["city"],"properties":{"country":{"type":"string","default":"PL"},"voivodeship":{"type":["string","null"]},"city":{"type":"string"},"district":{"type":["string","null"]},"locality":{"type":["string","null"]},"street":{"type":["string","null"]},"house_number":{"type":["string","null"]},"postal_code":{"type":["string","null"]},"latitude":{"type":["number","null"],"minimum":-90,"maximum":90},"longitude":{"type":["number","null"],"minimum":-180,"maximum":180}}},"contact":{"type":"object","additionalProperties":false,"required":["phone"],"properties":{"name":{"type":["string","null"]},"email":{"type":["string","null"],"format":"email"},"phone":{"type":"string","example":"+48500600700"}}},"amenities":{"type":"array","maxItems":100,"uniqueItems":true,"items":{"type":"string"}},"media":{"type":"array","maxItems":30,"items":{"type":"object","additionalProperties":false,"required":["url"],"properties":{"url":{"type":"string","format":"uri","pattern":"^https://"},"sort_order":{"type":"integer","minimum":0},"is_floor_plan":{"type":"boolean","default":false}}}},"source_url":{"type":["string","null"],"format":"uri"},"heating":{"type":["string","null"],"enum":["none","district","electric","electric_foil","gas","heat_pump",null]},"building":{"type":["string","null"],"enum":["block","tenement","apartment_building","house",null]},"year_built":{"type":["integer","null"],"minimum":1000,"maximum":2200},"pets_allowed":{"type":["boolean","null"]},"smoking_allowed":{"type":["boolean","null"]}}},{"type":"object","required":["id","url","created_at","updated_at","warnings"],"properties":{"id":{"type":"string","format":"uuid"},"url":{"type":"string","format":"uri"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"warnings":{"type":"array","items":{"type":"string"}}}}]}}}},"401":{"description":"Brak prawidłowego tokenu","content":{"application/json":{"schema":{"type":"object","required":["error","request_id"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"object","additionalProperties":{"type":"string"}}}},"request_id":{"type":"string"}}}}}},"422":{"description":"Błąd walidacji","content":{"application/json":{"schema":{"type":"object","required":["error","request_id"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"object","additionalProperties":{"type":"string"}}}},"request_id":{"type":"string"}}}}}},"429":{"description":"Przekroczony limit żądań","content":{"application/json":{"schema":{"type":"object","required":["error","request_id"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"object","additionalProperties":{"type":"string"}}}},"request_id":{"type":"string"}}}}}},"500":{"description":"Błąd wewnętrzny","content":{"application/json":{"schema":{"type":"object","required":["error","request_id"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"object","additionalProperties":{"type":"string"}}}},"request_id":{"type":"string"}}}}}}}},"delete":{"summary":"Wycofaj ofertę","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":200}}],"responses":{"200":{"description":"Oferta zarchiwizowana"},"401":{"description":"Brak prawidłowego tokenu","content":{"application/json":{"schema":{"type":"object","required":["error","request_id"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"object","additionalProperties":{"type":"string"}}}},"request_id":{"type":"string"}}}}}},"404":{"description":"Nie znaleziono"},"422":{"description":"Błąd walidacji","content":{"application/json":{"schema":{"type":"object","required":["error","request_id"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"object","additionalProperties":{"type":"string"}}}},"request_id":{"type":"string"}}}}}},"429":{"description":"Przekroczony limit żądań","content":{"application/json":{"schema":{"type":"object","required":["error","request_id"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"object","additionalProperties":{"type":"string"}}}},"request_id":{"type":"string"}}}}}},"500":{"description":"Błąd wewnętrzny","content":{"application/json":{"schema":{"type":"object","required":["error","request_id"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"object","additionalProperties":{"type":"string"}}}},"request_id":{"type":"string"}}}}}}}}},"/v1/listings/batch":{"post":{"summary":"Wykonaj do 100 operacji","description":"Element pełnej oferty oznacza upsert. Element { action: \"delete\", external_id: \"...\" } wycofuje ofertę.","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["listings"],"properties":{"listings":{"type":"array","minItems":1,"maxItems":100,"items":{"oneOf":[{"type":"object","additionalProperties":false,"required":["external_id","transaction","property_type","status","title","rent_pln","area_m2","address","contact"],"properties":{"external_id":{"type":"string","minLength":1,"maxLength":100,"example":"CRM-1042"},"transaction":{"type":"string","enum":["rent"]},"property_type":{"type":"string","enum":["apartment","house","room"]},"status":{"type":"string","enum":["active","hidden","rented","archived"]},"title":{"type":"string","minLength":10,"maxLength":120},"description":{"type":["string","null"],"maxLength":50000},"rent_pln":{"type":"number","minimum":0},"admin_fee_pln":{"type":["number","null"],"minimum":0},"deposit_pln":{"type":["number","null"],"minimum":0},"area_m2":{"type":"number","exclusiveMinimum":0},"rooms":{"type":["integer","null"],"minimum":1},"floor":{"type":["integer","null"],"minimum":-10},"total_floors":{"type":["integer","null"],"minimum":0},"available_from":{"type":["string","null"],"format":"date"},"address":{"type":"object","additionalProperties":false,"required":["city"],"properties":{"country":{"type":"string","default":"PL"},"voivodeship":{"type":["string","null"]},"city":{"type":"string"},"district":{"type":["string","null"]},"locality":{"type":["string","null"]},"street":{"type":["string","null"]},"house_number":{"type":["string","null"]},"postal_code":{"type":["string","null"]},"latitude":{"type":["number","null"],"minimum":-90,"maximum":90},"longitude":{"type":["number","null"],"minimum":-180,"maximum":180}}},"contact":{"type":"object","additionalProperties":false,"required":["phone"],"properties":{"name":{"type":["string","null"]},"email":{"type":["string","null"],"format":"email"},"phone":{"type":"string","example":"+48500600700"}}},"amenities":{"type":"array","maxItems":100,"uniqueItems":true,"items":{"type":"string"}},"media":{"type":"array","maxItems":30,"items":{"type":"object","additionalProperties":false,"required":["url"],"properties":{"url":{"type":"string","format":"uri","pattern":"^https://"},"sort_order":{"type":"integer","minimum":0},"is_floor_plan":{"type":"boolean","default":false}}}},"source_url":{"type":["string","null"],"format":"uri"},"heating":{"type":["string","null"],"enum":["none","district","electric","electric_foil","gas","heat_pump",null]},"building":{"type":["string","null"],"enum":["block","tenement","apartment_building","house",null]},"year_built":{"type":["integer","null"],"minimum":1000,"maximum":2200},"pets_allowed":{"type":["boolean","null"]},"smoking_allowed":{"type":["boolean","null"]}}},{"type":"object","additionalProperties":false,"required":["action","external_id"],"properties":{"action":{"const":"delete"},"external_id":{"type":"string","maxLength":100}}}]}}}}}}},"responses":{"200":{"description":"Wszystkie operacje wykonane"},"207":{"description":"Część operacji nie powiodła się"},"401":{"description":"Brak prawidłowego tokenu","content":{"application/json":{"schema":{"type":"object","required":["error","request_id"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"object","additionalProperties":{"type":"string"}}}},"request_id":{"type":"string"}}}}}},"422":{"description":"Błąd walidacji","content":{"application/json":{"schema":{"type":"object","required":["error","request_id"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"object","additionalProperties":{"type":"string"}}}},"request_id":{"type":"string"}}}}}},"429":{"description":"Przekroczony limit żądań","content":{"application/json":{"schema":{"type":"object","required":["error","request_id"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"object","additionalProperties":{"type":"string"}}}},"request_id":{"type":"string"}}}}}},"500":{"description":"Błąd wewnętrzny","content":{"application/json":{"schema":{"type":"object","required":["error","request_id"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"object","additionalProperties":{"type":"string"}}}},"request_id":{"type":"string"}}}}}}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"Rentumi API key"}},"schemas":{"ListingInput":{"type":"object","additionalProperties":false,"required":["external_id","transaction","property_type","status","title","rent_pln","area_m2","address","contact"],"properties":{"external_id":{"type":"string","minLength":1,"maxLength":100,"example":"CRM-1042"},"transaction":{"type":"string","enum":["rent"]},"property_type":{"type":"string","enum":["apartment","house","room"]},"status":{"type":"string","enum":["active","hidden","rented","archived"]},"title":{"type":"string","minLength":10,"maxLength":120},"description":{"type":["string","null"],"maxLength":50000},"rent_pln":{"type":"number","minimum":0},"admin_fee_pln":{"type":["number","null"],"minimum":0},"deposit_pln":{"type":["number","null"],"minimum":0},"area_m2":{"type":"number","exclusiveMinimum":0},"rooms":{"type":["integer","null"],"minimum":1},"floor":{"type":["integer","null"],"minimum":-10},"total_floors":{"type":["integer","null"],"minimum":0},"available_from":{"type":["string","null"],"format":"date"},"address":{"type":"object","additionalProperties":false,"required":["city"],"properties":{"country":{"type":"string","default":"PL"},"voivodeship":{"type":["string","null"]},"city":{"type":"string"},"district":{"type":["string","null"]},"locality":{"type":["string","null"]},"street":{"type":["string","null"]},"house_number":{"type":["string","null"]},"postal_code":{"type":["string","null"]},"latitude":{"type":["number","null"],"minimum":-90,"maximum":90},"longitude":{"type":["number","null"],"minimum":-180,"maximum":180}}},"contact":{"type":"object","additionalProperties":false,"required":["phone"],"properties":{"name":{"type":["string","null"]},"email":{"type":["string","null"],"format":"email"},"phone":{"type":"string","example":"+48500600700"}}},"amenities":{"type":"array","maxItems":100,"uniqueItems":true,"items":{"type":"string"}},"media":{"type":"array","maxItems":30,"items":{"type":"object","additionalProperties":false,"required":["url"],"properties":{"url":{"type":"string","format":"uri","pattern":"^https://"},"sort_order":{"type":"integer","minimum":0},"is_floor_plan":{"type":"boolean","default":false}}}},"source_url":{"type":["string","null"],"format":"uri"},"heating":{"type":["string","null"],"enum":["none","district","electric","electric_foil","gas","heat_pump",null]},"building":{"type":["string","null"],"enum":["block","tenement","apartment_building","house",null]},"year_built":{"type":["integer","null"],"minimum":1000,"maximum":2200},"pets_allowed":{"type":["boolean","null"]},"smoking_allowed":{"type":["boolean","null"]}}},"ListingResponse":{"allOf":[{"type":"object","additionalProperties":false,"required":["external_id","transaction","property_type","status","title","rent_pln","area_m2","address","contact"],"properties":{"external_id":{"type":"string","minLength":1,"maxLength":100,"example":"CRM-1042"},"transaction":{"type":"string","enum":["rent"]},"property_type":{"type":"string","enum":["apartment","house","room"]},"status":{"type":"string","enum":["active","hidden","rented","archived"]},"title":{"type":"string","minLength":10,"maxLength":120},"description":{"type":["string","null"],"maxLength":50000},"rent_pln":{"type":"number","minimum":0},"admin_fee_pln":{"type":["number","null"],"minimum":0},"deposit_pln":{"type":["number","null"],"minimum":0},"area_m2":{"type":"number","exclusiveMinimum":0},"rooms":{"type":["integer","null"],"minimum":1},"floor":{"type":["integer","null"],"minimum":-10},"total_floors":{"type":["integer","null"],"minimum":0},"available_from":{"type":["string","null"],"format":"date"},"address":{"type":"object","additionalProperties":false,"required":["city"],"properties":{"country":{"type":"string","default":"PL"},"voivodeship":{"type":["string","null"]},"city":{"type":"string"},"district":{"type":["string","null"]},"locality":{"type":["string","null"]},"street":{"type":["string","null"]},"house_number":{"type":["string","null"]},"postal_code":{"type":["string","null"]},"latitude":{"type":["number","null"],"minimum":-90,"maximum":90},"longitude":{"type":["number","null"],"minimum":-180,"maximum":180}}},"contact":{"type":"object","additionalProperties":false,"required":["phone"],"properties":{"name":{"type":["string","null"]},"email":{"type":["string","null"],"format":"email"},"phone":{"type":"string","example":"+48500600700"}}},"amenities":{"type":"array","maxItems":100,"uniqueItems":true,"items":{"type":"string"}},"media":{"type":"array","maxItems":30,"items":{"type":"object","additionalProperties":false,"required":["url"],"properties":{"url":{"type":"string","format":"uri","pattern":"^https://"},"sort_order":{"type":"integer","minimum":0},"is_floor_plan":{"type":"boolean","default":false}}}},"source_url":{"type":["string","null"],"format":"uri"},"heating":{"type":["string","null"],"enum":["none","district","electric","electric_foil","gas","heat_pump",null]},"building":{"type":["string","null"],"enum":["block","tenement","apartment_building","house",null]},"year_built":{"type":["integer","null"],"minimum":1000,"maximum":2200},"pets_allowed":{"type":["boolean","null"]},"smoking_allowed":{"type":["boolean","null"]}}},{"type":"object","required":["id","url","created_at","updated_at","warnings"],"properties":{"id":{"type":"string","format":"uuid"},"url":{"type":"string","format":"uri"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"warnings":{"type":"array","items":{"type":"string"}}}}]},"Error":{"type":"object","required":["error","request_id"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"object","additionalProperties":{"type":"string"}}}},"request_id":{"type":"string"}}}}}}