> 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/accommodation/change-status-of-booking-room-reservation.md).

# Change Status of Booking Room Reservation

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

Change the status of a specific room reservation on a venue booking.

**NOTE:**

Currently this only supports changing the status to "checked in" or "checked out". Use this action to confirm a room reservation, and this one to cancel.

#### Request Body

| Name      | Type    | Description                                                                                                                              |
| --------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| venueId   | integer | The unique id of the venue to which the booking belongs                                                                                  |
| bookingId | integer | The unique id of the booking to which the room reservation belongs                                                                       |
| id        | integer | The unique id of the room reservation to change status                                                                                   |
| status    | integer | The status to which the room reservation will be changed. Only a value of 4 (Checked In) or 5 (Checked Out) are supported by this action |
| roomIds   | array   | Optionally, the array of ids of the individual rooms on the reservation to change status                                                 |

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

```javascript
{
  "success": true,
  "errorType": null
}
```

{% endtab %}
{% endtabs %}

### Status Transitions

The following describes how the [status](/venues/accommodation/get-booking-room-reservation-list.md#room-reservation-status) of a booking room reservation can transition from one status to another.

![](/files/Z8K1uEI5gurTRYyjl6nJ)

NOTES: To delete a booking room reservation, use the [Remove Booking Room Reservation](/venues/accommodation/remove-booking-room-reservation.md) action. To confirm a booking room reservation, use the [Confirm Booking Room Reservation](/venues/accommodation/confirm-booking-room-reservation.md) action. To cancel a booking room reservation, use the [Cancel Booking Room Reservation](/venues/accommodation/cancel-booking-room-reservation.md) action.

### Response Error Types

| Error Type | Reason                                                                                                                     |
| ---------- | -------------------------------------------------------------------------------------------------------------------------- |
| 0          | Unknown error                                                                                                              |
| 1          | The new status is the same as the current status                                                                           |
| 2          | The current status cannot transition to the new status                                                                     |
| 3          | The new status is not supported. Only "checked in" and "checked out" are supported                                         |
| 4          | The canBeEdited flag of the room reservation is false, which prevents any changes                                          |
| 5          | Changing status of one or more room failed when roomIds parameter were set. See "failedRooms" in response for more details |

### Failed Rooms Error Codes

| Code | Message                                                |
| ---- | ------------------------------------------------------ |
| 1    | The new status is the same as the current status       |
| 2    | The current status cannot transition to the new status |
| 3    | The new status is not supported                        |
| 4    | The reservation of room cannot be edited               |
