> For the complete documentation index, see [llms.txt](https://developer.ivvy.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.ivvy.com/venues/venuedata/get-rate-plan-booking-rules.md).

# Get Venue Rate Plan Booking Rules

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

Return the rate plan booking rules for the given date and optionally room ids.

#### Request Body

| Name                                        | Type    | Description                                               |
| ------------------------------------------- | ------- | --------------------------------------------------------- |
| venueId<mark style="color:red;">\*</mark>   | integer | The unique id of the venue to which the room belongs.     |
| startDate<mark style="color:red;">\*</mark> | date    | The start date of the rate plan rule which it applies to. |
| endDate<mark style="color:red;">\*</mark>   | date    | The end date of the rate plan rule which it applies to.   |
| roomIds                                     | array   | The room ids to filter the rate plan rule.                |

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

```json
{
    "meta": {
        "totalResults": 3,
        "start": 0,
        "perPage": 3,
        "count": 3
    },
    "results": [
        {
            "barId": 1,
            "roomId": 6,
            "date": "2026-05-09",
            "closeOutStatus": 2
        },
        {
            "barId": 1,
            "roomId": 6,
            "date": "2026-05-10",
            "closeOutStatus": 2
        },
        {
            "barId": 1,
            "roomId": 6,
            "date": "2026-05-11",
            "closeOutStatus": null
        }
    ]
}

```

{% endtab %}
{% endtabs %}

### Date Range Restrictions

* **startDate and endDate**: The maximum date range is 31 days. Past dates are not allowed.

### Returns

A collection object with the following properties in result

| Property       | Data Type | Description                                                  |
| -------------- | --------- | ------------------------------------------------------------ |
| barId          | string    | The unique id of the rate plan                               |
| date           | date      | The date of the rate plan rule which it applies to           |
| roomId         | integer   | The unique id of the room                                    |
| closeOutStatus | integer   | The close out status of the rate plan rule on the given date |
