...
- 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_HotelInvCountRQ 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_HotelInvCountRQ.xsd" TimeStamp="2012-10-05T14:20:50" Target="Test" Version="1.005"> <POS> <Source> <RequestorID Type="5" ID="USERNAME" MessagePassword="PASSWORD"></RequestorID> </Source> </POS> <HotelInvCountRequests> <HotelInvCountRequest> <HotelRef HotelCode="HOTELCODE" /> <DateRange Start="2017-04-01" End="2017-04-12" /> <RoomTypeCandidates> <RoomTypeCandidate RoomID="ROOMID" /> </RoomTypeCandidates> </HotelInvCountRequest> </HotelInvCountRequests> </OTA_HotelInvCountRQ> |
Code Block |
---|
{
"OTA_HotelInvCountRQ": {
"POS": {
"Source": {
"RequestorID": {
"_Type": "5",
"_ID": "USERNAME",
"_MessagePassword": "PASSWORD"
}
}
},
"HotelInvCountRequests": {
"HotelInvCountRequest": {
"HotelRef": {
"_HotelCode": "HOTELCODE"
},
"DateRange": {
"_Start": "2017-04-01",
"_End": "2017-04-12"
},
"RoomTypeCandidates": {
"RoomTypeCandidate": {
"_RoomID": "ROOMID"
}
}
}
},
"_TimeStamp": "2012-10-05T14:20:50",
"_Target": "Test",
"_Version": "1.005"
}
} |
Requesting availaiblities for all rooms configured in Hotel-Spider :
Code Block | ||||
---|---|---|---|---|
| ||||
<OTA_HotelInvCountRQ 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_HotelInvCountRQ.xsd" TimeStamp="2012-10-05T14:20:50" Target="Test" Version="1.005"> <POS> <Source> <RequestorID Type="5" ID="USERNAME" MessagePassword="PASSWORD"></RequestorID> </Source> </POS> <HotelInvCountRequests> <HotelInvCountRequest> <HotelRef HotelCode="HOTELCODE" /> <DateRange Start="2017-04-01" End="2017-04-12" /> <RoomTypeCandidates> <RoomTypeCandidate RoomID="ROOMID" /> </RoomTypeCandidates> </HotelInvCountRequest> </HotelInvCountRequests> </OTA_HotelInvCountRQ> | ||||
Code Block | ||||
{
"OTA_HotelInvCountRQ": {
"POS": {
"Source": {
"RequestorID": {
"_Type": "5",
"_ID": "USERNAME",
"_MessagePassword": "PASSWORD"
}
}
},
"HotelInvCountRequests": {
"HotelInvCountRequest": {
"HotelRef": {
"_HotelCode": "HOTELCODE"
},
"DateRange": {
"_Start": "2017-04-01",
"_End": "2017-04-12"
},
"RoomTypeCandidates": {
"RoomTypeCandidate": {
"_RoomID": "ROOMID"
}
}
}
},
"_TimeStamp": "2012-10-05T14:20:50",
"_Target": "Test",
"_Version": "1.005"
}
} |
Request structure
OTA_HotelInvCountRQ
...