Versions Compared

Key

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

...

Example request and response

Code Block
languagexml
titleOTA_HotelRatePlanRQ request
<OTA_HotelRatePlanRQ TimeStamp="2011-07-28T16:35:00" Target="Production" 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_HotelRatePlanRQ.xsd" PrimaryLangID="en">
  <POS>
    <Source>
      <RequestorID ID="USERNAME" MessagePassword="PASSWORD"></RequestorID>
    </Source>
  </POS>
  <RatePlans>
    <RatePlan>
      <HotelRef HotelCode="HOTELCODE" HotelName="HOTELNAME" />
      <DateRange Start="2018-01-01" End="2018-01-02" />
    </RatePlan>
  </RatePlans>
</OTA_HotelRatePlanRQ>
Code Block
titleOTA_HotelRatePlanRQ JSON Request
{
	"OTA_HotelRatePlanRQ": {
		"POS": {
			"Source": {
				"RequestorID": {
					"_ID": "USERNAME",
					"_MessagePassword": "PASSWORD"
				}
			}
		},
		"RatePlans": {
			"RatePlan": {
				"HotelRef": {
					"_HotelCode": "HOTELCODE",
					"_HotelName": "HOTELNAME"
				},
				"DateRange": {
					"_Start": "2018-01-01",
					"_End": "2018-01-02"
				}
			}
		},
		"_TimeStamp": "2011-07-28T16:35:00",
		"_Target": "Production",
		"_Version": "1.000",
		"_PrimaryLangID": "en"
	}
}



Code Block
languagexml
titleOTA_HotelRatePlanRS response
<OTA_HotelRatePlanRS xmlns="http://www.opentravel.org/OTA/2003/05" TimeStamp="2015-11-23T13:47:20+01:00" Target="Test" Version="1.0" schemaLocation="http://www.opentravel.org/OTA/2003/05 OTA_HotelRatePlanRQ.xsd" PrimaryLangID="en" CorrelationID="00Q56530ad885ad6">
  <Success></Success>
  <RatePlans>
    <RatePlan RatePlanCode="00P5566c93f87980">
      <Description>
        <Text>B2B</Text>
      </Description>
      <SellableProducts>
        <SellableProduct InvCode="00P5519245317baa">
          <UniqueID ID="00P564c6fdd1604b"/>
          <Description>
            <Text>Triple / B2B</Text>
          </Description>
        </SellableProduct>
        <SellableProduct InvCode="00P55a7bf24b4715">
          <UniqueID ID="00P564c6fdd15cf9"/>
          <Description>
            <Text>Twin / B2B</Text>
          </Description>
        </SellableProduct>
      </SellableProducts>
    </RatePlan>
  </RatePlans>
</OTA_HotelRatePlanRS>
Code Block
titleOTA_HotelRatePlanRS JSON Response
{
	"OTA_HotelRatePlanRS": {
		"Success": "",
		"RatePlans": {
			"RatePlan": {
				"Description": {
					"Text": "B2B"
				},
				"SellableProducts": {
					"SellableProduct": [
						{
							"UniqueID": {
								"_ID": "00P564c6fdd1604b"
							},
							"Description": {
								"Text": "Triple / B2B"
							},
							"_InvCode": "00P5519245317baa"
						},
						{
							"UniqueID": {
								"_ID": "00P564c6fdd15cf9"
							},
							"Description": {
								"Text": "Twin / B2B"
							},
							"_InvCode": "00P55a7bf24b4715"
						}
					]
				},
				"_RatePlanCode": "00P5566c93f87980"
			}
		},
		"_TimeStamp": "2015-11-23T13:47:20+01:00",
		"_Target": "Test",
		"_Version": "1.0",
		"_PrimaryLangID": "en",
		"_CorrelationID": "00Q56530ad885ad6"
	}
}


Request structure

OTA_HotelRatePlanRQ

...