Cancellation Notif

OTA Message Pair: OTA_CancelRQ / OTA_CancelRS

Modelviewer: RQ / RS

Schema: RQ / RS

The OTA Cancel message may be used for cancelling a reservation. This message cancels the entire reservation, i.e., it may not be used to cancel only part of the itinerary segments in a booking. (This must be done through OTA_HotelResModifyNotifRQ)

Direction

  • 3rd Party can send request to Levart and expect a response.

Request

<OTA_CancelRQ 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 https://secure.levartdistributionsystems.com.au/html/schema/OTA/2015B/OTA_CancelRQ.xsd"
              TimeStamp="2020-06-19T22:21:23+08:00" Target="Production" Version="1.0" CancelType="Cancel">
  <UniqueID Type="14" ID="987654321" ID_Context="CrsConfirmNumber" />
  <UniqueID Type="14" ID="123456789" ID_Context="PmsConfirmNumber" />
  <Verification>
    <PersonName>
      <Surname>Bloggs</Surname>
    </PersonName>
  </Verification>
</OTA_CancelRQ>

Request Specification

ElementNumDescription
OTA_CancelRQ1Root element
@Version1Version of the document. Currently 1.0
@CancelType1Always 'Cancel'
UniqueID1..nThe reservation ID that is being cancelled by this message. Will have a CrsConfirmNumber and a PmsConfirmNumber.
UniqueID > @Type2Always 14 for both.
UniqueID > @ID2
UniqueID > @ID_Context2The context of the Unique Identifier, the Levart based should be: 'PmsConfirmNumber' and for external bookings it should be 'CrsConfirmNumber'
Verification1Details of the person in the original bookings.
Verification > PersonName1
PersonName > Surname1Surname of the person in the original booking.

Response (Success)

<OTA_CancelRS 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 https://secure.levartdistributionsystems.com.au/html/schema/OTA/2015B/OTA_CancelRS.xsd"
              TimeStamp="2020-06-19T22:21:23+08:00" Target="Production" Version="1.0">
  <Success/>
  <UniqueID Type="14" ID="987654321" ID_Context="CrsConfirmNumber" />
  <CancelInfoRS>
    <UniqueID Type="14" ID="123456789" ID_Context="PmsConfirmNumber" />
  </CancelInfoRS>
</OTA_CancelRS>

Response (Error)

<OTA_CancelRS 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 https://secure.levartdistributionsystems.com.au/html/schema/OTA/2015B/OTA_CancelRS.xsd"
              TimeStamp="2020-06-19T22:21:23+08:00" Target="Production" Version="1.0">
  <Warnings>
    <Warning Type='1'>Error: Could not cancel reservation '987654321', PmsConfirmNumber does not match (Expected: 123456789X, Recieved: 123456789)</Warning>
  </Warnings>
  <UniqueID Type="14" ID="987654321" ID_Context="CrsConfirmNumber"/>
  <CancelInfoRS>
    <UniqueID Type="14" ID="" ID_Context="PmsConfirmNumber"/>
  </CancelInfoRS>
</OTA_CancelRS>


Response Specification

ElementNumDescription
OTA_CancelRS1Root Element
@Version1Version of the document. Currently 1.0
Errors0..1List of errors (If errors encountered)
Errors > Error1..nError message
Warnings0..1List of warnings (If warnings encountered)
Warnings > Warning1..nWarning message
Success0..nSuccessful processing if element exists.
UniqueID1UniqueID element for CrsConfirmNumber (3rd Party)
UniqueID > @Type1
UniqueID > @ID1
UniqueID > @ID_Context1
CancelInfoRS1
CancelInfoRS > UniqueID1UniqueID element for CrsConfirmNumber (Levart)