OrderCancel

Attachments:

Introduction

This service is used to cancel PNR. 

OrderCancel Webservice

Limitations:

  • Ticket refund is not supported.

This web service is called with the following inputs:

  1. Party data;
  2. OrderID;

The output data this service returns include:

  1. Success or error reply
  2. OrderReference 

Flow

  1. Order RetrieveRQ: Retrieve the PNR by record locator;
  2. OrderViewRS: Receive a reply with OrderId;
  3. OrderCancelRQ: Pass OrderID received in  OrderViewRS;
  4. OrderCancelRS: OrderID and success status.

Access

In order to access API, you will need to pass the following two headers for each call.

  • Authentication and authorization stand on the protocol layer using basic HTTP authentication. Given username and password with separator “:” MUST be base64-encoded and passed as HTTP header “Authorization”. This header is mandatory for all requests. For example, if "TestLogin" set as the username and "TestPass" set as the password, then the field's value is base64-encoding of TestLogin: TestPass, or QWxhZGRpbjpPcGVuU2VzYW1l. Then the Authorization header will appear as Authorization: Basic QWxhZGRpbjpPcGVuU2VzYW1l

  • Header 'Content-Type: text/xml' 

OrderCancelRQ structure

OrderCancelRQ
<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.iata.org/IATA/EDIST/2017.1 OrderCancelRQ.xsd">
	<Header/>
	<Body>
	<OrderCancelRQ xmlns="http://www.iata.org/IATA/EDIST/2017.1" Version="17.1">
		<Document>
			<Name>PS</Name>
		</Document>  
		<Party>
            <Sender>
                <TravelAgencySender>
                    <Name>TravelAgent</Name>
                    <PseudoCity>IEVPS28ND</PseudoCity>
                    <AgencyID>TA123</AgencyID>
                </TravelAgencySender>
            </Sender>
        </Party>
        <Query>
			<OrderID Owner="PS">9b772db4-5ade-4871-b837-92dca43bdc31</OrderID>
        </Query>
    </OrderCancelRQ>
	</Body>
</Envelope>

OrderCancelRQ fields description

 Click here to expand...

M = Mandatory; O = Optional; C = Conditional

Field name

Description

M/O/C

Example

OrderCancelRQ

Attributes:

Version - Specify NDC schema message version. Always pass 17.1

PrimaryLangID - Specifies the agent’s preferred language. Service response will be returned in this language. IF not specified default language = EN

M

<OrderCancelRQ xmlns="http://www.iata.org/IATA/EDIST/2017.1" Version="17.1">

↳ Document

NDC Message Document information.

M


   ↳ Name

Document name will be always "PS"

M

<Document>

  <Name>PS</Name>

</Document>

↳ Party

NDC Message/ Transaction Party(s) information. Note that information about parties is intended for business use, it is not intended for transaction authentication and routing of the message.

M


   ↳ Sender

Message Sender information.

M


      ↳ TravelAgencySender

SELLER: Travel Agency

M


         ↳ Name

Name of the travel agency

M

Smith Travel

         ↳ PseudoCity

Pseudo City code./ Office ID

M

IEVPS00ZZ

         ↳ AgencyID

Unique Agency Seller ID.

O

SASELLER1

↳ Query

Order Cancel Query.

M


   ↳ OrderID

The airline-assigned unique Order ID

Attributes:  Owner - Airline Designator of the airline that owns/ assigned this ID. 

M<OrderID Owner="PS">9b772db4-5ade-4871-b837-92dca43bdc31</OrderID>

OrderCancelRS structure 

OrderCancelRS
<OrderCancelRS xmlns="http://www.iata.org/IATA/EDIST/2017.1" Version="17.1">
	<Document>
		<Name>PS</Name>
	</Document>
	<Success/>
	<Response>
		<OrderReference>9b772db4-5ade-4871-b837-92dca43bdc31</OrderReference>
	</Response>
</OrderCancelRS>

OrderCancelRS fields description

 Click here to expand...

M = Mandatory; O = Optional; C = Conditional

Field name
Description
M/O/C
Example
OrderCancelRS

Attributes:

Version - Specify NDC schema message version. Always pass 17.1

PrimaryLangID - Specifies the agent’s preferred language. Service response will be returned in this language. IF not specified default language = EN

M<OrderCancelRS xmlns="http://www.iata.org/IATA/EDIST/2017.1" Version="17.1">
↳ DocumentNDC Message Document information.M
   ↳ NameWill be returned as “PS”M
<Document>
    <Name>PS</Name>
</Document>
↳ SuccessThe presence of the empty Success element explicitly indicates that the message succeededM
<Success/>
↳ ResponseA collection of shopping session (message response) IDs, including the unique (master) Shopping Response ID, Offer IDs, Offer Item IDs and Service IDs.O
   ↳ OrderReferenceUnique shopping session response ID.M<ResponseID>1F126AF1-7FCF-414F-8A3D-E4FFA408F747</ResponseID>

OrderCancel Error/Validation Checks

 Click here to expand...
PADIS Error CodePADIS Error TextUse Cases
System errors
911Unable to process - system error / Invalid queryInvalid query
486UnknownThe equivalent of -1 error
304System Temporarily unavailableThe system is not available/HOST problem
916EDIFACT version not supportedNot supported NDC service version.
Agent authorization errors
368Not authorizedWrong agent authentication key. Agent is inactive
79AInvalid office identificationOID is missing or incorrect
Query errors

129 

No PNR Match FoundInvalid OrderID in the request
912 Incomplete message - data missing in queryMandatory parameters are missing in the query
486PNR cancelledPNR is cancelled or does not have flight segments


© 2021 SOLRING HOLDINGS LIMITED. All rights reserved.