POST /v2/bookings/{id}/occupants

Adds occupants to the booking. Body response will contain status of the operation.

Resource information

Authentication Yes
Request Formats xml, json
Response Formats xml, json
HTTP Method POST
Request Object Booking occupants object
Response Object Result of the updating occupants to the booking
API Version v2

Example Request

https://api.poplidays.com/v2/bookings/1223211/occupants

xml post body

<occupants>
    <occupant>
        <firstName>firsName1</firstName>
        <lastName>lastName1</lastName>
        <birthDate>20140513</birthDate>
    </occupant>
    <occupant>
        <firstName>firsName2</firstName>
        <lastName>lastName2</lastName>
        <birthDate>20140513</birthDate>
    </occupant>
</occupants>

json post body

{"occupants":[{
    "firstName":"test1120_3",
    "lastName":"test1120_3",
    "birthDate":"20140513"}
]}

Example Response

xml response body

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<result>
    <id>1223211</id>
    <status>INSERTED</status>
</result>

json response body

{"id":1223211,"status":"INSERTED"}