|
Get Price list & Get check in out
One request to get prices per week and per day and minimum price per booking
and to get allowed check in check out
for example:
Get info for cottage number 1
http://www.aseaview.se/xml/demo.php?user=demo&pw=demo&task=getpricelist&cottage=1
Get info for all cottages
http://www.aseaview.se/xml/demo.php?user=demo&pw=demo&task=getpricelist
As a response, we expect the following XML structure:
<?xml version="1.0" encoding="iso-8859-1" ?>
<Response>
<Cottage>Cottage Orust</Cottage>
<StartDate>2010-03-20</StartDate>
<EndDate>2010-03-26</EndDate>
<Currency>EUR</Currency>
<PricePerDay>62</PricePerDay>
<PricePerWeek>310</PricePerWeek>
<PriceMinimum>95</PriceMinimum>
<ChangeDay>2010-03-20</ChangeDay>
<ChangeDay>2010-03-21</ChangeDay>
<ChangeDay>2010-03-22</ChangeDay>
<ChangeDay>2010-03-23</ChangeDay>
<ChangeDay>2010-03-24</ChangeDay>
<ChangeDay>2010-03-25</ChangeDay>
<ChangeDay>2010-03-26</ChangeDay>
</Response>
<Response>
<Cottage>Cottage Bohuslän</Cottage>
<StartDate>2010-03-27</StartDate>
<EndDate>2010-04-02</EndDate>
<Currency>EUR</Currency>
<PricePerDay>62</PricePerDay>
<PricePerWeek>310</PricePerWeek>
<PriceMinimum>95</PriceMinimum>
<ChangeDay>2010-03-27</ChangeDay>
<ChangeDay>2010-03-28</ChangeDay>
<ChangeDay>2010-03-29</ChangeDay>
<ChangeDay>2010-03-30</ChangeDay>
<ChangeDay>2010-03-31</ChangeDay>
<ChangeDay>2010-04-01</ChangeDay>
<ChangeDay>2010-04-02</ChangeDay>
</Response>
Get availability
One request to get availability
for example:
http://www.aseaview.se/xml/demo.php?user=demo&pw=demo&task=getavailability&cottage=1
As a response, we expect the following XML structure:
<?xml version="1.0" encoding="iso-8859-1" ?>
<Response>
<StartDate>2010-02-17</StartDate>
<Vacancy>YNNNNNYYYYYYYYYYNNNNNNNNNNNNNNNNNNNAAAAAAAAAAYYYYYYYYYYYYYYYYYY</Vacancy>
</Response>
The availability identification codes are: Y = vacant, N = occupied, A = on request
Check price
One request to prepare booking reply status and price
for example:
http://www.aseaview.se/xml/demo.php?user=demo&pw=demo&task=checkprice&cottage=1&arrive=2010-03-20&depart=2010-03-27&guests=4
<?xml version="1.0" encoding="iso-8859-1" ?>
<Response>
<Cottage>Cottage Orust</Cottage>
<Currency>EUR</Currency>
<Price>310</Price>
<Commission>20</Commission>
<Status>To many occupants/Available/Not Available</Status>
</Response>
Book
One request to book
for example:
http://www.aseaview.se/xml/demo.php?user=demo&pw=demo&task=checkprice&cottage=1&arrive=2010-03-20&depart=2010-03-27&guests=4&name=Erik&address=Mainstreet+24,47297+Orust,Sweden&email=
Diese E-Mail-Adresse ist gegen Spambots geschützt! Du musst JavaScript aktivieren, damit Du sie sehen kannst.
&phone=+46-733-403317
<?xml version="1.0" encoding="iso-8859-1" ?>
<Response>
<Cottage>Cottage Orust</Cottage>
<Currency>EUR</Currency>
<Price>310</Price>
<Status>To many occupants/Confirmed/Not Available</Status>
</Response>
|