...
- HTTP RAW POST
- SOAP
- Staging: https://staging-api.hotel-spider.com/soap/ota
- SoapAction: hhttp://htng.org/2014A/OTAService#OTA_PingRQ
- Production: https://api.hotel-spider.com/soap/ota
- SoapAction: http://htng.org/2014A/OTAService#OTA_PingRQ
- Staging: https://staging-api.hotel-spider.com/soap/ota
- 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_PingRQ 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_ReadRQ.xsd" TimeStamp="2003-03-17T09:30:47-05:00" Target="Test" Version="2.0"> <POS> <Source> <RequestorID ID="USERNAME" MessagePassword="PASSWORD"></RequestorID> </Source> </POS> <EchoData>Hello Moto</EchoData> </OTA_PingRQ> |
Code Block | ||||
---|---|---|---|---|
OTA_PingRQ JSON request | ||||
{
"OTA_PingRQ": {
"POS": {
"Source": {
"RequestorID": {
"_ID": "USERNAME",
"_MessagePassword": "PASSWORD"
}
}
},
"EchoData": "Hello Moto",
"_TimeStamp": "2003-03-17T09:30:47-05:00",
"_Target": "Test"
}
} | ||||
Code Block | ||||
| ||||
<OTA_PingRS xmlns="http://www.opentravel.org/OTA/2003/05" schemaLocation="http://www.opentravel.org/OTA/2003/05 OTA_PingRQ.xsd" TimeStamp="2015-11-20T07:42:35+01:00" Target="Test" CorrelationID="002564ec0dba75cb" Version="1.0"> <EchoData>Hello Moto</EchoData> <Success></Success> </OTA_PingRS> | ||||
Code Block | ||||
| ||||
{
"OTA_PingRS": {
"EchoData": "Hello Moto",
"Success": "",
"_TimeStamp": "2015-11-20T07:42:35+01:00",
"_Target": "Test",
"_CorrelationID": "002564ec0dba75cb",
"_Version": "1.0"
}
} |
Request structure
OTA_PingRQ
...