Versions Compared

Key

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

...

Example request and response

Code Block
languagexml
titleOTA_HotelRatePlanNotifRQ request
<OTA_HotelRatePlanNotifRQ 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_HotelRatePlanNotifRQ.xsd" Version="1.000" Target="Test" TimeStamp="2011-07-29T14:06:25">
  <POS>
    <Source>
      <RequestorID ID="USERNAME" MessagePassword="PASSWORD"></RequestorID>
    </Source>
  </POS>
  <RatePlans HotelCode="00P5519244d6b5c6" HotelName="HOTELNAME">
    <RatePlan RatePlanCode="00P551924536469f">
      <Rates>
        <Rate RateTier="1234" Start="2015-08-24" End="2015-08-24"  Status="Open" >
          <BaseByGuestAmts>
            <BaseByGuestAmt AgeQualifyingCode="10" NumberOfGuests="1" AmountAfterTax="85.00" DecimalPlaces="0" CurrencyCode="EUR" />
            <BaseByGuestAmt AgeQualifyingCode="10" NumberOfGuests="2" AmountAfterTax="100.00" DecimalPlaces="0" CurrencyCode="EUR" />
            <BaseByGuestAmt AgeQualifyingCode="10" NumberOfGuests="3" AmountAfterTax="115.00" DecimalPlaces="0" CurrencyCode="EUR" />
          </BaseByGuestAmts>
        </Rate>
      </Rates>
      <SellableProducts>
        <SellableProduct InvCode="00P5519245316dc1" InvType="ROOM" />
      </SellableProducts>
    </RatePlan>
  </RatePlans>
</OTA_HotelRatePlanNotifRQ>



OTA_HotelRatePlanNotifRQ JSON request
Code Block
title
{
	"OTA_HotelRatePlanNotifRQ": {
		"POS": {
			"Source": {
				"RequestorID": {
					"_ID": "USERNAME",
					"_MessagePassword": "PASSWORD"
				}
			}
		},
		"RatePlans": {
			"RatePlan": {
				"Rates": {
					"Rate": {
						"BaseByGuestAmts": {
							"BaseByGuestAmt": [
								{
									"_AgeQualifyingCode": "10",
									"_NumberOfGuests": "1",
									"_AmountAfterTax": "85.00",
									"_DecimalPlaces": "0",
									"_CurrencyCode": "EUR"
								},
								{
									"_AgeQualifyingCode": "10",
									"_NumberOfGuests": "2",
									"_AmountAfterTax": "100.00",
									"_DecimalPlaces": "0",
									"_CurrencyCode": "EUR"
								},
								{
									"_AgeQualifyingCode": "10",
									"_NumberOfGuests": "3",
									"_AmountAfterTax": "115.00",
									"_DecimalPlaces": "0",
									"_CurrencyCode": "EUR"
								}
							]
						},
						"_RateTier": "1234",
						"_Start": "2015-08-24",
						"_End": "2015-08-24",
						"_Status": "Open"
					}
				},
				"SellableProducts": {
					"SellableProduct": {
						"_InvCode": "INVCODE",
						"_InvType": "ROOM"
					}
				},
				"_RatePlanCode": "RATEPLANCODE"
			},
			"_HotelCode": "HOTELCODE",
			"_HotelName": "HOTELNAME"
		},
		"_Version": "1.000",
		"_Target": "Test",
		"_TimeStamp": "2011-07-29T14:06:25"
	}
}
Code Block
languagexml
titleOTA_HotelRatePlanNotifRS response
<OTA_HotelAvailNotifRS xmlns="http://www.opentravel.org/OTA/2003/05" schemaLocation="http://www.opentravel.org/OTA/2003/05 OTA_HotelAvailNotifRQ.xsd" TimeStamp="2015-11-17T14:45:54+01:00" Target="Test" Version="1.0" CorrelationID="00Q564b2f91e1bf6">
  <Success />
</OTA_HotelAvailNotifRS>
Code Block
titleOTA_HotelRatePlanNotifRS Response as JSON
{
    "Success": null,
    "_PrimaryLangID": "en",
    "_TimeStamp": "2019-09-19T07:28:14+02:00",
    "_Target": "Test",
    "_Version": "1.000",
    "_CorrelationID": null
}


Warning

The attribute InvCode might need to be replaced by the attribute InvTypeCode depending on the way we declared your interface on our side during development.

This is a setting that is set only once and then inpact all your requests.

In that case the result would be 

<SellableProducts>

  <SellableProduct InvTypeCode="00P5519245316dc1" InvType="ROOM" />

</SellableProducts>

...