Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Example request and response

Code Block
languagexml
titleOTA_HotelRoomListRQ request
<OTA_HotelRoomListRQ PrimaryLangID="en" TimeStamp="2015-06-30T17:26:26+02:00" Target="Test" Version="1.000" xmlns="http://www.opentravel.org/OTA/2003/05" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opentravel.org/OTA/2003/05 OTA_HotelRoomListRQ.xsd">
    <POS>
    <Source>
      <RequestorID ID="USERNAME" MessagePassword="PASSWORD" />
    </Source>
  </POS>
  <HotelRoomLists>
    <HotelRoomList HotelCode="1234abc"></HotelRoomList>
  </HotelRoomLists>
</OTA_HotelRoomListRQ>


title
Code Block
OTA_HotelRoomListRQ JSON request
{
	"OTA_HotelRoomListRQ": {
		"POS": {
			"Source": {
				"RequestorID": {
					"_ID": "USERNAME",
					"_MessagePassword": "PASSWORD"
				}
			}
		},
		"HotelRoomLists": {
			"HotelRoomList": {
				"_HotelCode": "HOTELCODE"
			}
		},
		"_PrimaryLangID": "en",
		"_TimeStamp": "2015-06-30T17:26:26+02:00",
		"_Target": "Test",
		"_Version": "1.000"
	}
}
Code Block
languagexml
titleOTA_HotelRoomListRS response
<OTA_HotelRoomListRS xmlns="http://www.opentravel.org/OTA/2003/05" Version="1.0" TimeStamp="2015-11-19T08:37:01+01:00" CorrelationID="00Q564d7c1dc9822">
  <HotelRoomLists>
    <HotelRoomList HotelName="Hotel Monopole" HotelCode="00P5519244d6895d">
      <RoomStays>
        <RoomStay>
          <RoomTypes>
            <RoomType IsRoom="true" RoomID="00P55192452c758a">
              <RoomDescription Name="Double"/>
            </RoomType>
          </RoomTypes>
          <RatePlans>
            <RatePlan RatePlanID="00P551924532f2f7" RatePlanName="Standard"/>
            <RatePlan RatePlanID="00P5519245339021" RatePlanName="Non refundable"/>
            <RatePlan RatePlanID="00P5519245344243" RatePlanName="Hot Deal"/>
          </RatePlans>
        </RoomStay>
        <RoomStay>
          <RoomTypes>
            <RoomType IsRoom="true" RoomID="00P55192452dc947">
              <RoomDescription Name="Single"/>
            </RoomType>
          </RoomTypes>
          <RatePlans>
            <RatePlan RatePlanID="00P551924532f2f7" RatePlanName="Standard"/>
            <RatePlan RatePlanID="00P5519245339021" RatePlanName="Non refundable"/>
          </RatePlans>
        </RoomStay>
        <RoomStay>
          <RoomTypes>
            <RoomType IsRoom="true" RoomID="00P5519245317baa">
              <RoomDescription Name="Triple"/>
            </RoomType>
          </RoomTypes>
          <RatePlans>
            <RatePlan RatePlanID="00P551924532f2f7" RatePlanName="Standard"/>
            <RatePlan RatePlanID="00P5519245339021" RatePlanName="Non refundable"/>
            <RatePlan RatePlanID="00P5566c93f87980" RatePlanName="B2B"/>
          </RatePlans>
        </RoomStay>
        <RoomStay>
          <RoomTypes>
            <RoomType IsRoom="true" RoomID="00P55a7bf24b4715">
              <RoomDescription Name="Twin"/>
            </RoomType>
          </RoomTypes>
          <RatePlans>
            <RatePlan RatePlanID="00P5566c93f87980" RatePlanName="B2B"/>
          </RatePlans>
        </RoomStay>
      </RoomStays>
    </HotelRoomList>
  </HotelRoomLists>
  <Success></Success>
</OTA_HotelRoomListRS>

Code Block
titleOTA_HotelRoomListRS JSON response
{
	"OTA_HotelRoomListRS": {
		"Success": "",
		"HotelRoomLists": {
			"HotelRoomList": {
				"RoomStays": {
					"RoomStay": [
						{
							"RoomTypes": {
								"RoomType": {
									"RoomDescription": {
										"_Name": "Double"
									},
									"_IsRoom": "true",
									"_RoomID": "00P55192452c758a"
								}
							},
							"RatePlans": {
								"RatePlan": [
									{
										"_RatePlanID": "00P551924532f2f7",
										"_RatePlanName": "Standard"
									},
									{
										"_RatePlanID": "00P5519245339021",
										"_RatePlanName":
"Non
refundable"
									},
									{
										"_RatePlanID": "00P5519245344243",
										"_RatePlanName": "Hot Deal"
									}
								]
							}
						},
						{
							"RoomTypes": {
								"RoomType": {
									"RoomDescription": {
										"_Name": "Single"
									},
									"_IsRoom": "true",
									"_RoomID": "00P55192452dc947"
								}
							},
							"RatePlans": {
								"RatePlan": [
									{
										"_RatePlanID": "00P551924532f2f7",
										"_RatePlanName": "Standard"
									},
									{
										"_RatePlanID": "00P5519245339021",
										"_RatePlanName": "Non refundable"
									}
								]
							}
						},
						{
							"RoomTypes": {
								"RoomType": {
									"RoomDescription": {
										"_Name": "Triple"
									},
									"_IsRoom": "true",
									"_RoomID": "00P5519245317baa"
								}
							},
							"RatePlans": {
								"RatePlan": [
									{
										"_RatePlanID": "00P551924532f2f7",
										"_RatePlanName": "Standard"
									},
									{
										"_RatePlanID": "00P5519245339021",
										"_RatePlanName": "Non refundable"
									},
									{
										"_RatePlanID": "00P5566c93f87980",
										"_RatePlanName": "B2B"
									}
								]
							}
						},
						{
							"RoomTypes": {
								"RoomType": {
									"RoomDescription": {
										"_Name": "Twin"
									},
									"_IsRoom": "true",
									"_RoomID": "00P55a7bf24b4715"
								}
							},
							"RatePlans": {
								"RatePlan": {
									"_RatePlanID": "00P5566c93f87980",
									"_RatePlanName": "B2B"
								}
							}
						}
					]
				},
				"_HotelName": "HOTELNAME",
				"_HotelCode": "HOTELCODE"
			}
		},
		"_Version": "1.0",
		"_TimeStamp": "2015-11-19T08:37:01+01:00",
		"_CorrelationID": "00Q564d7c1dc9822"
	}
}


Request structure

OTA_HotelRoomListRQ

...