Change Room Status
This endpoint is used to change the status of room listing by providing the channel_room_id
associated with the room.
Endpoint
POST

https://connect-sandbox.su-api.com/SUAPI/jservice/agoda/room/changeStatus
Header
app-id: c2l0****20=
Authorization: Basic M0****W0
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
alphanumeric (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 room.
status string
string (Required)
Specifies the status value that you want to set for the room. Should be one of these: “Active” , “Inactive” , “Deleted”
Sample Request
{
"hotel_id": "AWSTEST",
"channel_hotel_id": "77048595",
"channel_room_id": "1194166472",
"status": "Active"
}
Response
{
"Status": "Success",
"Data": [],
"Message": “Room status changed successfully"
}
Response Body Elements
Status
string
Indicates the result of the API call.
Data
object
The response data, the root element.
Message
string
The message in the response.
Code
string
Specific error code that helps identify the type of error.
ShortText
string
A short description of the error.
Indicates channel room id and rate id.
Status
string
Indicates the result of the API call.
Last updated
Was this helpful?