Insert a Real Estate
This method creates a real estate object.
Supported media types:
POST /offer/v1.0/user/{username or me}/realestate/
Things you need to know
- Here is a list of all ImmoScout24 supported real estate types.
- Please respect the order of the fields when making requests for both XML and JSON, otherwise you will receive an error.
- The newly created object is deactivated (not published by default). Please use publish request for publishing the real estate.
- Don't encode the xml/json if you send it within the body. It won't work (error code 409)
- Price on demand ("Preis auf Anfrage") is set by entering a "0" in the price field. This is only supported for "Grundstücke" (plots) and all "Gewerbeimmotypen" (commercial real estate types).
- The "contact" element is optional. If you don't provide a contact id, we'll take the standard contact address of the realtor.
- If the "address" cannot be geocoded by IS24, you should send the "wgs84Coordinate" (and vice versa: it should be omitted for geocodable addresses)
- The "address" element may contain a "geoHierarchy" element (you'll get that when you retrieve an existing real estate from the API), but this is ignored in POST/PUT
- "externalId" is optional. If it's not entered, than we'll set the scout object id automatically as externalId.
- If you use an existing "foreignobjectid", you'll get a 409 error message (the "foreignobjectid" needs to be unique within the real estate objects of a realtor/customer).
- "realEstateProjectId" can't be set by the realestate endpoint! Use the RealEstateProject resource to add the real estates to your project.
- lastModificationDate is ignored
- The attribute "marketingType" in the "price" element and "additionalCosts" element is optional. Default is "rent". If you want to POST an object with "marketingType" = "buy", then you must change the "commercialisationType" to "BUY".
- An "externalId" which contains "/" needs to be url-encoded
- "<" and ">" are not allowed
Request
XML:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
|
JSON:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
|
Response
XML
1 2 3 4 5 6 7 8 9 |
|
JSON:
1 2 3 4 5 6 7 8 9 10 11 |
|