POST Hotel/Search2

Request Information

URI Parameters

None.

Body Parameters

HotelSearchRequest
NameDescriptionTypeAdditional information
paxPassport

string

None.

countryID

string

None.

cityID

string

None.

checkInDate

date

None.

checkOutDate

date

None.

roomRequest

Collection of HotelRoomRequestModel

None.

userID

user API

string

None.

accessToken

access code getting from login

string

None.

Request Formats

application/json, text/json

Sample:
{
  "paxPassport": "sample string 1",
  "countryID": "sample string 2",
  "cityID": "sample string 3",
  "checkInDate": "2021-11-27T12:51:55.0347416+07:00",
  "checkOutDate": "2021-11-27T12:51:55.0347416+07:00",
  "roomRequest": [
    {
      "roomType": 0,
      "isRequestChildBed": true,
      "childNum": 2,
      "childAges": [
        1,
        2
      ]
    },
    {
      "roomType": 0,
      "isRequestChildBed": true,
      "childNum": 2,
      "childAges": [
        1,
        2
      ]
    }
  ],
  "userID": "sample string 6",
  "accessToken": "sample string 7"
}

application/xml, text/xml

Sample:
<HotelSearchRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cebes.DI.H2H.Api.Models">
  <accessToken>sample string 7</accessToken>
  <userID>sample string 6</userID>
  <checkInDate>2021-11-27T12:51:55.0347416+07:00</checkInDate>
  <checkOutDate>2021-11-27T12:51:55.0347416+07:00</checkOutDate>
  <cityID>sample string 3</cityID>
  <countryID>sample string 2</countryID>
  <paxPassport>sample string 1</paxPassport>
  <roomRequest>
    <HotelRoomRequestModel>
      <childAges xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>1</d4p1:int>
        <d4p1:int>2</d4p1:int>
      </childAges>
      <childNum>2</childNum>
      <isRequestChildBed>true</isRequestChildBed>
      <roomType>Single</roomType>
    </HotelRoomRequestModel>
    <HotelRoomRequestModel>
      <childAges xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>1</d4p1:int>
        <d4p1:int>2</d4p1:int>
      </childAges>
      <childNum>2</childNum>
      <isRequestChildBed>true</isRequestChildBed>
      <roomType>Single</roomType>
    </HotelRoomRequestModel>
  </roomRequest>
</HotelSearchRequest>

Response Information

Resource Description

HotelSearchResponse
NameDescriptionTypeAdditional information
hotels

Collection of HotelSearchModel

None.

paxPassport

string

None.

countryID

string

None.

cityID

string

None.

checkOutDate

date

None.

checkInDate

date

None.

roomRequest

Collection of HotelRoomRequestModel

None.

respTime

describe time in sending response

date

None.

userID

user ID to access API

string

None.

accessToken

access token that needed to access API

string

None.

status

SUCCESS or FAILED

string

None.

respMessage

detail message of response status

string

None.

Response Formats

application/json, text/json

