Versions Compared

Key

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

The OTA_HotelBookingRulelNotif messages are used to update the following elements in the Hotel-Spider system:

...

Example request and response

...

Code Block
languagexml
titleOTA_HotelBookingRuleNotifRS response
<OTA_HotelBookingRuleNotifRS xmlns="http://www.opentravel.org/OTA/2003/05" schemaLocation="http://www.opentravel.org/OTA/2003/05 OTA_HotelBookingRuleNotifRQ.xsd" TimeStamp="2015-11-17T14:45:54+01:00" Target="Test" Version="1.0" CorrelationID="00Q564b2f91e1bf6">
  <Success />
</OTA_HotelBookingRuleNotifRS>
Code Block
titleOTA_HotelBookingRuleNotifRQ Request as JSON
{
	"OTA_HotelBookingRuleNotifRQ": {
		"POS": {
			"Source": {
				"RequestorID": {
					"_ID": "USERNAME",
					"_MessagePassword": "PASSWORD"
				}
			}
		},
		"RuleMessages": {
			"RuleMessage": {
				"StatusApplicationControl": {
					"_InvCode": "00P5519245316dc1",
					"_RatePlanCode": "00P551924536469f",
					"_Start": "2015-08-24",
					"_End": "2015-08-24"
				},
				"BookingRules": {
					"BookingRule": [
						{
							"LengthsOfStay": {
								"LengthOfStay": [
									{
										"_MinMaxMessageType": "MinLOS",
										"_Time": "2"
									},
									{
										"_MinMaxMessageType": "MaxLOS",
										"_Time": "4"
									}
								]
							},
							"RestrictionStatus": {
								"_Restriction": "Arrival",
								"_Status": "Open"
							},
							"_MinAdvancedBookingOffset": "P4D",
							"_MaxAdvancedBookingOffset": "P4D"
						},
						{
							"RestrictionStatus": {
								"_Restriction": "Departure",
								"_Status": "Close"
							}
						},
						{
							"RestrictionStatus": {
								"_Restriction": "Master",
								"_Status": "Open"
							}
						}
					]
				}
			},
			"_HotelCode": "HOTELCODE",
			"_HotelName": "HOTELNAME"
		},
		"_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_HotelBookingRuleNotifRQ.xsd",
		"_Version": "1.000",
		"_Target": "Test",
		"_TimeStamp": "2011-08-01T12:05:56"
	}
}
Code Block
titleOTA_HotelBookingRuleNotifRS Response as JSON
{
    "Success": null,
    "_PrimaryLangID": "en",
    "_TimeStamp": "2019-09-19T07:28:14+02:00",
    "_Target": "Test",
    "_Version": "1.000",
    "_CorrelationID": null
}


Request structure

OTA_HotelBookingRuleNotifRQ

...

NameMandatoryDescription
MinAdvancedBookingOffsetNo

Minimum amount of time between the reservation and the arrival

(this value is transfered using the ISO 8601 Duration notation)

e.g. if the value is "P2D" for a given date, no reservation can be made in the last 2 days before the arrival date

Possible values are:

  • P0DT0H (none)
  • P0DT6H (same day 18h00)
  • P0DT9H (same day 15h00)
  • P0DT12H (Same day 12h00)
  • P0DT15H (Same day 09h00)
  • P1DT6H (One day 18h00)
  • P1DT9H (One day 15h00)
  • P1DT12H (One day 12h00)
  • P1DT15H (One day 09h00)
  • P2D (Two days)
  • P2DT6H (Two days 18h00)
  • P2DT12H (Two days 12h00)
  • P2DT15H (Two days 09h00)
  • P3D (3 days)
  • P4D (4 days)
  • P5D (5 days)
  • P6D (6 days)
  • P1W (1 week)
  • P2W (2 weeks)
  • P3W (3 weeks)
  • P1M (1 month)
  • P2M (2 months)
  • P3M (3 months)
  • P4M (4 months)
  • P5M (5 months)
  • P6M (6 months)
  • P1Y (1 year)
MinAdvancedBookingOffsetNo

maximum amount of time between the reservation and the arrival

(this value is transfered using the ISO 8601 Duration notation)

e.g. if the value is "P6M" for a given date, no reservation can be made before the last 6 months before the arrival date


Possible values are:

  • P1Y (1 year)
  • P6M (6 months)
  • P5M (5 months)
  • P4M (4 months)
  • P3M (3 months)
  • P2M (2 months)
  • P1M (1 month)
  • P3W (3 weeks)
  • P2W (2 weeks)
  • P1W (1 week)
  • P6D (6 days)
  • P5D (5 days)
  • P4D (4 days)
  • P3D (3 days)
  • P2DT15H (Two days 09h00)
  • P2DT12H (Two days 12h00)
  • P2DT6H (Two days 18h00)
  • P2D (Two days)
  • P1DT15H (One day 09h00)
  • P1DT12H (One day 12h00)
  • P1DT9H (One day 15h00)
  • P1DT6H (One day 18h00)
  • P0DT15H (Same day 09h00)
  • P0DT12H (Same day 12h00)
  • P0DT9H (same day 15h00)
  • P0DT6H (same day 18h00)
  • P0DT0H (none)

...