POST Hotel/BookingAllSupplier

Request Information

URI Parameters

None.

Body Parameters

HotelBookingAllSupplierRequest
NameDescriptionTypeAdditional information
paxPassport

string

None.

countryID

string

None.

cityID

string

None.

checkOutDate

date

None.

checkInDate

date

None.

roomRequest

Collection of HotelRoomRequestBookingModel

None.

internalCode

string

None.

hotelID

string

None.

breakfast

string

None.

roomID

string

None.

bedType

BedType

None.

agentOsRef

string

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",
  "checkOutDate": "2021-11-27T13:07:36.0916182+07:00",
  "checkInDate": "2021-11-27T13:07:36.0916182+07:00",
  "roomRequest": [
    {
      "paxes": [
        {
          "title": "sample string 1",
          "firstName": "sample string 2",
          "lastName": "sample string 3"
        },
        {
          "title": "sample string 1",
          "firstName": "sample string 2",
          "lastName": "sample string 3"
        }
      ],
      "isSmokingRoom": true,
      "phone": "sample string 2",
      "specialRequestArray": [
        {
          "ID": "sample string 1",
          "description": "sample string 2"
        },
        {
          "ID": "sample string 1",
          "description": "sample string 2"
        }
      ],
      "email": "sample string 3",
      "requestDescription": "sample string 4",
      "roomType": 0,
      "isRequestChildBed": true,
      "childNum": 6,
      "childAges": [
        1,
        2
      ]
    },
    {
      "paxes": [
        {
          "title": "sample string 1",
          "firstName": "sample string 2",
          "lastName": "sample string 3"
        },
        {
          "title": "sample string 1",
          "firstName": "sample string 2",
          "lastName": "sample string 3"
        }
      ],
      "isSmokingRoom": true,
      "phone": "sample string 2",
      "specialRequestArray": [
        {
          "ID": "sample string 1",
          "description": "sample string 2"
        },
        {
          "ID": "sample string 1",
          "description": "sample string 2"
        }
      ],
      "email": "sample string 3",
      "requestDescription": "sample string 4",
      "roomType": 0,
      "isRequestChildBed": true,
      "childNum": 6,
      "childAges": [
        1,
        2
      ]
    }
  ],
  "internalCode": "sample string 6",
  "hotelID": "sample string 7",
  "breakfast": "sample string 8",
  "roomID": "sample string 9",
  "bedType": {
    "ID": "sample string 1",
    "bed": "sample string 2"
  },
  "agentOsRef": "sample string 10",
  "userID": "sample string 11",
  "accessToken": "sample string 12"
}

application/xml, text/xml

Sample:
<HotelBookingAllSupplierRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cebes.DI.H2H.Api.Models">
  <accessToken>sample string 12</accessToken>
  <userID>sample string 11</userID>
  <agentOsRef>sample string 10</agentOsRef>
  <bedType>
    <ID>sample string 1</ID>
    <bed>sample string 2</bed>
  </bedType>
  <breakfast>sample string 8</breakfast>
  <checkInDate>2021-11-27T13:07:36.0916182+07:00</checkInDate>
  <checkOutDate>2021-11-27T13:07:36.0916182+07:00</checkOutDate>
  <cityID>sample string 3</cityID>
  <countryID>sample string 2</countryID>
  <hotelID>sample string 7</hotelID>
  <internalCode>sample string 6</internalCode>
  <paxPassport>sample string 1</paxPassport>
  <roomID>sample string 9</roomID>
  <roomRequest xmlns:d2p1="http://schemas.datacontract.org/2004/07/Cebes.DI.H2H.Api">
    <d2p1:HotelRoomRequestBookingModel>
      <childAges xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>1</d4p1:int>
        <d4p1:int>2</d4p1:int>
      </childAges>
      <childNum>6</childNum>
      <isRequestChildBed>true</isRequestChildBed>
      <roomType>Single</roomType>
      <d2p1:email>sample string 3</d2p1:email>
      <d2p1:isSmokingRoom>true</d2p1:isSmokingRoom>
      <d2p1:paxes>
        <d2p1:HotelPaxModel>
          <d2p1:firstName>sample string 2</d2p1:firstName>
          <d2p1:lastName>sample string 3</d2p1:lastName>
          <d2p1:title>sample string 1</d2p1:title>
        </d2p1:HotelPaxModel>
        <d2p1:HotelPaxModel>
          <d2p1:firstName>sample string 2</d2p1:firstName>
          <d2p1:lastName>sample string 3</d2p1:lastName>
          <d2p1:title>sample string 1</d2p1:title>
        </d2p1:HotelPaxModel>
      </d2p1:paxes>
      <d2p1:phone>sample string 2</d2p1:phone>
      <d2p1:requestDescription>sample string 4</d2p1:requestDescription>
      <d2p1:specialRequestArray>
        <SpecialRequestArray>
          <ID>sample string 1</ID>
          <description>sample string 2</description>
        </SpecialRequestArray>
        <SpecialRequestArray>
          <ID>sample string 1</ID>
          <description>sample string 2</description>
        </SpecialRequestArray>
      </d2p1:specialRequestArray>
    </d2p1:HotelRoomRequestBookingModel>
    <d2p1:HotelRoomRequestBookingModel>
      <childAges xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>1</d4p1:int>
        <d4p1:int>2</d4p1:int>
      </childAges>
      <childNum>6</childNum>
      <isRequestChildBed>true</isRequestChildBed>
      <roomType>Single</roomType>
      <d2p1:email>sample string 3</d2p1:email>
      <d2p1:isSmokingRoom>true</d2p1:isSmokingRoom>
      <d2p1:paxes>
        <d2p1:HotelPaxModel>
          <d2p1:firstName>sample string 2</d2p1:firstName>
          <d2p1:lastName>sample string 3</d2p1:lastName>
          <d2p1:title>sample string 1</d2p1:title>
        </d2p1:HotelPaxModel>
        <d2p1:HotelPaxModel>
          <d2p1:firstName>sample string 2</d2p1:firstName>
          <d2p1:lastName>sample string 3</d2p1:lastName>
          <d2p1:title>sample string 1</d2p1:title>
        </d2p1:HotelPaxModel>
      </d2p1:paxes>
      <d2p1:phone>sample string 2</d2p1:phone>
      <d2p1:requestDescription>sample string 4</d2p1:requestDescription>
      <d2p1:specialRequestArray>
        <SpecialRequestArray>
          <ID>sample string 1</ID>
          <description>sample string 2</description>
        </SpecialRequestArray>
        <SpecialRequestArray>
          <ID>sample string 1</ID>
          <description>sample string 2</description>
        </SpecialRequestArray>
      </d2p1:specialRequestArray>
    </d2p1:HotelRoomRequestBookingModel>
  </roomRequest>
