Links

Hotels Middleware API

Hotels middleware API documentation
SEARCH METHOD
ENDPOINT modules/hotels/supplier-name/api/v1/search
Param
Example Value
Description
city
dubai
name of destination
checkin
25-12-2024
checkin date
checkout
26-12-2024
checkout date
nationality
IN
nationality country code
adults
2
number of adults
childs
0
number of childs
child_age
[{"age":"5"},{"age":"6"}]
children ages
rooms
1
number of rooms
language
en
language name
currency
usd
name of currency
c1
keys or leave blank
Api Credentials Key or Secrets
c2
keys or leave blank
Api Credentials Key or Secrets
c3
keys or leave blank
Api Credentials Key or Secrets
c4
keys or leave blank
Api Credentials Key or Secrets
c4
keys or leave blank
Api Credentials Key or Secrets
production
1
production 1 dev 0
SEARCH RESPONSE
1
[
2
{
3
"hotel_id":"4324",
4
"img":"http:/cdn.supplierhotels.com/thumbs/964202_7.jpg",
5
"name":"Oasis Beach Tower",
6
"location":"Dubai, United Arab Emarates",
7
"address":"JA Oasis Beach Tower - Dubai - United Arab Emirates",
8
"stars":"4",
9
"rating":"4",
10
"latitude":"25.2048493",
11
"longitude":"55.270782800000006",
12
"price":764,
13
"price_per_night":740,
14
"currency":"USD",
15
"booking_currency":"USD",
16
"service_fee":"10",
17
"supplier_name":"hotelbeds",
18
"redirect":"",
19
"booking_data":" token or public secret keys to pass on booking "
20
},
21
{
22
"hotel_id":"4724",
23
"img":"http:/cdn.supplierhotels.com/thumbs/964202_7.jpg",
24
"name":"Grand Palace Next II",
25
"location":"Dubai, United Arab Emarates",
26
"address":"JA Oasis Beach Tower - Dubai - United Arab Emirates",
27
"stars":"4",
28
"rating":"4",
29
"latitude":"25.2048493",
30
"longitude":"55.270782800000006",
31
"price":530,
32
"price_per_night":320,
33
"currency":"USD",
34
"booking_currency":"USD",
35
"service_fee":"10",
36
"supplier_name":"hotelbeds",
37
"redirect":"",
38
"booking_data":" token or public secret keys to pass on booking "
39
},
40
{
41
"hotel_id":"4329",
42
"img":"http:/cdn.supplierhotels.com/thumbs/964202_7.jpg",
43
"name":"Four Points by Sheraton",
44
"location":"Dubai, United Arab Emarates",
45
"address":"JA Oasis Beach Tower - Dubai - United Arab Emirates",
46
"stars":"4",
47
"rating":"4",
48
"latitude":"25.2048493",
49
"longitude":"55.270782800000006",
50
"price":150,
51
"price_per_night":150,
52
"currency":"USD",
53
"booking_currency":"USD",
54
"service_fee":"10",
55
"supplier_name":"hotelbeds",
56
"redirect":"",
57
"booking_data":" token or public secret keys to pass on booking "
58
},
59
{
60
"hotel_id":"43232",
61
"img":"http:/cdn.supplierhotels.com/thumbs/964202_7.jpg",
62
"name":"Inter Continental 3 Star",
63
"location":"Dubai, United Arab Emarates",
64
"address":"JA Oasis Beach Tower - Dubai - United Arab Emirates",
65
"stars":"4",
66
"rating":"4",
67
"latitude":"25.2048493",
68
"longitude":"55.270782800000006",
69
"price":650,
70
"price_per_night":650,
71
"currency":"USD",
72
"booking_currency":"USD",
73
"service_fee":"10",
74
"supplier_name":"hotelbeds",
75
"redirect":"",
76
"booking_data":" token or public secret keys to pass on booking "
77
},
78
{
79
"hotel_id":"33",
80
"img":"http:/cdn.supplierhotels.com/thumbs/964202_7.jpg",
81
"name":"Walah Al Rotona",
82
"location":"Dubai, United Arab Emarates",
83
"address":"JA Oasis Beach Tower - Dubai - United Arab Emirates",
84
"stars":"4",
85
"rating":"4",
86
"latitude":"25.2048493",
87
"longitude":"55.270782800000006",
88
"price":90,
89
"price_per_night":90,
90
"currency":"USD",
91
"booking_currency":"USD",
92
"service_fee":"10",
93
"supplier_name":"hotelbeds",
94
"redirect":"",
95
"booking_data":" token or public secret keys to pass on booking "
96
},
97
{
98
"hotel_id":"33",
99
"img":"http:/cdn.supplierhotels.com/thumbs/964202_7.jpg",
100
"name":"The Grand Premier ||",
101
"location":"Dubai, United Arab Emarates",
102
"address":"JA Oasis Beach Tower - Dubai - United Arab Emirates",
103
"stars":"4",
104
"rating":"4",
105
"latitude":"25.2048493",
106
"longitude":"55.270782800000006",
107
"price":80,
108
"price_per_night":80,
109
"currency":"USD",
110
"booking_currency":"USD",
111
"service_fee":"10",
112
"supplier_name":"hotelbeds",
113
"redirect":"",
114
"booking_data":" token or public secret keys to pass on booking "
115
},
116
{
117
"hotel_id":"33",
118
"img":"http:/cdn.supplierhotels.com/thumbs/964202_7.jpg",
119
"name":"Swizter Palace Grand Premier",
120
"location":"Dubai, United Arab Emarates",
121
"address":"JA Oasis Beach Tower - Dubai - United Arab Emirates",
122
"stars":"4",
123
"rating":"4",
124
"latitude":"25.2048493",
125
"longitude":"55.270782800000006",
126
"price":150,
127
"price_per_night":150,
128
"currency":"USD",
129
"booking_currency":"USD",
130
"service_fee":"10",
131
"supplier_name":"hotelbeds",
132
"redirect":"",
133
"booking_data":" token or public secret keys to pass on booking "
134
}
135
]
HOTEL DETAILS
ENDPOINT modules/hotels/supplier-name/api/v1/details
Param
Example Value
Description
hotel_id
38
id of hotel
checkin
25-12-2024
nationality country code
checkout
26-12-2024
checkout date
adults
2
number of adults
childs
0
number of childs
child_age
[{"age":"5"},{"age":"6"}]
children ages
rooms
1
number of rooms
language
en
language name
currency
usd
name of currency
nationality
pk
nationality code
c1
keys or leave blank
Api Credentials Key or Secrets
c2
keys or leave blank
Api Credentials Key or Secrets
c3
keys or leave blank
Api Credentials Key or Secrets
c4
keys or leave blank
Api Credentials Key or Secrets
c5
keys or leave blank
Api Credentials Key or Secrets
production
1
production 1 dev 0
HOTEL DETAILS RESPONSE
1
{
2
"id":"38",
3
"name":"Hyatt Regency Perth",
4
"city":"Dubai",
5
"country":"United Arab Emarates",
6
"address":"Hyatt Regency Perth, Adelaide Terrace, Perth, Western Australia, Australia",
7
"stars":"3",
8
"rating":"3",
9
"longitude":"-31.95819269999999",
10
"latitude":"115.86670630000003",
11
"desc":"This 5-star luxury hotel offers a 25-metre heated pool and a tennis court minutes from the banks of Swan River and Perth’s city centre. A free city shuttle bus is provided. Hyatt Regency Perth Hotel provides large rooms that with views of the river or the city. Some rooms include free access the hotel’s fitness centre and sauna. Guests can enjoy superb cuisine at any of the 5 dining outlets at the property including Cafe Restaurant, Joe’s Oriental Diner with its spectacular open kitchen or the sumptuous Conservatory Lounge. Hyatt Regency Perth is 20 minutes' drive from Perth international and Domestic Airport.",
12
"img":[
13
"https://content.r9cdn.net/rimg/himg/76/d1/4b/expediav2-2778080-52d270-799805.jpg",
14
"https://content.r9cdn.net/rimg/himg/76/d1/4b/expediav2-2778080-52d270-799805.jpg",
15
"https://content.r9cdn.net/rimg/himg/76/d1/4b/expediav2-2778080-52d270-799805.jpg",
16
"https://content.r9cdn.net/rimg/himg/76/d1/4b/expediav2-2778080-52d270-799805.jpg",
17
"https://content.r9cdn.net/rimg/himg/76/d1/4b/expediav2-2778080-52d270-799805.jpg"
18
],
19
"amenities":[
20
"Airport Transport",
21
"Business Center",
22
"Disabled Facilities",
23
"Night Club",
24
"Laundry Service",
25
"Restaurant",
26
"Wi-Fi Internet"
27
],
28
"supplier_name":"hotelsbeds",
29
"supplier_id":1,
30
"rooms":[
31
{
32
"id":"44",
33
"name":"Executive Two-Bedrooms Apartment",
34
"price":300,
35
"per_night":300,
36
"service_fee":"10",
37
"currency":"USD",
38
"currency":"usd",
39
"refundable":true,
40
"refundable_date":"23-06-2023",
41
"img":[
42
"https://content.r9cdn.net/rimg/himg/76/d1/4b/expediav2-2778080-52d270-799805.jpg",
43
"https://content.r9cdn.net/rimg/himg/76/d1/4b/expediav2-2778080-52d270-799805.jpg",
44
"https://content.r9cdn.net/rimg/himg/76/d1/4b/expediav2-2778080-52d270-799805.jpg",
45
"https://content.r9cdn.net/rimg/himg/76/d1/4b/expediav2-2778080-52d270-799805.jpg",
46
"https://content.r9cdn.net/rimg/himg/76/d1/4b/expediav2-2778080-52d270-799805.jpg"
47
],
48
"amenities":[
49
"Bathroom phone",
50
"Climate control",
51
"Courtyard view",
52
"Extra towels/bedding",
53
"Hair dryer",
54
"Makeup/shaving mirror"
55
],
56
"options":[
57
{
58
"id":44,
59
"currCode":"USD",
60
"price":300,
61
"per_day":300,
62
"service_fee":10,
63
"quantity":3,
64
"adults":2,
65
"child":2,
66
"children_ages":"2-8",
67
"bookingurl":"",
68
"booking_data":"",
69
"extrabeds_quantity":0,
70
"extrabed_price":0,
71
"cancellation":1,
72
"breakfast":0,
73
"room_booked":false
74
},
75
{
76
"id":44,
77
"currCode":"USD",
78
"price":300,
79
"per_day":300,
80
"service_fee":10,
81
"quantity":3,
82
"adults":2,
83
"child":0,
84
"children_ages":0,
85
"bookingurl":"",
86
"booking_data":"",
87
"extrabeds_quantity":0,
88
"extrabed_price":0,
89
"cancellation":1,
90
"breakfast":0,
91
"room_booked":true
92
}
93
]
94
}
95
],
96
"policy":"When booking more than 9 rooms, different policies and additional supplements may apply. All children are welcome. Free! One child under 4 years stays free of charge when using existing beds. \r\nThe maximum number of extra beds/children's cots permitted in a room is 1. Cancellation and prepayment policies vary according to room type. Please enter the dates of your stay and check the conditions of your required room.",
97
"cancellation":"When booking more than 9 rooms, different policies and additional supplements may apply. All children are welcome. Free! One child under 4 years stays free of charge when using existing beds. \r\nThe maximum number of extra beds/children's cots permitted in a room is 1. Cancellation and prepayment policies vary according to room type. Please enter the dates of your stay and check the conditions of your required room.",
98
"tax_percentage":2,
99
"hotel_phone":"12345678",
100
"hotel_email":"[email protected]",
101
"hotel_website":"www.hayyatregency.com",
102
"discount":""
103
}