Sample:
{
  "hotels": [
    {
      "name": "sample string 1",
      "ID": "sample string 2",
      "rating": 3.0,
      "email": "sample string 4",
      "address": "sample string 5",
      "internalCode": "sample string 6",
      "logo": "sample string 7",
      "availabilityStatus": true,
      "bookingDaysBefore": 9,
      "market": "sample string 10",
      "message": "sample string 11",
      "phone": "sample string 12",
      "website": "sample string 13",
      "promoEndDate": "2021-11-27T12:51:55.0347416+07:00",
      "rooms": [
        {
          "ID": "sample string 1",
          "breakfast": "sample string 2",
          "name": "sample string 3",
          "isOnRequest": true,
          "price": 5.0,
          "bookingType": "sample string 6",
          "isPackageDeal": true,
          "promoCode": "sample string 8",
          "hotelGroup": 9,
          "image": "sample string 10",
          "facilites": [
            "sample string 1",
            "sample string 2"
          ]
        },
        {
          "ID": "sample string 1",
          "breakfast": "sample string 2",
          "name": "sample string 3",
          "isOnRequest": true,
          "price": 5.0,
          "bookingType": "sample string 6",
          "isPackageDeal": true,
          "promoCode": "sample string 8",
          "hotelGroup": 9,
          "image": "sample string 10",
          "facilites": [
            "sample string 1",
            "sample string 2"
          ]
        }
      ],
      "facilities": [
        "sample string 1",
        "sample string 2"
      ],
      "ratingAverage": 14.0,
      "facility": [
        {
          "facilityGroupName": "sample string 1",
          "facilities": [
            "sample string 1",
            "sample string 2"
          ]
        },
        {
          "facilityGroupName": "sample string 1",
          "facilities": [
            "sample string 1",
            "sample string 2"
          ]
        }
      ],
      "nearbyProperty": [
        {
          "propertyGroupName": "sample string 1",
          "property": [
            {
              "groupName": "sample string 1",
              "propertyName": "sample string 2",
              "distance": 3.0,
              "distanceUnit": "sample string 4"
            },
            {
              "groupName": "sample string 1",
              "propertyName": "sample string 2",
              "distance": 3.0,
              "distanceUnit": "sample string 4"
            }
          ]
        },
        {
          "propertyGroupName": "sample string 1",
          "property": [
            {
              "groupName": "sample string 1",
              "propertyName": "sample string 2",
              "distance": 3.0,
              "distanceUnit": "sample string 4"
            },
            {
              "groupName": "sample string 1",
              "propertyName": "sample string 2",
              "distance": 3.0,
              "distanceUnit": "sample string 4"
            }
          ]
        }
      ],
      "latitude": "sample string 15",
      "longitude": "sample string 16"
    },
    {
      "name": "sample string 1",
      "ID": "sample string 2",
      "rating": 3.0,
      "email": "sample string 4",
      "address": "sample string 5",
      "internalCode": "sample string 6",
      "logo": "sample string 7",
      "availabilityStatus": true,
      "bookingDaysBefore": 9,
      "market": "sample string 10",
      "message": "sample string 11",
      "phone": "sample string 12",
      "website": "sample string 13",
      "promoEndDate": "2021-11-27T12:51:55.0347416+07:00",
      "rooms": [
        {
          "ID": "sample string 1",
          "breakfast": "sample string 2",
          "name": "sample string 3",
          "isOnRequest": true,
          "price": 5.0,
          "bookingType": "sample string 6",
          "isPackageDeal": true,
          "promoCode": "sample string 8",
          "hotelGroup": 9,
          "image": "sample string 10",
          "facilites": [
            "sample string 1",
            "sample string 2"
          ]
        },
        {
          "ID": "sample string 1",
          "breakfast": "sample string 2",
          "name": "sample string 3",
          "isOnRequest": true,
          "price": 5.0,
          "bookingType": "sample string 6",
          "isPackageDeal": true,
          "promoCode": "sample string 8",
          "hotelGroup": 9,
          "image": "sample string 10",
          "facilites": [
            "sample string 1",
            "sample string 2"
          ]
        }
      ],
      "facilities": [
        "sample string 1",
        "sample string 2"
      ],
      "ratingAverage": 14.0,
      "facility": [
        {
          "facilityGroupName": "sample string 1",
          "facilities": [
            "sample string 1",
            "sample string 2"
          ]
        },
        {
          "facilityGroupName": "sample string 1",
          "facilities": [
            "sample string 1",
            "sample string 2"
          ]
        }
      ],
      "nearbyProperty": [
        {
          "propertyGroupName": "sample string 1",
          "property": [
            {
              "groupName": "sample string 1",
              "propertyName": "sample string 2",
              "distance": 3.0,
              "distanceUnit": "sample string 4"
            },
            {
              "groupName": "sample string 1",
              "propertyName": "sample string 2",
              "distance": 3.0,
              "distanceUnit": "sample string 4"
            }
          ]
        },
        {
          "propertyGroupName": "sample string 1",
          "property": [
            {
              "groupName": "sample string 1",
              "propertyName": "sample string 2",
              "distance": 3.0,
              "distanceUnit": "sample string 4"
            },
            {
              "groupName": "sample string 1",
              "propertyName": "sample string 2",
              "distance": 3.0,
              "distanceUnit": "sample string 4"
            }
          ]
        }
      ],
      "latitude": "sample string 15",
      "longitude": "sample string 16"
    }
  ],
  "paxPassport": "sample string 1",
  "countryID": "sample string 2",
  "cityID": "sample string 3",
  "checkOutDate": "2021-11-27T12:51:55.0347416+07:00",
  "checkInDate": "2021-11-27T12:51:55.0347416+07:00",
  "roomRequest": [
    {
      "roomType": 0,
      "isRequestChildBed": true,
      "childNum": 2,
      "childAges": [
        1,
        2
      ]
    },
    {
      "roomType": 0,
      "isRequestChildBed": true,
      "childNum": 2,
      "childAges": [
        1,
        2
      ]
    }
  ],
  "respTime": "2021-11-27T12:51:55.0347416+07:00",
  "userID": "sample string 7",
  "accessToken": "sample string 8",
  "status": "sample string 9",
  "respMessage": "sample string 10"
}

application/xml, text/xml