</HotelBookingAllSupplierRequest>

Response Information

Resource Description

HotelBookingAllSupplierResponse
NameDescriptionTypeAdditional information
roomRequest

Collection of HotelRoomRequestBookingModel

None.

paxPassport

string

None.

countryID

string

None.

cityID

string

None.

checkOutDate

date

None.

checkInDate

date

None.

internalCode

string

None.

hotelID

string

None.

breakfast

string

None.

roomID

string

None.

requestDescription

string

None.

bookingDate

date

None.

reservationNo

string

None.

osRefNo

string

None.

voucherNo

string

None.

agentOsRef

string

None.

hotelName

string

None.

hotelAddress

string

None.

roomName

string

None.

roomNum

integer

None.

bookingStatus

string

None.

totalPrice

decimal number

None.

issuedTimeLimit

date

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:
{
  "roomRequest": [
    {
      "paxes": [
        {
          "title": "sample string 1",
          "firstName": "sample string 2",
          "lastName": "sample string 3"
        },
        {
          "title": "sample string 1",
          "firstName": "sample string 2",
          "lastName": "sample string 3"
        }
      ],
      "isSmokingRoom": true,
      "phone": "sample string 2",
      "specialRequestArray": [
        {
          "ID": "sample string 1",
          "description": "sample string 2"
        },
        {
          "ID": "sample string 1",
          "description": "sample string 2"
        }
      ],
      "email": "sample string 3",
      "requestDescription": "sample string 4",
      "roomType": 0,
      "isRequestChildBed": true,
      "childNum": 6,
      "childAges": [
        1,
        2
      ]
    },
    {
      "paxes": [
        {
          "title": "sample string 1",
          "firstName": "sample string 2",
          "lastName": "sample string 3"
        },
        {
          "title": "sample string 1",
          "firstName": "sample string 2",
          "lastName": "sample string 3"
        }
      ],
      "isSmokingRoom": true,
      "phone": "sample string 2",
      "specialRequestArray": [
        {
          "ID": "sample string 1",
          "description": "sample string 2"
        },
        {
          "ID": "sample string 1",
          "description": "sample string 2"
        }
      ],
      "email": "sample string 3",
      "requestDescription": "sample string 4",
      "roomType": 0,
      "isRequestChildBed": true,
      "childNum": 6,
      "childAges": [
        1,
        2
      ]
    }
  ],
  "paxPassport": "sample string 1",
  "countryID": "sample string 2",
  "cityID": "sample string 3",
  "checkOutDate": "2021-11-27T13:07:36.1072186+07:00",
  "checkInDate": "2021-11-27T13:07:36.1072186+07:00",
  "internalCode": "sample string 6",
  "hotelID": "sample string 7",
  "breakfast": "sample string 8",
  "roomID": "sample string 9",
  "requestDescription": "sample string 10",
  "bookingDate": "2021-11-27T13:07:36.1072186+07:00",
  "reservationNo": "sample string 12",
  "osRefNo": "sample string 13",
  "voucherNo": "sample string 14",
  "agentOsRef": "sample string 15",
  "hotelName": "sample string 16",
  "hotelAddress": "sample string 17",
  "roomName": "sample string 18",
  "roomNum": 19,
  "bookingStatus": "sample string 20",
  "totalPrice": 21.0,
  "issuedTimeLimit": "2021-11-27T13:07:36.1072186+07:00",
  "respTime": "2021-11-27T13:07:36.1072186+07:00",
  "userID": "sample string 23",
  "accessToken": "sample string 24",
  "status": "sample string 25",
  "respMessage": "sample string 26"
}

