Room Details

This endpoint is used to retrieve the detailed information of the room.

Endpoint

Method URI Headers
GET /api/p/room Authorization: Bearer <token>
Accept: application/json
Accept-Language: <language>
Time-Zone: <timezone>

URL Params

Param Description Type Required Notes
partner_room_id Room id of a partner. String Yes This query string parameter must have value

Data Params

None
1

Route Params

None
1

Request & Response Examples

Successful Response

200

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>'
1
2
3
4
5

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"
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426

Error Response

401

Reason invalid access token

Example response

{
    "message": "Unauthenticated."
}
1
2
3

Code 403

Reason unauthorized to access room

Example response

{
    "message": "You are not allowed to access or change information associated with this room."
}
1
2
3

Code 404

Reason cannot find the given room

Example response

{
    "message": "Cannot find the given room"
}
1
2
3
Last Updated: 6/13/2019, 9:03:31 AM