Hotel API · Booking flow
HotelRoomSelection()
This function is dedicated for hotel Room Selection and returns all applicable rooms definitions, boardings, supplements, globalsupplements…
Request
<HotelRoomSelectionRQ>
<Credential>
<Login>?</Login>
<Password>?</Password>
</Credential>
<User>?</User>
<Curr>?</Curr>
<Language>?</Language>
<HotelId>?</HotelId>
<FromDate>?</FromDate>
<ToDate>?</ToDate>
</HotelRoomSelectionRQ>| Root | Sub root | Description | Values & Format | Tag |
|---|---|---|---|---|
| Credential | Mandatory | |||
| Login | Text | |||
| Password | Text | |||
| User | ID User | Numeric | Mandatory | |
| Curr | ID Currency | Numeric | Mandatory | |
| Language | ID Language | Numeric | Mandatory | |
| HotelId | ID Hotel | Text | Mandatory | |
| FromDate | From Date | date | Mandatory | |
| ToDate | To date | date | Mandatory |
Response
<HotelRoomSelectionRS>
<ErrorResult id='?'>
<message>?</message>
</ErrorResult>
<rooms>
<room minAd='?' maxAd='?' minChild='?' maxChild='?'>
<id >?</id>
<title>?</title>
<price>?</price>
<image>?</image>
<boardings>
<boarding id='?' title='?' price='?' ></boarding>
</boardings>
<Supplements>
<Supplement id='?' title='?' price='?' Mandatory='?' PerNight='?' PerPax='?'></Supplement>
</Supplements>
<GlobalSupplements>
<GlobalSupplement id='?' title='?' price='?' Mandatory='?' PerNight='?' PerPax='?'></GlobalSupplement>
</GlobalSupplements>
</room>
</rooms>
</HotelRoomSelectionRS>| Root | Sub root | Description | Values & Format | Tag |
|---|---|---|---|---|
| ErrorResult | Operation State | |||
| ErrorResult:@id | Id of current error | Numeric | ||
| message | Appropriate message | Text | ||
| rooms | ||||
| room:Id | Id of room | Numeric | ||
| room:@minAd | Min Adult | Numeric | ||
| room:@maxAd | Max Adult | Numeric | ||
| room:@minChild | Min Child | Numeric | ||
| room:@maxChild | Max Child | Numeric | ||
| room:title | Title of Room | Text | ||
| room:price | Price Of Room | Numeric | ||
| room:image | Room Image URL | Text | ||
| room:boardings:boarding @Id | Id of Bording | Numeric | ||
| room:boardings:boarding @Title | title of Bording | Text | ||
| room:boardings:boarding @Price | price of Bording | Numeric | ||
| room: Supplements: Supplement@Id | Id of Supplement | Numeric | ||
| room: Supplements: Supplement@Title | title of Supplement | Text | ||
| room: Supplements: Supplement@Price | price of Supplement | Numeric | ||
| room: Supplements: Supplement@Mandatory | Is Mandatory Supplement | Boolean | ||
| room: Supplements: Supplement@PerNight | Is Per Night Supplement | Boolean | ||
| room: Supplements: Supplement@PerPax | Is Per Pax Supplement | Boolean | ||
| room: GlobalSupplements: GlobalSupplement@Id | Id of Global Supplement | Numeric | ||
| room: Supplements: Supplement@Title | title of Global Supplement | Text | ||
| room: GlobalSupplements: GlobalSupplement @Price | price of Global Supplement | Numeric | ||
| room: GlobalSupplements: GlobalSupplement @Mandatory | Is Mandatory Global Supplement | Boolean | ||
| room: GlobalSupplements: GlobalSupplement @PerNight | Is Per Night Global Supplement | Boolean | ||
| room: GlobalSupplements: GlobalSupplement@PerPax | Is Per Pax Global Supplement | Boolean |