OTA_CancelRQ/RS

OTA_CancelRQ

A generic message, available as an action on several OpenTravel services which requests a server to cancel the booking identified by the UniqueID element.

<?xml version="1.0" encoding="utf-8"?>
<OTA_CancelRQ EchoToken="Example123" PrimaryLangID="eng" Target="Production" TimeStamp="2018-07-29T07:38:54.729Z" Version="1.0">
  <POS>
    <Source AgentDutyCode="OTA">
      <RequestorID ID="APIKEY" MessagePassword="APIPASSWORD"/>
    </Source>
  </POS>
  <UniqueID ID="your-unique-reference" Type="15">
    <TPA_Extensions>
      <HotelInfo HotelCode="12345" />
    </TPA_Extensions>
  </UniqueID>
</OTA_CancelRQ>
Element / @Attribute Parent Info Values Occurrence
UniqueID OTA_CancelRQ This allows a user to send more than one UniqueID where there is more than one UniqueID associated to a single reservation (e.g. confirmation number and PNR record locator). 1..n
@ID UniqueID The reservation number supplied by the OTA. The same reservation number must be used for the lifespan of the reservation through all its possible mutations (modifications and cancellation). 1
@Type UniqueID A reference to the type of object defined by the UniqueID element. 15 1
TPA_Extensions UniqueID A placeholder in the schema to allow for additional elements and attributes to be included. Allows extensions to be added to the OpenTravel specification. 1
HotelInfo TPA_Extensions The element containing information related to the hotel. 1
@HotelCode HotelInfo The hotel code that identifies this hotel (PIN code). 1

OTA_CancelRS

Used to respond to a OTA_CancelRQ and may provide details about the cancellation.

<?xml version="1.0" encoding="utf-8"?>
<OTA_CancelRS EchoToken="Example123" PrimaryLangID="eng" Target="Production" TimeStamp="2018-07-29T07:38:54.729Z" Version="1.0">
  <Success />
  <UniqueID ID="123456" Type="14" />
  <UniqueID ID="123457" Type="15" />
</OTA_CancelRS>
Element / @Attribute Parent Info Values Occurrence
Success OTA_CancelRS Only there if reservation was cancelled successfully 0..1
Errors OTA_CancelRS Only if the reservation was not cancelled 0..1
Error Errors 1..n
@Code Error 1
Text Error
UniqueID OTA_CancelRS Contains the reference(s) of the items being cancelled. An identifier used to uniquely reference an object in a system (e.g. an airline reservation reference, customer profile reference, booking confirmation number, or a reference to a previous availability quote).
Two instance of this element are required, one to reference the reservation ID for which a cancellation was requested and one to reference the ID of the cancellation.
0/2
@ID UniqueID The ID of the reservation or cancellation. 1
@Type UniqueID A reference to the type of object defined by the UniqueID element. Refer to OpenTravel Code List Unique ID Type (UIT).
14 and 15
1