# Get Booking Accommodation List

<mark style="color:green;">`POST`</mark> `[PlatformAddress]/api/1.0/venue?action=getBookingAccommodationList`

Get a list of booking accommodation (i.e. groups) for a specific venue booking.

#### Request Body

| Name      | Type    | Description                                                     |
| --------- | ------- | --------------------------------------------------------------- |
| venueId   | integer | The unique id of the venue to which the bookings belong         |
| bookingId | integer | The unique id of the booking to which the accommodation belongs |

{% tabs %}
{% tab title="200 " %}

```
{
    "meta": {
        "totalResults": 5,
        "start": 0,
        "perPage": 5,
        "count": 5
    },
    "results": [{
        "id": 1432,
        "venueId": 178,
        "bookingId": 4304,
        "roomVenueId": 178,
        "barId": null,
        "roomId": 76,
        "startDate": "2018-08-27",
        "endDate": "2018-08-31",
        "overrideCapacity": true,
        "costcenterId": 1376,
        "includeInPackage": false,
        "cutOffDate": "2018-08-15",
        "dayRatesActual": [
            {
                "bookingDate": "2018-08-27",
                "numRooms": 11,
                "cost": 180,
                "discount": 10,
                "numPayableByGuest": 11
            },
            {
                "bookingDate": "2018-08-28",
                "numRooms": 12,
                "cost": 190,
                "discount": 10,
                "numPayableByGuest": 12
            },
            {
                "bookingDate": "2018-08-29",
                "numRooms": 13,
                "cost": 175,
                "discount": 10,
                "numPayableByGuest": 13
            },
            {
                "bookingDate": "2018-08-30",
                "numRooms": 14,
                "cost": 210,
                "discount": 10,
                "numPayableByGuest": 14
            }
        ],
        "dayRates": [
            {
                "bookingDate": "2018-08-27",
                "numRooms": 11,
                "cost": 180,
                "discount": 10,
                "numPayableByGuest": 11,
                "numFreeRooms": 1
            },
            {
                "bookingDate": "2018-08-28",
                "numRooms": 12,
                "cost": 190,
                "discount": 10,
                "numPayableByGuest": 12,
                "numFreeRooms": 1
            },
            {
                "bookingDate": "2018-08-29",
                "numRooms": 13,
                "cost": 175,
                "discount": 10,
                "numPayableByGuest": 13,
                "numFreeRooms": 1
            },
            {
                "bookingDate": "2018-08-30",
                "numRooms": 14,
                "cost": 210,
                "discount": 10,
                "numPayableByGuest": 14,
                "numFreeRooms": 1
            }
        ],
        "dayRatesNet": [
            {
                "bookingDate": "2018-08-27",
                "numRooms": 11,
                "cost": 180,
                "discount": 10,
                "numPayableByGuest": 11
            },
            {
                "bookingDate": "2018-08-28",
                "numRooms": 12,
                "cost": 190,
                "discount": 10,
                "numPayableByGuest": 12
            },
            {
                "bookingDate": "2018-08-29",
                "numRooms": 13,
                "cost": 175,
                "discount": 10,
                "numPayableByGuest": 13
            },
            {
                "bookingDate": "2018-08-30",
                "numRooms": 14,
                "cost": 210,
                "discount": 10,
                "numPayableByGuest": 14
            }
        ],
        "dayRatesForecast": [
            {
                "bookingDate": "2018-08-27",
                "numRooms": 11,
                "cost": 180,
                "discount": 10,
                "numPayableByGuest": 11
            },
            {
                "bookingDate": "2018-08-28",
                "numRooms": 12,
                "cost": 190,
                "discount": 10,
                "numPayableByGuest": 12
            },
            {
                "bookingDate": "2018-08-29",
                "numRooms": 13,
                "cost": 175,
                "discount": 10,
                "numPayableByGuest": 13
            },
            {
                "bookingDate": "2018-08-30",
                "numRooms": 14,
                "cost": 210,
                "discount": 10,
                "numPayableByGuest": 14
            }
        ],
        "excludedTaxIds": [],
        "roomOptions": [
            {
                "bookingDate": "2018-08-27",
                "roomOptionId": 35,
                "numRooms": 11,
                "priceType": 1,
                "numOptions": 1,
                "numOptionsPerRoom": 1,
                "price": 65,
                "discount": 10,
                "excludedTaxIds": [],
                "totalAmount": 715,
                "totalDiscount": 10,
                "totalTaxAmount": 65.01,
                "costcenterId": 1377,
                "numPayableByGuest": 11,
                "commssion": 3
            },
            {
                "bookingDate": "2018-08-30",
                "roomOptionId": 36,
                "numRooms": 10,
                "priceType": 1,
                "numOptions": 1,
                "numOptionsPerRoom": 1,
                "price": 80,
                "discount": 10,
                "excludedTaxIds": [],
                "totalAmount": 800,
                "totalDiscount": 10,
                "totalTaxAmount": 72.7,
                "costcenterId": 1377,
                "numPayableByGuest": 10,
                "commssion": 4
            }
        ],
        "createdDate": "2018-08-22 06:43:24 UTC",
        "modifiedDate": "2018-08-22 06:43:24 UTC"
    }]
}
```

