This endpoint is used to retrieve the detailed information of the room.
Method | URI | Headers |
---|---|---|
GET | /api/p/room | Authorization: Bearer <token> Accept: application/json Accept-Language: <language> Time-Zone: <timezone> |
Param | Description | Type | Required | Notes |
---|---|---|---|---|
partner_room_id | Room id of a partner. | String | Yes | This query string parameter must have value |
None
None
Example request
curl \
--request GET \
--url https://api-sandbox.luxstay.com/api/room?partner_room_id=123456 \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>'
Example response
{
"data": {
"id": 10007,
"host_id": 10001,
"name": "Truc Bach Lake Traditional Studio",
"summary": "example",
"introduction": "example",
"unique_features": null,
"utilities": null,
"host_experiences": null,
"special_note": null,
"apartment_rules": null,
"apartment_manual": null,
"direction_manual": null,
"checkin_guide": null,
"num_bedrooms": 2,
"num_bathrooms": 3,
"num_beds": 2,
"area": null,
"maximum_guests": 5,
"booking_type": "request_to_book",
"calendar_type": "Always",
"status": "Listed",
"submit_status": null,
"cancellation_policy": "Flexible",
"url": "https://www.luxstay.com/rooms/10007",
"rating": 0,
"review_count": null,
"like_count": null,
"featured_photo": "/rooms/10007/large/1476961438_13041447_10209393801541493_1006657663341659622_o.jpg",
"liked": false,
"bedType": {
"data": {
"id": 5,
"name": "Real Bed"
}
},
"roomType": {
"data": {
"id": 2,
"name": "Phòng riêng",
"description": "Cho thuê Phòng riêng"
}
},
"propertyType": {
"data": {
"id": 28,
"name": "Studio",
"description": ""
}
},
"price": {
"data": {
"room_id": 10007,
"nightly_price": 29.88,
"monthly_price": 25.893666666666665,
"weekend_price": 39.84,
"cleaning_fee": 9.96,
"security_fee": 0,
"nightly_price_formatted": "$30",
"cleaning_fee_formatted": "$9.96",
"security_fee_formatted": "$0.00",
"additional_guests_fee": 11.95,
"currency_code": "USD",
"standard_guests": 2,
"cancellation_policy": "Flexible",
"booking_type": "request_to_book",
"checkin_time": "02:00 PM",
"checkout_time": "12:00 PM",
"checkin_time_expiry": null,
"minimum_stay": 1,
"maximum_stay": null,
"nightly_price_usd": 29.88,
"nightly_price_vnd": 707207.6087999999
}
},
"address": {
"data": {
"address_line_1": "Trúc Bạch, Hanoi, Vietnam",
"address_line_2": null,
"area": null,
"city": null,
"state": null,
"country": null,
"latitude": "21.002476",
"longitude": "105.8130491,17",
"full_address": "Trúc Bạch, Hanoi, Vietnam"
}
},
"host": {
"data": {
"id": 10001,
"full_name": "Infor Luxstay",
"created_at": "2016-10-19T16:01:48+00:00",
"avatar": "/users_avatar_default/default-avatar.png",
"tiny_avatar": "/users_avatar_default/default-avatar.png",
"about": "alert(123)",
"email_verified": true,
"phone_verified": false,
"subscribe_url": "/api/me/subscriptions/user/10001",
"super_host": true
}
},
"photos": {
"data": [
{
"id": 166,
"slide": true,
"photo_url": "/rooms/10007/large/1476961438_13041447_10209393801541493_1006657663341659622_o.jpg",
"thumbnail": "/rooms/10007/thumbnail/1476961438_13041447_10209393801541493_1006657663341659622_o.jpg"
},
{
"id": 167,
"slide": true,
"photo_url": "/rooms/10007/large/1476961438_12719404_10208684672333706_7335589954854676368_o.jpg",
"thumbnail": "/rooms/10007/thumbnail/1476961438_12719404_10208684672333706_7335589954854676368_o.jpg"
},
{
"id": 168,
"slide": true,
"photo_url": "/rooms/10007/large/1476961438_12716095_10208684673013723_299972956503930813_o.jpg",
"thumbnail": "/rooms/10007/thumbnail/1476961438_12716095_10208684673013723_299972956503930813_o.jpg"
},
{
"id": 169,
"slide": false,
"photo_url": "/rooms/10007/large/1476961752_DSC_0077_mat_sau.jpg",
"thumbnail": "/rooms/10007/thumbnail/1476961752_DSC_0077_mat_sau.jpg"
},
{
"id": 170,
"slide": true,
"photo_url": "/rooms/10007/large/1476961752_DSC_0090_mat_sau.jpg",
"thumbnail": "/rooms/10007/thumbnail/1476961752_DSC_0090_mat_sau.jpg"
},
{
"id": 171,
"slide": true,
"photo_url": "/rooms/10007/large/1476961752_DSC_0254_mat_sau.jpg",
"thumbnail": "/rooms/10007/thumbnail/1476961752_DSC_0254_mat_sau.jpg"
},
{
"id": 172,
"slide": false,
"photo_url": "/rooms/10007/large/1476961752_DSC_0264_mat_sau.jpg",
"thumbnail": "/rooms/10007/thumbnail/1476961752_DSC_0264_mat_sau.jpg"
},
{
"id": 173,
"slide": false,
"photo_url": "/rooms/10007/large/1476961752_DSC_0268_mat_sau.jpg",
"thumbnail": "/rooms/10007/thumbnail/1476961752_DSC_0268_mat_sau.jpg"
},
{
"id": 175,
"slide": false,
"photo_url": "/rooms/10007/large/1476961752_DSC_0281_mat_sau.jpg",
"thumbnail": "/rooms/10007/thumbnail/1476961752_DSC_0281_mat_sau.jpg"
},
{
"id": 174,
"slide": true,
"photo_url": "/rooms/10007/large/1476961752_DSC_0279_mat_sau.jpg",
"thumbnail": "/rooms/10007/thumbnail/1476961752_DSC_0279_mat_sau.jpg"
}
]
},
"photoTags": {
"data": [
{
"id": 3,
"name": "Living Room",
"normalized": "living room",
"photos": {
"data": [
{
"id": 174,
"slide": true,
"photo_url": "/rooms/10007/large/1476961752_DSC_0279_mat_sau.jpg",
"thumbnail": "/rooms/10007/thumbnail/1476961752_DSC_0279_mat_sau.jpg"
}
]
}
},
{
"id": 8,
"name": "Phòng ngủ 2",
"normalized": "second bedroom",
"photos": {
"data": [
{
"id": 171,
"slide": true,
"photo_url": "/rooms/10007/large/1476961752_DSC_0254_mat_sau.jpg",
"thumbnail": "/rooms/10007/thumbnail/1476961752_DSC_0254_mat_sau.jpg"
}
]
}
},
{
"id": 9,
"name": "Phòng ngủ 3",
"normalized": "third bedroom",
"photos": {
"data": [
{
"id": 172,
"slide": false,
"photo_url": "/rooms/10007/large/1476961752_DSC_0264_mat_sau.jpg",
"thumbnail": "/rooms/10007/thumbnail/1476961752_DSC_0264_mat_sau.jpg"
}
]
}
},
{
"id": 11,
"name": "Phòng ăn",
"normalized": "dining room",
"photos": {
"data": [
{
"id": 166,
"slide": true,
"photo_url": "/rooms/10007/large/1476961438_13041447_10209393801541493_1006657663341659622_o.jpg",
"thumbnail": "/rooms/10007/thumbnail/1476961438_13041447_10209393801541493_1006657663341659622_o.jpg"
}
]
}
},
{
"id": 5,
"name": "Phòng tắm",
"normalized": "bathroom",
"photos": {
"data": [
{
"id": 168,
"slide": true,
"photo_url": "/rooms/10007/large/1476961438_12716095_10208684673013723_299972956503930813_o.jpg",
"thumbnail": "/rooms/10007/thumbnail/1476961438_12716095_10208684673013723_299972956503930813_o.jpg"
}
]
}
},
{
"id": 4,
"name": "Garden",
"normalized": "garden",
"photos": {
"data": [
{
"id": 169,
"slide": false,
"photo_url": "/rooms/10007/large/1476961752_DSC_0077_mat_sau.jpg",
"thumbnail": "/rooms/10007/thumbnail/1476961752_DSC_0077_mat_sau.jpg"
}
]
}
},
{
"id": 1,
"name": "Environment",
"normalized": "environment",
"photos": {
"data": [
{
"id": 167,
"slide": true,
"photo_url": "/rooms/10007/large/1476961438_12719404_10208684672333706_7335589954854676368_o.jpg",
"thumbnail": "/rooms/10007/thumbnail/1476961438_12719404_10208684672333706_7335589954854676368_o.jpg"
}
]
}
},
{
"id": 0,
"name": "Khác",
"normalized": "other",
"photos": {
"data": [
{
"id": 170,
"slide": true,
"photo_url": "/rooms/10007/large/1476961752_DSC_0090_mat_sau.jpg",
"thumbnail": "/rooms/10007/thumbnail/1476961752_DSC_0090_mat_sau.jpg"
},
{
"id": 173,
"slide": false,
"photo_url": "/rooms/10007/large/1476961752_DSC_0268_mat_sau.jpg",
"thumbnail": "/rooms/10007/thumbnail/1476961752_DSC_0268_mat_sau.jpg"
},
{
"id": 175,
"slide": false,
"photo_url": "/rooms/10007/large/1476961752_DSC_0281_mat_sau.jpg",
"thumbnail": "/rooms/10007/thumbnail/1476961752_DSC_0281_mat_sau.jpg"
}
]
}
}
]
},
"amenities": {
"data": [
{
"id": 4,
"name": "Lò nướng",
"description": "",
"icon": "iconroom-microwave",
"type": {
"data": {
"id": 2,
"name": "Cho thú cưng",
"description": ""
}
}
},
{
"id": 10,
"name": "Cảnh quan đẹp",
"description": "",
"icon": "iconroom-sea",
"type": {
"data": {
"id": 3,
"name": "Cho thú cưng",
"description": ""
}
}
},
{
"id": 17,
"name": "Wifi",
"description": "",
"icon": "iconroom-wifi",
"type": {
"data": {
"id": 4,
"name": "Cho thú cưng",
"description": ""
}
}
}
]
},
"amenityTypes": {
"data": [
{
"id": 2,
"name": "Cho thú cưng",
"description": "",
"amenities": {
"data": [
{
"id": 4,
"name": "Lò nướng",
"description": "",
"icon": "iconroom-microwave"
}
]
}
},
{
"id": 3,
"name": "Cho thú cưng",
"description": "",
"amenities": {
"data": [
{
"id": 10,
"name": "Cảnh quan đẹp",
"description": "",
"icon": "iconroom-sea"
}
]
}
},
{
"id": 4,
"name": "Cho thú cưng",
"description": "",
"amenities": {
"data": [
{
"id": 17,
"name": "Wifi",
"description": "",
"icon": "iconroom-wifi"
}
]
}
}
]
},
"destinations": {
"data": [
{
"id": 971,
"name": "Hoa Phat",
"url": "vietnam/da-nang/cam-le/hoa-phat"
},
{
"id": 1270,
"name": "Gia Tan 3",
"url": "vietnam/dong-nai/thong-nhat/gia-tan-3"
},
{
"id": 1054,
"name": "Dau Tieng",
"url": "vietnam/binh-duong/dau-tieng/dau-tieng"
},
{
"id": 1055,
"name": "Dinh Hiep",
"url": "vietnam/binh-duong/dau-tieng/dinh-hiep"
}
]
},
"coupon": {
"data": []
}
},
"code": 200,
"request_id": "f0a9b7fd-afdc-45fa-9f3a-66647307f618"
}
Reason invalid access token
Example response
{
"message": "Unauthenticated."
}
403
Reason unauthorized to access room
Example response
{
"message": "You are not allowed to access or change information associated with this room."
}
404
Reason cannot find the given room
Example response
{
"message": "Cannot find the given room"
}