.. _IATA_OrderCancelRQ/RS:
*********************
IATA_OrderCancelRQ/RS
*********************
.. raw:: html
Introduction
The IATA_OrderCancelRQ/RS message pair is the simpliest way to cancel a booking. It does not require any previous preparation.
.. raw:: html
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 :ref:`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.
.. raw:: html
Sample
.. raw:: html
IATA_OrderCancelRQ
.. toggle-header::
:header: **Show/Hide Request**
.. code-block:: xml
12345
1234567
ZZ
|
.. raw:: html
IATA_OrderCancelRS
**Success**
.. toggle-header::
:header: **Show/Hide Response**
.. code-block:: xml
123456
2020-04-09T06:24:16.814
19.2
|
**Failure**
.. toggle-header::
:header: **Show/Hide Response**
.. code-block:: xml
1000
order could not be cancelled
2020-04-09T06:24:16.814
19.2
|