Sample:
<HotelSearchResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cebes.DI.H2H.Api.Models">
  <accessToken>sample string 8</accessToken>
  <respMessage>sample string 10</respMessage>
  <respTime>2021-11-27T12:51:55.0347416+07:00</respTime>
  <status>sample string 9</status>
  <userID>sample string 7</userID>
  <checkInDate>2021-11-27T12:51:55.0347416+07:00</checkInDate>
  <checkOutDate>2021-11-27T12:51:55.0347416+07:00</checkOutDate>
  <cityID>sample string 3</cityID>
  <countryID>sample string 2</countryID>
  <hotels>
    <HotelSearchModel>
      <ID>sample string 2</ID>
      <address>sample string 5</address>
      <availabilityStatus>true</availabilityStatus>
      <bookingDaysBefore>9</bookingDaysBefore>
      <email>sample string 4</email>
      <facilities xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </facilities>
      <facility>
        <HotelFacilityModel>
          <facilities xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:string>sample string 1</d6p1:string>
            <d6p1:string>sample string 2</d6p1:string>
          </facilities>
          <facilityGroupName>sample string 1</facilityGroupName>
        </HotelFacilityModel>
        <HotelFacilityModel>
          <facilities xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:string>sample string 1</d6p1:string>
            <d6p1:string>sample string 2</d6p1:string>
          </facilities>
          <facilityGroupName>sample string 1</facilityGroupName>
        </HotelFacilityModel>
      </facility>
      <internalCode>sample string 6</internalCode>
      <latitude>sample string 15</latitude>
      <logo>sample string 7</logo>
      <longitude>sample string 16</longitude>
      <market>sample string 10</market>
      <message>sample string 11</message>
      <name>sample string 1</name>
      <nearbyProperty>
        <HotelNearbyProperty>
          <property>
            <HotelNearbyPropertyDetail>
              <distance>3</distance>
              <distanceUnit>sample string 4</distanceUnit>
              <groupName>sample string 1</groupName>
              <propertyName>sample string 2</propertyName>
            </HotelNearbyPropertyDetail>
            <HotelNearbyPropertyDetail>
              <distance>3</distance>
              <distanceUnit>sample string 4</distanceUnit>
              <groupName>sample string 1</groupName>
              <propertyName>sample string 2</propertyName>
            </HotelNearbyPropertyDetail>
          </property>
          <propertyGroupName>sample string 1</propertyGroupName>
        </HotelNearbyProperty>
        <HotelNearbyProperty>
          <property>
            <HotelNearbyPropertyDetail>
              <distance>3</distance>
              <distanceUnit>sample string 4</distanceUnit>
              <groupName>sample string 1</groupName>
              <propertyName>sample string 2</propertyName>
            </HotelNearbyPropertyDetail>
            <HotelNearbyPropertyDetail>
              <distance>3</distance>
              <distanceUnit>sample string 4</distanceUnit>
              <groupName>sample string 1</groupName>
              <propertyName>sample string 2</propertyName>
            </HotelNearbyPropertyDetail>
          </property>
          <propertyGroupName>sample string 1</propertyGroupName>
        </HotelNearbyProperty>
      </nearbyProperty>
      <phone>sample string 12</phone>
      <promoEndDate>2021-11-27T12:51:55.0347416+07:00</promoEndDate>
      <rating>3</rating>
      <ratingAverage>14</ratingAverage>
      <rooms>
        <HotelRoomInformationModel>
          <ID>sample string 1</ID>
          <bookingType>sample string 6</bookingType>
          <breakfast>sample string 2</breakfast>
          <facilites xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:string>sample string 1</d6p1:string>
            <d6p1:string>sample string 2</d6p1:string>
          </facilites>
          <hotelGroup>9</hotelGroup>
          <image>sample string 10</image>
          <isOnRequest>true</isOnRequest>
          <isPackageDeal>true</isPackageDeal>
          <name>sample string 3</name>
          <price>5</price>
          <promoCode>sample string 8</promoCode>
        </HotelRoomInformationModel>
        <HotelRoomInformationModel>
          <ID>sample string 1</ID>
          <bookingType>sample string 6</bookingType>
          <breakfast>sample string 2</breakfast>
          <facilites xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:string>sample string 1</d6p1:string>
            <d6p1:string>sample string 2</d6p1:string>
          </facilites>
          <hotelGroup>9</hotelGroup>
          <image>sample string 10</image>
          <isOnRequest>true</isOnRequest>
          <isPackageDeal>true</isPackageDeal>
          <name>sample string 3</name>
          <price>5</price>
          <promoCode>sample string 8</promoCode>
        </HotelRoomInformationModel>
      </rooms>
      <website>sample string 13</website>
    </HotelSearchModel>
    <HotelSearchModel>
      <ID>sample string 2</ID>
      <address>sample string 5</address>
      <availabilityStatus>true</availabilityStatus>
      <bookingDaysBefore>9</bookingDaysBefore>
      <email>sample string 4</email>
      <facilities xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </facilities>
      <facility>
        <HotelFacilityModel>
          <facilities xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:string>sample string 1</d6p1:string>
            <d6p1:string>sample string 2</d6p1:string>
          </facilities>
          <facilityGroupName>sample string 1</facilityGroupName>
        </HotelFacilityModel>
        <HotelFacilityModel>
          <facilities xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:string>sample string 1</d6p1:string>
            <d6p1:string>sample string 2</d6p1:string>
          </facilities>
          <facilityGroupName>sample string 1</facilityGroupName>
        </HotelFacilityModel>
      </facility>
      <internalCode>sample string 6</internalCode>
      <latitude>sample string 15</latitude>
      <logo>sample string 7</logo>
      <longitude>sample string 16</longitude>
      <market>sample string 10</market>
      <message>sample string 11</message>
      <name>sample string 1</name>
      <nearbyProperty>
        <HotelNearbyProperty>
          <property>
            <HotelNearbyPropertyDetail>
              <distance>3</distance>
              <distanceUnit>sample string 4</distanceUnit>
              <groupName>sample string 1</groupName>
              <propertyName>sample string 2</propertyName>
            </HotelNearbyPropertyDetail>
            <HotelNearbyPropertyDetail>
              <distance>3</distance>
              <distanceUnit>sample string 4</distanceUnit>
              <groupName>sample string 1</groupName>
              <propertyName>sample string 2</propertyName>
            </HotelNearbyPropertyDetail>
          </property>
          <propertyGroupName>sample string 1</propertyGroupName>
        </HotelNearbyProperty>
        <HotelNearbyProperty>
          <property>
            <HotelNearbyPropertyDetail>
              <distance>3</distance>
              <distanceUnit>sample string 4</distanceUnit>
              <groupName>sample string 1</groupName>
              <propertyName>sample string 2</propertyName>
            </HotelNearbyPropertyDetail>
            <HotelNearbyPropertyDetail>
              <distance>3</distance>
              <distanceUnit>sample string 4</distanceUnit>
              <groupName>sample string 1</groupName>
              <propertyName>sample string 2</propertyName>
            </HotelNearbyPropertyDetail>
          </property>
          <propertyGroupName>sample string 1</propertyGroupName>
        </HotelNearbyProperty>
      </nearbyProperty>
      <phone>sample string 12</phone>
      <promoEndDate>2021-11-27T12:51:55.0347416+07:00</promoEndDate>
      <rating>3</rating>
      <ratingAverage>14</ratingAverage>
      <rooms>
        <HotelRoomInformationModel>
          <ID>sample string 1</ID>
          <bookingType>sample string 6</bookingType>
          <breakfast>sample string 2</breakfast>
          <facilites xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:string>sample string 1</d6p1:string>
            <d6p1:string>sample string 2</d6p1:string>
          </facilites>
          <hotelGroup>9</hotelGroup>
          <image>sample string 10</image>
          <isOnRequest>true</isOnRequest>
          <isPackageDeal>true</isPackageDeal>
          <name>sample string 3</name>
          <price>5</price>
          <promoCode>sample string 8</promoCode>
        </HotelRoomInformationModel>
        <HotelRoomInformationModel>
          <ID>sample string 1</ID>
          <bookingType>sample string 6</bookingType>
          <breakfast>sample string 2</breakfast>
          <facilites xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:string>sample string 1</d6p1:string>
            <d6p1:string>sample string 2</d6p1:string>
          </facilites>
          <hotelGroup>9</hotelGroup>
          <image>sample string 10</image>
          <isOnRequest>true</isOnRequest>
          <isPackageDeal>true</isPackageDeal>
          <name>sample string 3</name>
          <price>5</price>
          <promoCode>sample string 8</promoCode>
        </HotelRoomInformationModel>
      </rooms>
      <website>sample string 13</website>
    </HotelSearchModel>
  </hotels>
  <paxPassport>sample string 1</paxPassport>
  <roomRequest>
    <HotelRoomRequestModel>
      <childAges xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>1</d4p1:int>
        <d4p1:int>2</d4p1:int>
      </childAges>
      <childNum>2</childNum>
      <isRequestChildBed>true</isRequestChildBed>
      <roomType>Single</roomType>
    </HotelRoomRequestModel>
    <HotelRoomRequestModel>
      <childAges xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>1</d4p1:int>
        <d4p1:int>2</d4p1:int>
      </childAges>
      <childNum>2</childNum>
      <isRequestChildBed>true</isRequestChildBed>
      <roomType>Single</roomType>
    </HotelRoomRequestModel>
  </roomRequest>
</HotelSearchResponse>