availability_update
The Owner needs a program that will send updates of availability and prices to Icnea.
If these are send in real time, we will have Icnea’s system and the OTA’s better synchronized without delays.
Endpoint: https://ws.icnea.net/availability_update.aspx
Request:
<availability_update>
<link>
<user>integer(4)</user>
<password>character(20)</password>
</link>
<lodgings>
<lodging>
<lodging_id>integer(8)</lodging_id>
<currency>iso4217 </currency>
<dates>
<date>
<day>yyyy-mm-dd (iso8601)</day>
<rooms>...</rooms>
</date>
</dates>
<adds_on_stay>...</adds_on_stay>
</lodging>
</lodgings>
</availability_update>
Â
parameter | type | description | mandatory? |
---|---|---|---|
link | Â | Â | Yes |
user | integer | 4-digits integer | Yes |
password | string | Â | Yes |
lodgings | Â | Â | Yes |
lodging | Â | You can send availability for 1 property or for multiple ones, using different <lodging> nodes. | Yes |
lodging_id | integer | 8-digits integer | Yes |
currency | string | EUR, USD… The currency configured in Icnea. | Yes |
dates | Â | Â | Yes |
date | Â | You can send different dates in the same call with different <date> nodes. | Yes |
day | date | Day that you want to update. Format: yyyy-MM-dd | Yes |
rooms |  | → node information room | Yes |
adds_on_stay |  | → node information add_on_stay | No |
room
This node is used to create all the rooms of the property.
If the property is a vacation rentals type (apartment, villa, house, etc) there will be only 1 room.
If the property is a hotel type (hotel, youth hotel, etc) then there can be multiple room types.
<room>
<room_id>character(10)</room_id>
<room_label>character(50)</room_label>
<availability>integer(3)</availability>
<room_units>
<units>
<unit_id>character(10)</unit_id>
<availability>integer(3)</availability>
</units>
</room_units>
<rates>...</rates>
<adds_on_room>...</adds_on_room>
</room>
Â
parameter | type | description | mandatory? |
---|---|---|---|
room_id | string | Â | Yes |
room_label | string | Â | No |
availability | integer | Â | Yes |
room_units | Â | Â | No |
units | Â | Â | No |
unit_id | string | Â | No |
availability | integer | Â | No |
rates |  | → node information rate | Yes |
adds_on_room |  | → node information add_on_room | No |
rate
This node is used to create all the rates that the property have.
They can be standard/non-refundable, or occupancy rates.
For example:
Standard 2pax rate
Non-refundable 2pax rate
Standard 4pax rate
etc
<rate>
<rate_id>character(10)</rate_id>
<rate_label>character(50)</rate_label>
<people>integer(2)</people>
<price>decimal</price>
<discount>decimal</discount>
<minimum_stay>integer(3)</minimum_stay>
<rate_nights>integer(3)</rate_nights>
<closed_to_arrival>false/true</closed_to_arrival>
<closed_to_departure>false/true</closed_to_departure>
<non_refundable>false/true</non_refundable>
</rate>
Â
parameter | type | description | mandatory? |
---|---|---|---|
rate_id | string | Â | Yes |
rate_label | string | Â | No |
people | integer | Â | Yes |
price | decimal | Â | Yes |
discount | decimal | Â | No |
minimum_stay | integer | Â | No |
rate_nights | integer | Â | No |
closed_to_arrival | boolean | Â | No |
closed_to_departure | boolean | Â | No |
non_refundable | boolean | Â | No |
add_on_room
This node can be used to add suplements. Those suplements must be created in Icnea PMS, if they are not, they will not be saved.
Â
The <adds_on_room> node is not mandatory, but if used, then there are some variables mandatory.
parameter | type | description | mandatory? |
---|---|---|---|
add_on_room_id | integer | Â | Yes |
add_on_room_label | string | Â | No |
price | decimal | Â | Yes |
price_per_person | boolean | Â | Yes |
maximum | integer | Â | No |
add_on_stay
This node is used to add extra fees besides the stay price.
At the moment, Icnea accepts 2 extra fees:
cleaning fee
booking fee
Â
The <adds_on_stay> node is not mandatory, but if used, then there are some variables mandatory:
parameter | type | description | mandatory? |
---|---|---|---|
add_on_stay_id | integer | Â | Yes |
add_on_stay_label | string | Â | No |
price | decimal | Â | Yes |
price_per_person | boolean | Â | Yes |
maximum | integer | Â | No |
required | boolean | Â | Yes |
Response:
If the update is successful, the answer will be:
If there has been some error:
Â