Making changes to the order.
Depending on the data being changed, the request structure changes. Next, we will consider examples of changing documents, loyalty cards, passenger contacts, passenger notes.
This example represents the modification of documents. To delete the documents, you need to fill only PassengerServicing.Previous, to add documents, only PassengerServicing.New is filled.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:avi="http://websky.travel/AviaNDC" xmlns:ns="http://www.iata.org/IATA/EDIST/2017.2">
<soapenv:Header>
<avi:UserID> *** </avi:UserID>
<avi:Requisites>
<avi:Login> *** </avi:Login>
<avi:Password> *** </avi:Password>
<avi:UserContextId> *** </avi:UserContextId>
</avi:Requisites>
</soapenv:Header>
<soapenv:Body>
<ns:OrderChangeRQ Version="17.2">
<ns:Document>
<ns:Name>NDC GATEWAY</ns:Name>
<ns:ReferenceVersion>1.0</ns:ReferenceVersion>
</ns:Document>
<ns:Party>
<ns:Sender>
<ns:TravelAgencySender>
<ns:AgencyID> *** </ns:AgencyID>
</ns:TravelAgencySender>
</ns:Sender>
</ns:Party>
<ns:Query>
<ns:OrderID>ORD610134</ns:OrderID>
<ns:PassengerServicing>
<ns:New PassengerID="PAX1">
<ns:IdentityDocument>
<ns:IdentityDocumentNumber>911111119</ns:IdentityDocumentNumber>
<ns:IdentityDocumentType>PT</ns:IdentityDocumentType>
<ns:IssuingCountryCode>EN</ns:IssuingCountryCode>
<ns:ExpiryDate>2020-10-10</ns:ExpiryDate>
</ns:IdentityDocument>
<ns:ActionType>Add</ns:ActionType>
</ns:New>
<ns:Previous PassengerID="PAX1">
<ns:IdentityDocument>
<ns:IdentityDocumentNumber>199999991</ns:IdentityDocumentNumber>
<ns:IdentityDocumentType>PT</ns:IdentityDocumentType>
<ns:IssuingCountryCode>EN</ns:IssuingCountryCode>
<ns:ExpiryDate>2039-08-15</ns:ExpiryDate>
</ns:IdentityDocument>
<ns:ActionType>Delete</ns:ActionType>
</ns:Previous>
</ns:PassengerServicing>
<ns:PassengerServicing>
<ns:New PassengerID="PAX2">
<ns:IdentityDocument>
<ns:IdentityDocumentNumber>933333339</ns:IdentityDocumentNumber>
<ns:IdentityDocumentType>PT</ns:IdentityDocumentType>
<ns:IssuingCountryCode>EN</ns:IssuingCountryCode>
<ns:ExpiryDate>2022-12-12</ns:ExpiryDate>
</ns:IdentityDocument>
<ns:ActionType>Add</ns:ActionType>
</ns:New>
<ns:Previous PassengerID="PAX2">
<ns:IdentityDocument>
<ns:IdentityDocumentNumber>399999993</ns:IdentityDocumentNumber>
<ns:IdentityDocumentType>PT</ns:IdentityDocumentType>
<ns:IssuingCountryCode>EN</ns:IssuingCountryCode>
<ns:ExpiryDate>2020-02-02</ns:ExpiryDate>
</ns:IdentityDocument>
<ns:ActionType>Delete</ns:ActionType>
</ns:Previous>
</ns:PassengerServicing>
</ns:Query>
</ns:OrderChangeRQ>
</soapenv:Body>
</soapenv:Envelope>
This example represents the modification of loyalty card. To delete the card, you need to fill only PassengerServicing.Previous, to add documents, only PassengerServicing.New is filled.
<ns:Query>
<ns:OrderID>ORD608347</ns:OrderID>
<ns:PassengerServicing>
<ns:New PassengerID="PAX1">
<ns:LoyaltyProgramAccount>
<ns:Airline>
<ns:AirlineDesignator>SU</ns:AirlineDesignator>
</ns:Airline>
<ns:AccountNumber>111333600</ns:AccountNumber>
</ns:LoyaltyProgramAccount>
<ns:ActionType>Add</ns:ActionType>
</ns:New>
<ns:Previous PassengerID="PAX1">
<ns:LoyaltyProgramAccount>
<ns:Airline>
<ns:AirlineDesignator>SU</ns:AirlineDesignator>
</ns:Airline>
<ns:AccountNumber>111333605</ns:AccountNumber>
</ns:LoyaltyProgramAccount>
<ns:ActionType>Delete</ns:ActionType>
</ns:Previous>
</ns:PassengerServicing>
</ns:Query>
This example represents the modification of a phone number. To delete the number, you need to fill only PassengerServicing.Previous, to add documents, only PassengerServicing.New is filled. To successfully modify contacts, the ContactInformation array must contain all available passenger contact data (see example).
<ns:Query>
<ns:OrderID>ORD610134</ns:OrderID>
<ns:PassengerServicing>
<ns:New PassengerID="PAX1">
<ns:ContactInfoRef>CTC1</ns:ContactInfoRef>
<ns:ActionType>Add</ns:ActionType>
</ns:New>
<ns:Previous PassengerID="PAX1">
<ns:ContactInfoRef>CTC2</ns:ContactInfoRef>
<ns:ActionType>Delete</ns:ActionType>
</ns:Previous>
</ns:PassengerServicing>
</ns:Query>
<ns:DataLists>
<ns:ContactList>
<ns:ContactInformation ContactID="CTC1">
<ns:ContactProvided>
<ns:Phone>
<ns:Label>Mobile</ns:Label>
<ns:PhoneNumber>77711100111</ns:PhoneNumber>
</ns:Phone>
</ns:ContactProvided>
<ns:ContactProvided>
<ns:EmailAddress>
<ns:EmailAddressValue>[email protected]</ns:EmailAddressValue>
</ns:EmailAddress>
</ns:ContactProvided>
</ns:ContactInformation>
<ns:ContactInformation ContactID="CTC2">
<ns:ContactProvided>
<ns:Phone>
<ns:Label>Mobile</ns:Label>
<ns:PhoneNumber>77017389745</ns:PhoneNumber>
</ns:Phone>
</ns:ContactProvided>
<ns:ContactProvided>
<ns:EmailAddress>
<ns:EmailAddressValue>[email protected]</ns:EmailAddressValue>
</ns:EmailAddress>
</ns:ContactProvided>
</ns:ContactInformation>
</ns:ContactList>
</ns:DataLists>
This example represents the modification of passenger's remark. To delete the remark, you need to fill only PassengerServicing.Previous, to add documents only PassengerServicing.New is filled.
<ns:Query>
<ns:OrderID>ORD608353</ns:OrderID>
<ns:PassengerServicing>
<ns:New PassengerID="PAX1">
<ns:Remark>
<ns:Remark>NEW REMARK</ns:Remark>
</ns:Remark>
<ns:ActionType>Add</ns:ActionType>
</ns:New>
<ns:Previous PassengerID="PAX1">
<ns:Remark>
<ns:Remark>OLD REMARK</ns:Remark>
</ns:Remark>
<ns:ActionType>Delete</ns:ActionType>
</ns:Previous>
</ns:PassengerServicing>
</ns:Query>
Response structure of the order modification corresponds to the following response: OrderCreate.