IATA_OrderCancelRQ/RS

Introduction

The IATA_OrderCancelRQ/RS message pair is the simpliest way to cancel a booking. It does not require any previous preparation.

General Usage

To cancel a booking using IATA_OrderCancelRQ, the client does not have to retrieve the booking beforehand or perform any other kind of previous action. However, it is recommended to include a pricing step to the cancellation workflow, to show possible cancellation fees (see also Cancel booking using IATA_OrderCancelRQ).

The request only needs the OrderID as a parameter, the response also only contains the OrderID or an error, if the cancellation failed.

Sample

IATA_OrderCancelRQ

Show/Hide Request

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<IATA_OrderCancelRQ xmlns="http://www.iata.org/IATA/2015/00/2019.2/IATA_OrderCancelRQ">
    <Party>
        <Sender>
            <EnabledSystem>
                <SystemID>12345</SystemID>
            </EnabledSystem>
        </Sender>
    </Party>
    <Request>
        <Order>
            <OrderID>1234567</OrderID>
            <OwnerCode>ZZ</OwnerCode>
        </Order>
    </Request>
</IATA_OrderCancelRQ>

IATA_OrderCancelRS

Success

Show/Hide Response

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<IATA_OrderCancelRS xmlns="http://www.iata.org/IATA/2015/00/2019.2/IATA_OrderCancelRS">
    <Response>
        <OrderRefID>123456</OrderRefID>
    </Response>
   <PayloadAttributes>
      <Timestamp TimeZoneCode="UTC">2020-04-09T06:24:16.814</Timestamp>
      <VersionNumber>19.2</VersionNumber>
   </PayloadAttributes>
</IATA_OrderCancelRS>

Failure

Show/Hide Response

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<IATA_OrderCancelRS
    xmlns="http://www.iata.org/IATA/2015/00/2019.2/IATA_OrderCancelRS">
    <Error>
        <Code>1000</Code>
        <DescText>order could not be cancelled</DescText>
    </Error>
   <PayloadAttributes>
      <Timestamp TimeZoneCode="UTC">2020-04-09T06:24:16.814</Timestamp>
      <VersionNumber>19.2</VersionNumber>
   </PayloadAttributes>
</IATA_OrderCancelRS>