GET /v2/bookings/{id}/occupants

Returns list of occupants of specified booking. Body response contains data in the JSON or XML format.

Resource information

Authentication Yes
Response Formats xml, json
HTTP Method GET
Response Object List of occupants objects related to the booking
API Version v2

Example Request

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

Example Response

xml response body

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<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 response body

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