Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Endpoint: https://ws.icnea.net/availability_update.aspx

Request:

Code Block
languagexml
<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>
            <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>
                <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>
              </rates>
              <adds_on_room>
                <add_on_room>
                  <add_on_room_id>integer(2)</add_on_room_id>
                  <add_on_room_label>character(50)</add_on_room_label>
                  <price>decimal</price>
                  <price_per_person>false/true</price_per_person>
                  <maximum>integer(3)</maximum>
                </add_on_room>
              </adds_on_room>
            </room>
          </rooms>
        </date>
      </dates>
      <adds_on_stay>
        <add_on_stay>
          <add_on_stay_id>integer(2)</add_on_stay_id>
          <add_on_stay_label>character(50)</add_on_stay_label>
          <price>decimal</price>
          <price_per_person>false/true</price_per_person>
          <maximum>integer(3)</maximum>
          <required>false/true</required>
        </add_on_stay>
      </adds_on_stay>
    </lodging>
  </lodgings>
</availability_update>

parameter

type

description

mandatory?

user

integer

user credentials, 4-digit integer

Yes

password

string

password credentials

Yes

lodging_id

integer

property ID, it will be a 8-digit integer

Yes

currency

string

EUR, USD… The currency of the PMS

Yes

day

date

Date that you want to update prices or availability. Format → yyyy-mm-dd

Yes

room_id

room_label

availability

unit_id

availability

rate_id

rate_label

people

price

discount

minimum_stay

rate_nights

closed_to_arrival

closed_to_departure

non_refundable

Response:

If the update is successful, the answer will be:

...