GET Properties
Get the list of all the properties.
Endpoint: https://ws.icnea.net/services_get_properties.aspx?api_key=a1b2c3d4e5&owner_id=1234
Parameter | Type | Description |
---|---|---|
api_key | string | API_key for your company, provided by Icnea. |
owner_id | integer | Property Manager ID |
The response will be a JSON with the list of properties and their information:
{
"services_get_properties_response": {
"properties": [
{
"id": 12341001,
"name": "Apartment Auri",
"address": "Sant Josep, 6",
"zip": "08042",
"city": "Manresa",
"country": "ES",
"latitude": 41.7394834834,
"longitude": 1.3472934234,
"checkin_start": "14:00",
"checkin_end": "16:00",
"checkout_start": "9:00",
"checkout_end": "11:00",
"property_type": "apartment"
}, {
"id": 12341002,
"name": "Apartment Gaia",
"address": "Sant Josep, 6",
"zip": "08042",
"city": "Manresa",
"country": "ES",
"latitude": 41.7394834834,
"longitude": 1.3472934234,
"checkin_start": "14:00",
"checkin_end": "16:00",
"checkout_start": "9:00",
"checkout_end": "11:00",
"property_type": "apartment"
}
]
}
}
Parameter | Type | Description |
---|---|---|
id | integer | Unique I of the property. 5-digits (in testing accounts) or 8-digits (in real accounts) number. |
name | string |
|
address | string |
|
zip | string |
|
city | string |
|
country | string |
|
latitude | decimal |
|
longitude | decimal |
|
checkin_start | string | The default check_in start time, in 24h format. |
checkin_end | string | The default check_in end time, in 24h format. |
checkout_start | string | The default check_out start time, in 24h format. |
checkout_end | string | The default check_out end time, in 24h format. |
property_type | string | Options: apartment, house, studio, hotel, hostel, room, camping, boat, autocaravan |