Function sendCancellation
This function is designed to inform the external channels that the booking is cancelled.
Hoteliers.com push
request sendCancellation
<?xml version="1.0" encoding="UTF-8"?>
<request function="sendCancellation">
<extChannel ID="15" name="test"/>
<booking ID="12345678">
<arrival>2018-10-08</arrival>
<departure>2018-10-09</departure>
<hotelID>8</hotelID>
<reason></reason>
</booking>
</request>
Element | Number | Description |
request | 1 | Container element for the request |
@Function | 1 | Name of the function |
request / extChannel | 1 | Indicates the channel ID and gives authentication information for hoteliers.com |
@ID | 1 | extchannel id supplied by Hoteliers.com |
@name | 1 | extchannel name supplied by Hoteliers.com |
request / booking | 1 | hoteliers.com bookingID |
@ID | 1 | booking ID |
request / booking / arrival | 1 | Arrival date of cancelled booking |
request / booking / departure | 1 | Departure date of cancelled booking |
request / hotelID | 1 | Hoteliers.com hotelID. Must match hotelID in booking |
request / reason | 1 | If applicable, user given reason. |
Extchannel response
response sendCancellation
<?xml version="1.0" encoding="UTF-8"?>
<request function="sendCancellation">
<extChannel ID="15" name="test" password="F@k3Pa$4p@ss"/>
<succes/>
<hotelID>8</hotelID>
</request>
Element | Number | Required | Description |
request | 1 | Required | Container element for the request |
@Function | 1 | Required | Name of the function |
request / extChannel | 1 | Required | Indicates the channel ID and gives authentication information for hoteliers.com |
@ID | 1 | Required | extchannel id supplied by Hoteliers.com |
@name | 1 | Required | extchannel name supplied by Hoteliers.com |
@password | 1 | Required | extchannel password supplied by Hoteliers.com |
request / succes | 1 | Required | hoteliers.com bookingID |
request / hotelID | 1 | Required | Hoteliers.com hotelID. Must match hotelID in booking |