...
- HTTP RAW XML POST
- SOAP
- JSON
- Staging: https://staging.hotel-spider.ch/json/server.php Production: https://extranet.hotel-spider.ch/json/server.php (We recommend using OTA via XML, if you want to use JSON interface please contact us)
Example request and response
...
Code Block | ||||
---|---|---|---|---|
| ||||
<OTA_HotelInvCountNotifRS 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_HotelInvCountNotifRS> |
Code Block | ||
---|---|---|
| ||
{
"OTA_HotelInvCountNotifRQ": {
"POS": {
"Source": {
"RequestorID": {
"_Type": "5",
"_ID": "USERNAME",
"_MessagePassword": "PASSWORD"
}
}
},
"Inventories": {
"Inventory": [
{
"StatusApplicationControl": {
"_InvCode": "00F556c42e0d6559",
"_Start": "2020-06-30",
"_End": "2020-06-30"
},
"InvCounts": {
"InvCount": {
"_Count": "3",
"_CountType": "14",
"_ActionType": "Allocation"
}
}
},
{
"StatusApplicationControl": {
"_InvCode": "00F556c42e0d6559",
"_Start": "2020-06-30",
"_End": "2020-06-30"
},
"OffSell": {
"_OffSellValue": "0"
}
}
],
"_HotelCode": "HOTELCODE",
"_HotelName": "HOTELNAME",
},
"_PrimaryLangID": "en",
"_TimeStamp": "2019-09-18T16:31:26+02:00",
"_Target": "Test",
"_Version": "1.000",
}
} |
Code Block | ||
---|---|---|
| ||
{
"Success": null,
"_PrimaryLangID": "en",
"_TimeStamp": "2019-09-19T07:28:14+02:00",
"_Target": "Test",
"_Version": "1.000",
"_CorrelationID": null
} |
Request structure
OTA_HotelInvCountNotifRQ
...