Versions Compared

Key

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

...

Code Block
languagexml
<availability_update>
  <link>
    <user>character(20)</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>      
    </lodging>
  </lodgings>
</availability_update>

...

But if the property is a hotel type, there will can be as many node <room> as type of rooms created.

Code Block
languagexml
<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>rates>
</room>

parameter

type

description

mandatory?

room_id

string

 

Yes

room_label

string

 

No

availability

integer 

 0/1. If the property is a multi-unit type, it can be more than 1, depending on available units.

Yes

room_units

 

 

No

units

 

 

No

unit_id

string

 

No

availability

integer

 

No

rates

 

→ node information rate

Yes

...

  • Standard 2pax rate

  • Non-refundable 2pax rate

  • Standard 4pax rate

  • etc

Code Block
languagexml
<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>

...

If the update is successful, the answer should will be:

Code Block
languagexml
<availability_update_response>
  <ok></ok>
</availability_update_response>

If there has been some error, the snwer should answer will be:

Code Block
languagexml
<availability_update_response>
  <ko>Error message here</ko>
</availability_update_response>

...