{% endtab %}
{% endtabs %}

The result from this call will be a [collection](/getting-started/interpreting-the-response/collections.md) of booking accomodation records the user has access to. This call returns all accommodation records for a specific venue booking - it does not accept [pagination](/getting-started/interpreting-the-response/pagination.md) or [filter](/getting-started/interpreting-the-response/filtering.md) properties.

### Booking Accommodation (Group)

| Property                 | Type                                                                                     | Description                                                                                                                  |
| ------------------------ | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
| id                       | integer                                                                                  | The unique id of the booking accommodation                                                                                   |
| venueId                  | integer                                                                                  | The unique id of the venue to which the booking belongs                                                                      |
| bookingId                | integer                                                                                  | The unique id of the booking to which the accommodation group belongs                                                        |
| roomVenueId              | integer                                                                                  | The unique id of the venue to which the rate plan (barId) and room type (roomId) belong (can be different to venueId)        |
| barId                    | integer                                                                                  | The unique id of the rate plan assigned to the accommodation group                                                           |
| roomId                   | integer                                                                                  | The unique id of the room type assigned to the accommodation group                                                           |
| startDate                | date                                                                                     | The arrival date of the accommodation group                                                                                  |
| endDate                  | date                                                                                     | The departure date of the accommodation group                                                                                |
| overrideCapacity         | boolean                                                                                  | Whether or not the accommodation group can exceed the general room availability                                              |
| costcenterId             | integer                                                                                  | The unique id of the cost center assigned to the accommodation group                                                         |
| includeInPackage         | boolean                                                                                  | Whether or not the accommodation is included in booking package                                                              |
| cutOffDate               | date                                                                                     | The date after which changes to the accommodation group are not allowed                                                      |
| dayRatesActual           | array of [Day Rates Actual](#booking-accommodation-day-rates-actual)                     | The daily actual rates of the accommodation group                                                                            |
| dayRatesForecast         | array of [Day Rates Forecast](#booking-accommodation-day-rates-forecast)                 | The daily forecast rates of the accommodation group                                                                          |
| dayRatesNet              | array of [Day Rates Net](#booking-accommodation-day-rates-net)                           | The daily net rates of the accommodation group                                                                               |
| dayRates                 | array of [Day Rates](#booking-accommodation-day-rates)                                   | The daily rates of the accommodation group                                                                                   |
| dayRatesActualMultiOcc   | array of [Day Rates Actual](#booking-accommodation-day-rates-actual-multi-occupancy)     | The daily actual rates for different occupancies of the accommodation group (Only available when feature enabled in venue)   |
| dayRatesForecastMultiOcc | array of [Day Rates Forecast](#booking-accommodation-day-rates-forecast-multi-occupancy) | The daily forecast rates for different occupancies of the accommodation group (Only available when feature enabled in venue) |
| dayRatesNetMultiOcc      | array of [Day Rates Net](#booking-accommodation-day-rates-net-multi-occupancy)           | The daily net rates for different occupancies of the accommodation group (Only available when feature enabled in venue)      |
| dayRatesMultiOcc         | array of [Day Rates](#booking-accommodation-day-rates-multi-occupancy)                   | The daily rates for different occupancies of the accommodation group (Only available when feature enabled in venue)          |
| excludedTaxIds           | array of integers                                                                        | The unique ids of the taxes that are excluded from the daily rates                                                           |
| roomOptions              | array of [Room Options](#booking-accommodation-room-option)                              | The additional room options of the accommodation group                                                                       |
| createdDate              | datetime                                                                                 | The date & time the accommodation group was created                                                                          |
| modifiedDate             | datetime                                                                                 | The date & time the acommodation group was last modified                                                                     |

### Booking Accommodation Day Rates Actual

| Property          | Type    | Description                                                                                                                             |
| ----------------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------- |
| bookingDate       | date    | The actual date of the accommodation group to which the rate applies                                                                    |
| numRooms          | integer | The actual number of rooms booked on bookingDate                                                                                        |
| cost              | number  | The rate actual amount for the room on bookingDate. The amount either includes or excludes tax depending on how the venue is configured |
| discount          | number  | The actual amount of discount                                                                                                           |
| numPayableByGuest | integer | The actual number of rooms on bookingDate that are payable by guests (as opposed to the master account of the booking)                  |

### Booking Accommodation Day Rates Forecast

| Property          | Type    | Description                                                                                                                               |
| ----------------- | ------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
| bookingDate       | date    | The forecast date of the accommodation group to which the rate applies                                                                    |
| numRooms          | integer | The forecast number of rooms booked on bookingDate                                                                                        |
| cost              | number  | The rate forecast amount for the room on bookingDate. The amount either includes or excludes tax depending on how the venue is configured |
| discount          | number  | The forecast amount of discount                                                                                                           |
| numPayableByGuest | integer | The forecast number of rooms on bookingDate that are payable by guests (as opposed to the master account of the booking)                  |

### Booking Accommodation Day Rates Net

| Property          | Type    | Description                                                                                                                      |
| ----------------- | ------- | -------------------------------------------------------------------------------------------------------------------------------- |
| bookingDate       | date    | The date of the accommodation group to which the rate applies                                                                    |
| numRooms          | integer | The number of rooms booked on bookingDate                                                                                        |
| cost              | number  | The rate amount for the room on bookingDate. The amount either includes or excludes tax depending on how the venue is configured |
| discount          | number  | The amount of discount                                                                                                           |
| numPayableByGuest | integer | The number of rooms on bookingDate that are payable by guests (as opposed to the master account of the booking)                  |

### Booking Accommodation Day Rates

| Property          | Type    | Description                                                                                                                      |
| ----------------- | ------- | -------------------------------------------------------------------------------------------------------------------------------- |
| bookingDate       | date    | The date of the accommodation group to which the rate applies                                                                    |
| numRooms          | integer | The number of rooms booked on bookingDate                                                                                        |
| cost              | number  | The rate amount for the room on bookingDate. The amount either includes or excludes tax depending on how the venue is configured |
| discount          | number  | The amount of discount                                                                                                           |
| numPayableByGuest | integer | The number of rooms on bookingDate that are payable by guests (as opposed to the master account of the booking)                  |
| numFreeRooms      | integer | The number of complimentary (free) rooms on bookingDate. This number is included in numRooms                                     |

### Booking Accommodation Day Rates Actual Multi Occupancy

| Property          | Type    | Description                                                                                                                             |
| ----------------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------- |
| bookingDate       | date    | The actual date of the accommodation group to which the rate applies                                                                    |
| numRooms          | integer | The actual number of rooms booked on bookingDate                                                                                        |
| cost              | number  | The rate actual amount for the room on bookingDate. The amount either includes or excludes tax depending on how the venue is configured |
| discount          | number  | The actual amount of discount                                                                                                           |
| numPayableByGuest | integer | The actual number of rooms on bookingDate that are payable by guests (as opposed to the master account of the booking)                  |
| occType           | integer | The occupancy type of daily rate. See [Occupancy Type](/venues/accommodation/add-or-update-booking-room-reservation.md#occupancy-type)  |

### Booking Accommodation Day Rates Forecast Multi Occupancy

| Property          | Type    | Description                                                                                                                               |
| ----------------- | ------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
| bookingDate       | date    | The forecast date of the accommodation group to which the rate applies                                                                    |
| numRooms          | integer | The forecast number of rooms booked on bookingDate                                                                                        |
| cost              | number  | The rate forecast amount for the room on bookingDate. The amount either includes or excludes tax depending on how the venue is configured |
| discount          | number  | The forecast amount of discount                                                                                                           |
| numPayableByGuest | integer | The forecast number of rooms on bookingDate that are payable by guests (as opposed to the master account of the booking)                  |
| occType           | integer | The occupancy type of daily rate. See [Occupancy Type](/venues/accommodation/add-or-update-booking-room-reservation.md#occupancy-type)    |

### Booking Accommodation Day Rates Net Multi Occupancy

| Property          | Type    | Description                                                                                                                            |
| ----------------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| bookingDate       | date    | The date of the accommodation group to which the rate applies                                                                          |
| numRooms          | integer | The number of rooms booked on bookingDate                                                                                              |
| cost              | number  | The rate amount for the room on bookingDate. The amount either includes or excludes tax depending on how the venue is configured       |
| discount          | number  | The amount of discount                                                                                                                 |
| numPayableByGuest | integer | The number of rooms on bookingDate that are payable by guests (as opposed to the master account of the booking)                        |
| occType           | integer | The occupancy type of daily rate. See [Occupancy Type](/venues/accommodation/add-or-update-booking-room-reservation.md#occupancy-type) |

### Booking Accommodation Day Rates Multi Occupancy

| Property          | Type    | Description                                                                                                                            |
| ----------------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| bookingDate       | date    | The date of the accommodation group to which the rate applies                                                                          |
| numRooms          | integer | The number of rooms booked on bookingDate                                                                                              |
| cost              | number  | The rate amount for the room on bookingDate. The amount either includes or excludes tax depending on how the venue is configured       |
| discount          | number  | The amount of discount                                                                                                                 |
| numPayableByGuest | integer | The number of rooms on bookingDate that are payable by guests (as opposed to the master account of the booking)                        |
| numFreeRooms      | integer | The number of complimentary (free) rooms on bookingDate. This number is included in numRooms                                           |
| occType           | integer | The occupancy type of daily rate. See [Occupancy Type](/venues/accommodation/add-or-update-booking-room-reservation.md#occupancy-type) |

### Booking Accommodation Room Option

| Property          | Type              | Description                                                                                                                   |
| ----------------- | ----------------- | ----------------------------------------------------------------------------------------------------------------------------- |
| bookingDate       | date              | The date of the accommodation group to which the additional option applies                                                    |
| roomOptionId      | integer           | The unique id of the room option added on bookingDate                                                                         |
| numRooms          | integer           | The number of rooms on bookingDate to which the room option applies                                                           |
| priceType         | integer           | The price type of the room option. See [Room Option](/venues/accommodation/add-or-update-booking-accommodation.md#price-type) |
| numOptions        | integer           | The number options added to each room / guest on bookingDate                                                                  |
| numOptionsPerRoom | integer           | The number options added to each room (numRooms) on bookingDate                                                               |
| price             | number            | The price of the additional option. The amount either includes or excludes tax depending on how the venue is configured       |
| discount          | number            | The amount of discount on price                                                                                               |
| excludedTaxIds    | array of integers | The unique ids of the taxes that are excluded from price                                                                      |
| totalAmount       | number            | The total value of the additional option on this date, including all applicable taxes                                         |
| totalDiscount     | number            | The amount of total discount of option on this date                                                                           |
| totalTaxAmount    | number            | The total tax amount included in totalAmount                                                                                  |
| costcenterId      | integer           | The unique id of the cost center assigned to the additional option                                                            |
| numPayableByGuest | integer           | The number of additional options on bookingDate that are payable by guests (as opposed to the master account of the booking)  |
| commission        | number            | The amount of commission for the additional option                                                                            |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developer.ivvy.com/venues/accommodation/get-booking-accommodation-list.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
