POST API/GRNConnect/RoomTypeSearch
Request Information
URI Parameters
None.
Body Parameters
GRNRoomTypeSearch| Name | Description | Type | Additional information |
|---|---|---|---|
| HotelId | string |
None. |
|
| ChkInDt | string |
None. |
|
| ChkOutDt | string |
None. |
|
| StayDays | integer |
None. |
|
| SingleCount | integer |
None. |
|
| DoubleCount | integer |
None. |
|
| HB_TariffPaymentMode | string |
None. |
|
| MinVal | decimal number |
None. |
|
| MaxVal | decimal number |
None. |
|
| UniqId | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"HotelId": "sample string 1",
"ChkInDt": "sample string 2",
"ChkOutDt": "sample string 3",
"StayDays": 4,
"SingleCount": 5,
"DoubleCount": 6,
"HB_TariffPaymentMode": "sample string 7",
"MinVal": 8.0,
"MaxVal": 9.0,
"UniqId": "sample string 10"
}
application/xml, text/xml
Sample:
<GRNRoomTypeSearch xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HB_External_APIs.Models"> <ChkInDt>sample string 2</ChkInDt> <ChkOutDt>sample string 3</ChkOutDt> <DoubleCount>6</DoubleCount> <HB_TariffPaymentMode>sample string 7</HB_TariffPaymentMode> <HotelId>sample string 1</HotelId> <MaxVal>9</MaxVal> <MinVal>8</MinVal> <SingleCount>5</SingleCount> <StayDays>4</StayDays> <UniqId>sample string 10</UniqId> </GRNRoomTypeSearch>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Collection of GRNRoomTypes| Name | Description | Type | Additional information |
|---|---|---|---|
| PropertyId | string |
None. |
|
| HotelName | string |
None. |
|
| room_types | Collection of GRNRoomTypeResponse |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"PropertyId": "sample string 1",
"HotelName": "sample string 2",
"room_types": [
{
"RoomType": "sample string 1",
"RoomTypeId": "sample string 2",
"Currency": "sample string 3",
"RatePlanId": "sample string 4",
"RoomTypeCode": "sample string 5",
"RatePlanCode": "sample string 6",
"SingleCount": 7,
"SingleTariff": 8.1,
"SingleTaxes": 9.1,
"DoubleCount": 1,
"DoubleTariff": 10.1,
"DoubleTaxes": 11.1,
"breakfast_included": true,
"MealPlan": "sample string 13",
"Inclusions": "sample string 14",
"cancellationpolicy": "sample string 15",
"cancellationpenalty": "sample string 16",
"freecancellationuntil": "sample string 17",
"room_image": "sample string 18",
"TariffPaymentMode": "sample string 19",
"Pre_payment": true,
"corporate_rate": true,
"instant_booking": true,
"max_occupancy": 23,
"search_id": "sample string 24",
"group_code": "sample string 25",
"room_refernce": "sample string 26",
"room_code": "sample string 27",
"other_inclusions": "sample string 28",
"SupplierPrice": 29.0,
"ServiceFee": 30.0,
"ServiceFeeGST": 31.0,
"Total": 32.0,
"Price": 33.0,
"GRNCancellationPolicy": "sample string 34",
"PromotionDetails": "sample string 35",
"rate_comments": "sample string 36"
},
{
"RoomType": "sample string 1",
"RoomTypeId": "sample string 2",
"Currency": "sample string 3",
"RatePlanId": "sample string 4",
"RoomTypeCode": "sample string 5",
"RatePlanCode": "sample string 6",
"SingleCount": 7,
"SingleTariff": 8.1,
"SingleTaxes": 9.1,
"DoubleCount": 1,
"DoubleTariff": 10.1,
"DoubleTaxes": 11.1,
"breakfast_included": true,
"MealPlan": "sample string 13",
"Inclusions": "sample string 14",
"cancellationpolicy": "sample string 15",
"cancellationpenalty": "sample string 16",
"freecancellationuntil": "sample string 17",
"room_image": "sample string 18",
"TariffPaymentMode": "sample string 19",
"Pre_payment": true,
"corporate_rate": true,
"instant_booking": true,
"max_occupancy": 23,
"search_id": "sample string 24",
"group_code": "sample string 25",
"room_refernce": "sample string 26",
"room_code": "sample string 27",
"other_inclusions": "sample string 28",
"SupplierPrice": 29.0,
"ServiceFee": 30.0,
"ServiceFeeGST": 31.0,
"Total": 32.0,
"Price": 33.0,
"GRNCancellationPolicy": "sample string 34",
"PromotionDetails": "sample string 35",
"rate_comments": "sample string 36"
}
]
},
{
"PropertyId": "sample string 1",
"HotelName": "sample string 2",
"room_types": [
{
"RoomType": "sample string 1",
"RoomTypeId": "sample string 2",
"Currency": "sample string 3",
"RatePlanId": "sample string 4",
"RoomTypeCode": "sample string 5",
"RatePlanCode": "sample string 6",
"SingleCount": 7,
"SingleTariff": 8.1,
"SingleTaxes": 9.1,
"DoubleCount": 1,
"DoubleTariff": 10.1,
"DoubleTaxes": 11.1,
"breakfast_included": true,
"MealPlan": "sample string 13",
"Inclusions": "sample string 14",
"cancellationpolicy": "sample string 15",
"cancellationpenalty": "sample string 16",
"freecancellationuntil": "sample string 17",
"room_image": "sample string 18",
"TariffPaymentMode": "sample string 19",
"Pre_payment": true,
"corporate_rate": true,
"instant_booking": true,
"max_occupancy": 23,
"search_id": "sample string 24",
"group_code": "sample string 25",
"room_refernce": "sample string 26",
"room_code": "sample string 27",
"other_inclusions": "sample string 28",
"SupplierPrice": 29.0,
"ServiceFee": 30.0,
"ServiceFeeGST": 31.0,
"Total": 32.0,
"Price": 33.0,
"GRNCancellationPolicy": "sample string 34",
"PromotionDetails": "sample string 35",
"rate_comments": "sample string 36"
},
{
"RoomType": "sample string 1",
"RoomTypeId": "sample string 2",
"Currency": "sample string 3",
"RatePlanId": "sample string 4",
"RoomTypeCode": "sample string 5",
"RatePlanCode": "sample string 6",
"SingleCount": 7,
"SingleTariff": 8.1,
"SingleTaxes": 9.1,
"DoubleCount": 1,
"DoubleTariff": 10.1,
"DoubleTaxes": 11.1,
"breakfast_included": true,
"MealPlan": "sample string 13",
"Inclusions": "sample string 14",
"cancellationpolicy": "sample string 15",
"cancellationpenalty": "sample string 16",
"freecancellationuntil": "sample string 17",
"room_image": "sample string 18",
"TariffPaymentMode": "sample string 19",
"Pre_payment": true,
"corporate_rate": true,
"instant_booking": true,
"max_occupancy": 23,
"search_id": "sample string 24",
"group_code": "sample string 25",
"room_refernce": "sample string 26",
"room_code": "sample string 27",
"other_inclusions": "sample string 28",
"SupplierPrice": 29.0,
"ServiceFee": 30.0,
"ServiceFeeGST": 31.0,
"Total": 32.0,
"Price": 33.0,
"GRNCancellationPolicy": "sample string 34",
"PromotionDetails": "sample string 35",
"rate_comments": "sample string 36"
}
]
}
]
application/xml, text/xml
Sample:
<ArrayOfGRNRoomTypes xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HB_External_APIs.Models">
<GRNRoomTypes>
<HotelName>sample string 2</HotelName>
<PropertyId>sample string 1</PropertyId>
<room_types>
<GRNRoomTypeResponse>
<Currency>sample string 3</Currency>
<DoubleCount>1</DoubleCount>
<DoubleTariff>10.1</DoubleTariff>
<DoubleTaxes>11.1</DoubleTaxes>
<GRNCancellationPolicy>sample string 34</GRNCancellationPolicy>
<Inclusions>sample string 14</Inclusions>
<MealPlan>sample string 13</MealPlan>
<Pre_payment>true</Pre_payment>
<Price>33</Price>
<PromotionDetails>sample string 35</PromotionDetails>
<RatePlanCode>sample string 6</RatePlanCode>
<RatePlanId>sample string 4</RatePlanId>
<RoomType>sample string 1</RoomType>
<RoomTypeCode>sample string 5</RoomTypeCode>
<RoomTypeId>sample string 2</RoomTypeId>
<ServiceFee>30</ServiceFee>
<ServiceFeeGST>31</ServiceFeeGST>
<SingleCount>7</SingleCount>
<SingleTariff>8.1</SingleTariff>
<SingleTaxes>9.1</SingleTaxes>
<SupplierPrice>29</SupplierPrice>
<TariffPaymentMode>sample string 19</TariffPaymentMode>
<Total>32</Total>
<breakfast_included>true</breakfast_included>
<cancellationpenalty>sample string 16</cancellationpenalty>
<cancellationpolicy>sample string 15</cancellationpolicy>
<corporate_rate>true</corporate_rate>
<freecancellationuntil>sample string 17</freecancellationuntil>
<group_code>sample string 25</group_code>
<instant_booking>true</instant_booking>
<max_occupancy>23</max_occupancy>
<other_inclusions>sample string 28</other_inclusions>
<rate_comments>sample string 36</rate_comments>
<room_code>sample string 27</room_code>
<room_image>sample string 18</room_image>
<room_refernce>sample string 26</room_refernce>
<search_id>sample string 24</search_id>
</GRNRoomTypeResponse>
<GRNRoomTypeResponse>
<Currency>sample string 3</Currency>
<DoubleCount>1</DoubleCount>
<DoubleTariff>10.1</DoubleTariff>
<DoubleTaxes>11.1</DoubleTaxes>
<GRNCancellationPolicy>sample string 34</GRNCancellationPolicy>
<Inclusions>sample string 14</Inclusions>
<MealPlan>sample string 13</MealPlan>
<Pre_payment>true</Pre_payment>
<Price>33</Price>
<PromotionDetails>sample string 35</PromotionDetails>
<RatePlanCode>sample string 6</RatePlanCode>
<RatePlanId>sample string 4</RatePlanId>
<RoomType>sample string 1</RoomType>
<RoomTypeCode>sample string 5</RoomTypeCode>
<RoomTypeId>sample string 2</RoomTypeId>
<ServiceFee>30</ServiceFee>
<ServiceFeeGST>31</ServiceFeeGST>
<SingleCount>7</SingleCount>
<SingleTariff>8.1</SingleTariff>
<SingleTaxes>9.1</SingleTaxes>
<SupplierPrice>29</SupplierPrice>
<TariffPaymentMode>sample string 19</TariffPaymentMode>
<Total>32</Total>
<breakfast_included>true</breakfast_included>
<cancellationpenalty>sample string 16</cancellationpenalty>
<cancellationpolicy>sample string 15</cancellationpolicy>
<corporate_rate>true</corporate_rate>
<freecancellationuntil>sample string 17</freecancellationuntil>
<group_code>sample string 25</group_code>
<instant_booking>true</instant_booking>
<max_occupancy>23</max_occupancy>
<other_inclusions>sample string 28</other_inclusions>
<rate_comments>sample string 36</rate_comments>
<room_code>sample string 27</room_code>
<room_image>sample string 18</room_image>
<room_refernce>sample string 26</room_refernce>
<search_id>sample string 24</search_id>
</GRNRoomTypeResponse>
</room_types>
</GRNRoomTypes>
<GRNRoomTypes>
<HotelName>sample string 2</HotelName>
<PropertyId>sample string 1</PropertyId>
<room_types>
<GRNRoomTypeResponse>
<Currency>sample string 3</Currency>
<DoubleCount>1</DoubleCount>
<DoubleTariff>10.1</DoubleTariff>
<DoubleTaxes>11.1</DoubleTaxes>
<GRNCancellationPolicy>sample string 34</GRNCancellationPolicy>
<Inclusions>sample string 14</Inclusions>
<MealPlan>sample string 13</MealPlan>
<Pre_payment>true</Pre_payment>
<Price>33</Price>
<PromotionDetails>sample string 35</PromotionDetails>
<RatePlanCode>sample string 6</RatePlanCode>
<RatePlanId>sample string 4</RatePlanId>
<RoomType>sample string 1</RoomType>
<RoomTypeCode>sample string 5</RoomTypeCode>
<RoomTypeId>sample string 2</RoomTypeId>
<ServiceFee>30</ServiceFee>
<ServiceFeeGST>31</ServiceFeeGST>
<SingleCount>7</SingleCount>
<SingleTariff>8.1</SingleTariff>
<SingleTaxes>9.1</SingleTaxes>
<SupplierPrice>29</SupplierPrice>
<TariffPaymentMode>sample string 19</TariffPaymentMode>
<Total>32</Total>
<breakfast_included>true</breakfast_included>
<cancellationpenalty>sample string 16</cancellationpenalty>
<cancellationpolicy>sample string 15</cancellationpolicy>
<corporate_rate>true</corporate_rate>
<freecancellationuntil>sample string 17</freecancellationuntil>
<group_code>sample string 25</group_code>
<instant_booking>true</instant_booking>
<max_occupancy>23</max_occupancy>
<other_inclusions>sample string 28</other_inclusions>
<rate_comments>sample string 36</rate_comments>
<room_code>sample string 27</room_code>
<room_image>sample string 18</room_image>
<room_refernce>sample string 26</room_refernce>
<search_id>sample string 24</search_id>
</GRNRoomTypeResponse>
<GRNRoomTypeResponse>
<Currency>sample string 3</Currency>
<DoubleCount>1</DoubleCount>
<DoubleTariff>10.1</DoubleTariff>
<DoubleTaxes>11.1</DoubleTaxes>
<GRNCancellationPolicy>sample string 34</GRNCancellationPolicy>
<Inclusions>sample string 14</Inclusions>
<MealPlan>sample string 13</MealPlan>
<Pre_payment>true</Pre_payment>
<Price>33</Price>
<PromotionDetails>sample string 35</PromotionDetails>
<RatePlanCode>sample string 6</RatePlanCode>
<RatePlanId>sample string 4</RatePlanId>
<RoomType>sample string 1</RoomType>
<RoomTypeCode>sample string 5</RoomTypeCode>
<RoomTypeId>sample string 2</RoomTypeId>
<ServiceFee>30</ServiceFee>
<ServiceFeeGST>31</ServiceFeeGST>
<SingleCount>7</SingleCount>
<SingleTariff>8.1</SingleTariff>
<SingleTaxes>9.1</SingleTaxes>
<SupplierPrice>29</SupplierPrice>
<TariffPaymentMode>sample string 19</TariffPaymentMode>
<Total>32</Total>
<breakfast_included>true</breakfast_included>
<cancellationpenalty>sample string 16</cancellationpenalty>
<cancellationpolicy>sample string 15</cancellationpolicy>
<corporate_rate>true</corporate_rate>
<freecancellationuntil>sample string 17</freecancellationuntil>
<group_code>sample string 25</group_code>
<instant_booking>true</instant_booking>
<max_occupancy>23</max_occupancy>
<other_inclusions>sample string 28</other_inclusions>
<rate_comments>sample string 36</rate_comments>
<room_code>sample string 27</room_code>
<room_image>sample string 18</room_image>
<room_refernce>sample string 26</room_refernce>
<search_id>sample string 24</search_id>
</GRNRoomTypeResponse>
</room_types>
</GRNRoomTypes>
</ArrayOfGRNRoomTypes>