Room Deactivate API
This endpoint is used to deactivate a room listing by providing the channel_room_id associated with the room.
NOTE
Once you deactivate the room then after you will not be able to activate that room.
This API call allows you to remove a room's availability from the platform, which may be necessary when the room is no longer available for booking or if it is being temporarily deactivated for maintenance or other reasons.
Endpoint
POST
Header
app-id
string
Yes
Your application ID. Required for authentication.
Authorization
string
Yes
Your API key. for authorization. Required for authentication.
Content-Type
string
Yes
Must be set to application/json.
Attributes
hotel_id string (Required)
Specifies the hotel ID for the property.
channel_hotel_id string (Required)
Specifies the channel-specific hotel ID for the property.
channel_room_id string (Required)
Specifies the channel-specific room ID for the property.
Sample Request
Response
Sample Success Response
Success Response Body Elements
Status string
Indicates the result of the API call.
Data object
An object containing data related to the successful image creation. This typically includes identifiers for the created images.
Message string
A message receives within the response body. This will generally be an empty string if no additional information is needed.
Ruid string
Specifies the unique request ID.
Errors
Sample Error Response 1
Sample Error Response 2
Sample Error Response 3
When you pass invalid channel_room_id then booking.com will raised error in this format:
Error Response Body Elements
Status string
Indicates the result of the API call, which will be always "Fail" in case of an error response.
Error array
Array that contains details about any errors that occurred during the API call. Each object in the Errors array contains the following properties:
Code string
Specific error code that helps identify the type of error.
ShortText string
A short description of the error.
Message string
A message providing more information about the error.
Ruid string
A unique identifier for tracking the request.
Last updated
Was this helpful?