Creates a new rental. The XML for the new rental is returned on a successful request with the timestamps recorded.
If the account doesn’t allow for more rentals to be created, a “507 Insufficient Storage” response will be returned.
If the account is active (trial period finished), new rentals must be added from the web interface as a payment is required. Otherwise a “402 Payment Required” response will be returned.
Registering your BookingSync account as an External Application will remove such limitation. To do so, please contact info@bookingsync.com
Request
<?xml version="1.0" encoding="UTF-8"?>
<rental>
<description>6 pers. 220m²</description>
<name>Villa Sivota</name>
</rental>
Response
Status: 201 Created
Location: https://www.bookingsync.com/rentals/#{new-rental-id}.xml
<?xml version="1.0" encoding="UTF-8"?>
<rental>
<account-id type="integer">1</account-id>
<id type="integer">1</id>
<created-at type="datetime">2012-05-18T22:02:53Z</created-at>
<updated-at type="datetime">2012-05-18T22:02:53Z</updated-at>
<description>6 pers. 220m²</description>
<name>Villa Sivota</name>
<position type="integer">5</position>
</rental>