Retrieve Rooms
The endpoint allows users to retrieve room details from Agoda using the hotel ID and channel hotel ID.
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 alphanumeric (Required)
Specifies the hotel ID for the property.
channel_hotel_id string (Required)
Specifies the channel-specific hotel ID for the property.
Sample Request
Response
Response Body Elements
Status string
Indicates the result of the API call.
Will be "Success" for successful operations.
Will be always "Fail" in case of an error response.
Data object
The response data, the root element.
channel_room_id string
Specifies the channel-specific room ID for the room.
unit_name string
Specifies the unit name ID that is part of the unit type.
description string
Detailed description of the room.
room_view_type enumerated integer
Identifier for the room view type. List : https://connect-sandbox.su-api.com/SUAPI/jservice/agoda/masterData
number_of_units integer
Specifies the total number of units available at the property.
number_of_bathrooms integer
Specifies the total number of bathrooms available in the room.
size object
Contains the unit size details.
value integer
Specifies the unit size in the unit: square meters (m2).
occupancy object
Contains the occupancy details for the unit.
max_guests integer
Specifies the maximum guest occupancy for the unit.
max_adults integer
Specifies the maximum adult occupancy for the unit.
max_children integer
Specifies the maximum child occupancy for the unit.
is_children_allowed boolean
Specifies whether children can stay in this room or not.
max_infants integer
Specifies the maximum infants occupancy for the unit.
free_children_count integer
Number of children allowed to stay in this room for free. Allow value from 0 to 9.
extra_beds_configuration object
Contains details for extra bed configuration in the unit.
extra_beds integer
Specifies the number of extra beds available on request per unit.
is_crib_allowed boolean
Specifies whether baby cots/cribs can be accommodated in this room or not.
rates object
Contains details for rates configuration for the unit.
maximum_rate integer
Maximum rate at which the room can be sold at. Same currency as property needs to be used. This does not restrict updates via ARI API’s. Setting this value will restrict users from manually updating rates via YCS. Value should be > MinimumRate and must be between 0 and 999999999.
minimum_rate integer
Minimum rate at which the room can be sold at. Same currency as property needs to be used. This does not restrict updates via our ARI API’s. Setting this value will restrict users from manually updating rates via YCS. Value should be < MaximumRateValue and must be between 0 and 999999999.
rack_rate integer
This is the full price rate for the room type. Same currency as Property needs to be used. Value must be between 0 and 999999999.
standard_rate integer
This is used as a default rate when updating rates in the extranet manually. Value must be between 0 and 999999999.
bed_configurations object
Contains details of the bed configuration for the room.
beds array
Contains the bed type and total number of beds available in the room.
bed_type_id enumerated integer
Specifies the bed type ID
List : https://connect-sandbox.su-api.com/SUAPI/jservice/agoda/masterData
bed_count integer
Specifies the total number of beds of the specified type in the room.
facilities object
Object containing available facilities at the room. https://connect-sandbox.su-api.com/SUAPI/jservice/agoda/masterData
facility_id integer
Unique identifier for the facility.
is_available boolean
Indicates if the facility is available at the room.
images object
Object containing room images.
url string
URL of the image.
imageid string
Unique identifier of an existing image. Basically a su_imageid you can retrieve from image api.
pms_imageid string
Id assigned to a specific image within the PMS. Please note the image with this pms_imageid should exist in the su system.
Note : one of 3 (url, imageid, pms_imageid) parameter should be there in request
tags array
An image caption code in Agoda. Maximum 1 tag per image allowed. https://connect-sandbox.su-api.com/SUAPI/jservice/agoda/masterData
status string
Specifies the status value that you want to set for the room. Should be one of these: “Active” , “Inactive” , “Deleted”
Message string
The message in the response.
Code string
Specific error code that helps identify the type of error.
For example: "400" indicates a bad request.
ShortText string
A short description of the error.
Indicates channel room id and rate id.
Status string
Indicates the result of the API call.
Will be "Success" for successful operations.
Last updated
Was this helpful?