application/xml, text/xml

Sample:
<HotelBookingAllSupplierResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cebes.DI.H2H.Api.Models">
  <accessToken>sample string 24</accessToken>
  <respMessage>sample string 26</respMessage>
  <respTime>2021-11-27T13:07:36.1072186+07:00</respTime>
  <status>sample string 25</status>
  <userID>sample string 23</userID>
  <agentOsRef>sample string 15</agentOsRef>
  <bookingDate>2021-11-27T13:07:36.1072186+07:00</bookingDate>
  <bookingStatus>sample string 20</bookingStatus>
  <breakfast>sample string 8</breakfast>
  <checkInDate>2021-11-27T13:07:36.1072186+07:00</checkInDate>
  <checkOutDate>2021-11-27T13:07:36.1072186+07:00</checkOutDate>
  <cityID>sample string 3</cityID>
  <countryID>sample string 2</countryID>
  <hotelAddress>sample string 17</hotelAddress>
  <hotelID>sample string 7</hotelID>
  <hotelName>sample string 16</hotelName>
  <internalCode>sample string 6</internalCode>
  <issuedTimeLimit>2021-11-27T13:07:36.1072186+07:00</issuedTimeLimit>
  <osRefNo>sample string 13</osRefNo>
  <paxPassport>sample string 1</paxPassport>
  <requestDescription>sample string 10</requestDescription>
  <reservationNo>sample string 12</reservationNo>
  <roomID>sample string 9</roomID>
  <roomName>sample string 18</roomName>
  <roomNum>19</roomNum>
  <totalPrice>21</totalPrice>
  <voucherNo>sample string 14</voucherNo>
  <roomRequest xmlns:d2p1="http://schemas.datacontract.org/2004/07/Cebes.DI.H2H.Api">
    <d2p1:HotelRoomRequestBookingModel>
      <childAges xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>1</d4p1:int>
        <d4p1:int>2</d4p1:int>
      </childAges>
      <childNum>6</childNum>
      <isRequestChildBed>true</isRequestChildBed>
      <roomType>Single</roomType>
      <d2p1:email>sample string 3</d2p1:email>
      <d2p1:isSmokingRoom>true</d2p1:isSmokingRoom>
      <d2p1:paxes>
        <d2p1:HotelPaxModel>
          <d2p1:firstName>sample string 2</d2p1:firstName>
          <d2p1:lastName>sample string 3</d2p1:lastName>
          <d2p1:title>sample string 1</d2p1:title>
        </d2p1:HotelPaxModel>
        <d2p1:HotelPaxModel>
          <d2p1:firstName>sample string 2</d2p1:firstName>
          <d2p1:lastName>sample string 3</d2p1:lastName>
          <d2p1:title>sample string 1</d2p1:title>
        </d2p1:HotelPaxModel>
      </d2p1:paxes>
      <d2p1:phone>sample string 2</d2p1:phone>
      <d2p1:requestDescription>sample string 4</d2p1:requestDescription>
      <d2p1:specialRequestArray>
        <SpecialRequestArray>
          <ID>sample string 1</ID>
          <description>sample string 2</description>
        </SpecialRequestArray>
        <SpecialRequestArray>
          <ID>sample string 1</ID>
          <description>sample string 2</description>
        </SpecialRequestArray>
      </d2p1:specialRequestArray>
    </d2p1:HotelRoomRequestBookingModel>
    <d2p1:HotelRoomRequestBookingModel>
      <childAges xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>1</d4p1:int>
        <d4p1:int>2</d4p1:int>
      </childAges>
      <childNum>6</childNum>
      <isRequestChildBed>true</isRequestChildBed>
      <roomType>Single</roomType>
      <d2p1:email>sample string 3</d2p1:email>
      <d2p1:isSmokingRoom>true</d2p1:isSmokingRoom>
      <d2p1:paxes>
        <d2p1:HotelPaxModel>
          <d2p1:firstName>sample string 2</d2p1:firstName>
          <d2p1:lastName>sample string 3</d2p1:lastName>
          <d2p1:title>sample string 1</d2p1:title>
        </d2p1:HotelPaxModel>
        <d2p1:HotelPaxModel>
          <d2p1:firstName>sample string 2</d2p1:firstName>
          <d2p1:lastName>sample string 3</d2p1:lastName>
          <d2p1:title>sample string 1</d2p1:title>
        </d2p1:HotelPaxModel>
      </d2p1:paxes>
      <d2p1:phone>sample string 2</d2p1:phone>
      <d2p1:requestDescription>sample string 4</d2p1:requestDescription>
      <d2p1:specialRequestArray>
        <SpecialRequestArray>
          <ID>sample string 1</ID>
          <description>sample string 2</description>
        </SpecialRequestArray>
        <SpecialRequestArray>
          <ID>sample string 1</ID>
          <description>sample string 2</description>
        </SpecialRequestArray>
      </d2p1:specialRequestArray>
    </d2p1:HotelRoomRequestBookingModel>
  </roomRequest>
</HotelBookingAllSupplierResponse>