Creates a new booking. The XML for the new booking is returned on a successful request with the timestamps recorded.
If the account doesn’t allow for more bookings to be created, a “507 Insufficient Storage” response will be returned.
Request
<?xml version="1.0" encoding="UTF-8"?>
<booking>
<tentative-expires-at type="datetime">2012-05-21T22:00:00Z</tentative-expires-at>
<client-id type="integer">1</client-id>
<end-at type="datetime">2012-08-22T10:00:00Z</end-at>
<final-price type="integer">3000</final-price>
<rental-id type="integer">1</rental-id>
<start-at type="datetime">2012-08-19T16:00:00Z</start-at>
</booking>
Response
Status: 201 Created
Location: https://www.bookingsync.com/bookings/#{new-booking-id}.xml
<?xml version="1.0" encoding="UTF-8"?>
<booking>
<account-id type="integer">1</account-id>
<adults type="integer" nil="true"></adults>
<booked type="boolean">false</booked>
<canceled-at type="datetime" nil="true"></canceled-at>
<children type="integer" nil="true"></children>
<client-id type="integer">1</client-id>
<created-at type="datetime">2012-05-18T22:01:20Z</created-at>
<currency>€</currency>
<deposit type="integer" nil="true"></deposit>
<discount nil="true"></discount>
<end-at type="datetime">2012-08-22T10:00:00Z</end-at>
<final-price type="integer">3000</final-price>
<id type="integer">1</id>
<initial-price type="integer" nil="true"></initial-price>
<notes nil="true"></notes>
<rental-id type="integer">1</rental-id>
<start-at type="datetime">2012-08-19T16:00:00Z</start-at>
<tentative-expires-at type="datetime">2012-05-21T22:00:00Z</tentative-expires-at>
<unavailable type="boolean">false</unavailable>
<updated-at type="datetime">2012-05-18T22:01:20Z</updated-at>
</booking>