Pushing reservation cancellations based on OTA_HotelResModifyNotifRQ / OTA_HotelResModifyNotifRS
The notifications for reservation cancellations are made using OTA_HotelResModifyRQ requests.
Endpoints
- HTTP RAW POST
- Secure Endpoints if your system is PCI-DSS certified (allow transmission of Credit Card details)
Example request and response
OTA_HotelResModifyNotifRQ Request
<OTA_HotelResModifyNotifRQ Target="Test" EchoToken="7571639933" TimeStamp="2015-11-12T18:05:39+01:00" Version="1.000"> <POS> <Source> <RequestorID Type="5" ID="MASTERUSERNAME" MessagePassword="MASTERPASSWORD"></RequestorID> </Source> </POS> <HotelResModifies> <HotelResModify ResStatus="Modify" CreateDateTime="2016-12-09T12:00:08+01:00" LastModifyDateTime="2016-12-20T09:48:12+01:00"> <!-- same content than the HotelReservation node for OTA_HotelResNotifRQ requests --> ... <ResGlobalInfo> ... <HotelReservationIDs> <HotelReservationID ResID_Source="ONLINEBOOKINGSYSTEMID" ResID_SourceContext="ONLINEBOOKINGSYSTEMNAME" ResID_Type="14" ResID_Value="ONLINEBOOKINGSYSTEMCONFIRMATIONNUMBER"/> </HotelReservationIDs> ... <BasicPropertyInfo HotelCode="HOTELSPIDERHOTELCODE" HotelName="Documentation Hotel Name"/> </ResGlobalInfo> </HotelResModify> </HotelResModifies> </OTA_HotelResModifyNotifRQ>
More information on the HotelResModify element content can be found on the page describing OTA_HotelResNofifRQ requests.
Please note that the complete content of the reservation has to be transfered inside the HotelResModify element for all requests
Please note that for the ResStatus attribute only two values are supported on reservation modification requests:
- Modify - for all modifications
- Cancel - for all cancellations
OTA_HotelResModifyNotifRS Response
<?xml version="1.0" encoding="UTF-8"?> <OTA_HotelResModifyNotifRS xmlns="http://www.opentravel.org/OTA/2003/05" TimeStamp="2016-12-21T09:49:01+01:00" Version="1.0" EchoToken="7571639933" CorrelationID="00Q585a41fc3b334" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opentravel.org/OTA/2003/05 OTA_HotelResModifyNotifRS.xsd"> <HotelResModifies> <HotelResModify> <ResGlobalInfo> <HotelReservationIDs> <HotelReservationID ResID_Date="2016-12-20T14:54:29+01:00" ResID_SourceContext="Hotel-Spider" ResID_Type="40" ResID_Value="HOTELSPIDERCONFIRMATIONNUMBER"/> <HotelReservationID ResID_Date="2016-12-21T09:49:00+01:00" ResID_Source="ONLINEBOOKINGSYSTEMID" ResID_SourceContext="ONLINEBOOKINGSYSTEMNAME" ResID_Type="14" ResID_Value="ONLINEBOOKINGSYSTEMCONFIRMATIONNUMBER"/> </HotelReservationIDs> </ResGlobalInfo> </HotelResModify> </HotelResModifies> <Success></Success> </OTA_HotelResModifyNotifRS>