...
- 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_HotelBookingRuleRQ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opentravel.org/OTA/2003/05" xsi:schemaLocation="http://www.opentravel.org/OTA/2003/05 OTA_HotelBookingRuleRQ.xsd" TimeStamp="2012-10-05T14:20:50" Target="Test" Version="1.005"> <POS> <Source> <RequestorID Type="5" ID="USERNAME" MessagePassword="PASSWORD"></RequestorID> </Source> </POS> <RuleMessage HotelCode="HOTELCODE"> <StatusApplication Start="2017-04-01" End="2017-04-12" /> </RuleMessage> </OTA_HotelBookingRuleRQ> | ||||
Code Block |
Requesting booking rules at Room level :
Code Block | ||||
---|---|---|---|---|
| ||||
<OTA_HotelBookingRuleRQ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opentravel.org/OTA/2003/05" xsi:schemaLocation="http://www.opentravel.org/OTA/2003/05 OTA_HotelBookingRuleRQ.xsd" TimeStamp="2012-10-05T14:20:50" Target="Test" Version="1.005"> <POS> <Source> <RequestorID Type="5" ID="USERNAME" MessagePassword="PASSWORD"></RequestorID> </Source> </POS> <RuleMessage HotelCode="HOTELCODE"> <StatusApplication Start="2017-04-01", "_End": End="2017-04-12" }, "_HotelCode": "HOTELCODE" }, "_TimeStamp": "2012-10-05T14:20:50", "_Target": "Test", "_Version": "1.005" } }InvCode="ROOMID" /> </RuleMessage> </OTA_HotelBookingRuleRQ> |
Requesting booking rules at
...
RatePlan level :
Code Block | ||||
---|---|---|---|---|
| ||||
<OTA_HotelBookingRuleRQ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opentravel.org/OTA/2003/05" xsi:schemaLocation="http://www.opentravel.org/OTA/2003/05 OTA_HotelBookingRuleRQ.xsd" TimeStamp="2012-10-05T14:20:50" Target="Test" Version="1.005"> <POS> <Source> <RequestorID Type="5" ID="USERNAME" MessagePassword="PASSWORD"></RequestorID> </Source> </POS> <RuleMessage HotelCode="HOTELCODE"> <StatusApplication Start="2017-04-01" End="2017-04-12" InvCodeRatePlanCode="ROOMIDRATEPLANID" /> </RuleMessage> </OTA_HotelBookingRuleRQ> |
Code Block |
---|
{
"OTA_HotelBookingRuleRQ": {
"POS": {
"Source": {
"RequestorID": {
"_Type": "5",
"_ID": "USERNAME",
"_MessagePassword": "PASSWORD"
}
}
},
"RuleMessage": {
"StatusApplication": {
"_Start": "2017-04-01",
"_End": "2017-04-12",
"_InvCode": "ROOMID"
},
"_HotelCode": "HOTELCODE"
},
"_TimeStamp": "2012-10-05T14:20:50",
"_Target": "Test",
"_Version": "1.005"
}
} |
Requesting booking rules at RatePlan level :
Code Block | ||||
---|---|---|---|---|
| ||||
<OTA_HotelBookingRuleRQ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opentravel.org/OTA/2003/05" xsi:schemaLocation="http://www.opentravel.org/OTA/2003/05 OTA_HotelBookingRuleRQ.xsd" TimeStamp="2012-10-05T14:20:50" Target="Test" Version="1.005">
<POS>
<Source>
<RequestorID Type="5" ID="USERNAME" MessagePassword="PASSWORD"></RequestorID>
</Source>
</POS>
<RuleMessage HotelCode="HOTELCODE">
<StatusApplication Start="2017-04-01" End="2017-04-12" RatePlanCode="RATEPLANID" />
</RuleMessage>
</OTA_HotelBookingRuleRQ> |
Code Block |
---|
{
"OTA_HotelBookingRuleRQ": {
"POS": {
"Source": {
"RequestorID": {
"_Type": "5",
"_ID": "USERNAME",
"_MessagePassword": "PASSWORD"
}
}
},
"RuleMessage": {
"StatusApplication": {
"_Start": "2017-04-01",
"_End": "2017-04-12",
"_RatePlanCode": "RATEPLANID"
},
"_HotelCode": "HOTELCODE"
},
"_TimeStamp": "2012-10-05T14:20:50",
"_Target": "Test",
"_Version": "1.005"
}
} |
Requesting booking rules at SellableProduct level :
Code Block | ||||
---|---|---|---|---|
| ||||
<OTA_HotelBookingRuleRQ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opentravel.org/OTA/2003/05" xsi:schemaLocation="http://www.opentravel.org/OTA/2003/05 OTA_HotelBookingRuleRQ.xsd" TimeStamp="2012-10-05T14:20:50" Target="Test" Version="1.005">
<POS>
<Source>
<RequestorID Type="5" ID="USERNAME" MessagePassword="PASSWORD"></RequestorID>
</Source>
</POS>
<RuleMessage HotelCode="HOTELCODE">
<StatusApplication Start="2017-04-01" End="2017-04-12" InvCode="ROOMID" RatePlanCode="RATEPLANID" />
</RuleMessage>
</OTA_HotelBookingRuleRQ> |
...
...
Requesting booking rules at SellableProduct level :
Code Block | ||||
---|---|---|---|---|
| ||||
<OTA_HotelBookingRuleRQ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opentravel.org/OTA/2003/05" xsi:schemaLocation="http://www.opentravel.org/OTA/2003/05 OTA_HotelBookingRuleRQ.xsd" TimeStamp="2012-10-05T14:20:50" Target="Test" Version="1.005">
<POS>
<Source>
<RequestorID Type="5" ID="USERNAME" MessagePassword="PASSWORD"></RequestorID>
</Source>
</POS>
<RuleMessage HotelCode="HOTELCODE">
<StatusApplication Start="2017-04-01" End="2017-04-12" InvCode="ROOMID" RatePlanCode="RATEPLANID" />
</RuleMessage>
</OTA_HotelBookingRuleRQ> |
Request structure
OTA_HotelBookingRuleRQ
...