The OTA_HotelBookingRulelNotif messages are used to update the following elements in the Hotel-Spider system:
...
- HTTP RAW POST
- SOAP
- JSON
- Staging: https://staging.hotel-spider.ch/json/server.php
- Production: https://extranet.hotel-spider.ch/json/server.php
Example request and response
...
Code Block | ||||
---|---|---|---|---|
| ||||
<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 | ||
---|---|---|
| ||
{
"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 | ||
---|---|---|
| ||
{
"Success": null,
"_PrimaryLangID": "en",
"_TimeStamp": "2019-09-19T07:28:14+02:00",
"_Target": "Test",
"_Version": "1.000",
"_CorrelationID": null
} |
Request structure
OTA_HotelBookingRuleNotifRQ
...
Name | Mandatory | Description |
---|---|---|
MinAdvancedBookingOffset | No | 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:
|
MinAdvancedBookingOffset | No | 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:
|
...