Room Types API
Returns a list of available RoomTypes,
API details
GET
/api/v1/hotel/content-api/types/rooms
Headers
Name
Value
Content-Type
application/json
Authorization
<Access token>
Accept-Encoding
gzip
Query Params
Name
Type
Description
syncId
string
<syncId>
Response
{
"success": true,
"data": {
"syncId": "3fee1cfd2766c5bef7a76e2be44cda06",
"total": 14178,
"from": 1,
"to": 1000,
"rooms": [
{
"roomTypeCode": "X1-1001",
"roomName": "Superior Room",
"amenities": [
{
"amenityId" : 1003
},
{
"amenityId" : 1023
},
{
"amenityId" : 1503
}
],
"description": "<p>Room have sofa cum bed,</p>",
"areaInM2": 28,
"images": [
{
"path": "https://sample.com/public/images/room-types/images-1681473627953-78052907.jpg"
},
{
"path": "https://sample.com/public/images/room-types/images-1681473627954-605348957.jpg"
}
]
},
{
"roomTypeCode": "X1-1002",
"roomName": "One Bedroom Standard",
"amenities": [
{
"amenityId" : 1003
},
{
"amenityId" : 1023
},
{
"amenityId" : 1503
}
],
"description": "<p>This apartment has a balcony, minibar and flat-screen TV.</p>",
"areaInM2": 70,
"images": [
{
"path": "https://sample.com/public/images/room-types/images-1682764117917-912495537.jpg"
},
{
"path": "https://sample.com/public/images/room-types/images-1682764117918-424736824.jpg"
},
{
"path": "https://sample.com/public/images/room-types/images-1682764117918-35876578.jpg"
}
]
}
]
}
}
{
"error": "Invalid request"
}
Last updated