Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

<Query>

XML Example for the following elements

Code Block
languagexml
<ns:Query>
             <ns:OrderItem>                <ns:OfferItemType>
                  <ns:DetailedFlightItem refs="V1_PAX.1">
                     <ns:OriginDestination>
                        <ns:OriginDestinationKey>V1_OD.1560995803083</ns:OriginDestinationKey>
                        <ns:Flight>
                           <ns:SegmentKey>V1_SEG.1560995803085</ns:SegmentKey>
                           <ns:Departure>
                              <ns:AirportCode>AYT</ns:AirportCode>
                              <ns:Date>2019-07-05Z</ns:Date>
                              <ns:Time>20:15</ns:Time>
                           </ns:Departure>
                           <ns:Arrival>
                              <ns:AirportCode>FRA</ns:AirportCode>
                              <ns:Date>2019-07-05Z</ns:Date>
                              <ns:Time>21:25</ns:Time>
                              <ns:ChangeOfDay>0</ns:ChangeOfDay>
                           </ns:Arrival>
                           <ns:MarketingCarrier>
                              <ns:AirlineID>V1</ns:AirlineID>
                              <ns:FlightNumber>144</ns:FlightNumber>
                           </ns:MarketingCarrier>
                           <ns:Equipment>
                              <ns:AircraftCode>73H</ns:AircraftCode>
                              <ns:AirlineEquipCode>800</ns:AirlineEquipCode>
                           </ns:Equipment>
                           <ns:CabinType>
                              <ns:Code>Y</ns:Code>
                              <ns:Name>ECONOMY</ns:Name>
                              <!--ns:OriginDestinationReferences>?</ns:OriginDestinationReferences-->
                           </ns:CabinType>
                           <ns:ClassOfService>
                              <ns:Code>D</ns:Code>
                           </ns:ClassOfService>
                           <ns:Details>
                              <ns:FlightDuration>
                                 <ns:Value>PT1H10M0.000S</ns:Value>
                              </ns:FlightDuration>
                              <ns:Stops>
                                 <ns:StopQuantity>0</ns:StopQuantity>
                              </ns:Stops>
                           </ns:Details>
                        </ns:Flight>
                     </ns:OriginDestination>
                  </ns:DetailedFlightItem>
               </ns:OfferItemType>
</ns:OrderItem>Offer ResponseID="ID-Fb--rdQS6HFd4AHC9" Owner="XQ" OfferID="OF1-eJxdzEEKgzAQBdATKfmTyWSydKHgplKNYFb--rdQS6HFd4AHC9GKGDRb4rQOQ6tE8pTNNNx4vAkFl-lVOe4rGyPcxLlVLgRDb7nD78mRV3JVn8cR-e-RxyP6fYQqvRaGE581JcM_">
        <ns:OfferItem OfferItemID="OF1_OI1-eJxdzEEKgzAQBdATKfmTyWSydKHgplKNYFb--rdQS6HFd4AHC9GKGDRb4rQOQ6tE8pTNNNx4vAkFl-lVOe4rGyPcxLlVLgRDb7nD78mRV3JVn8cR-e-RxyP6fYQqvRaGE581JcM_">
              <ns:PassengerRefs>V1_PAX.1 V1_PAX.4</ns:PassengerRefs>
        </ns:OfferItem>
        <ns:OfferItem OfferItemID="OF1_OI2-eJxdzEEKgzAQBdATKfmTyWSydKHgplKNYFb--rdQS6HFd4AHC9GKGDRb4rQOQ6tE8pTNNNx4vAkFl-lVOe4rGyPcxLlVLgRDb7nD78mRV3JVn8cR-e-RxyP6fYQqvRaGE581JcM_">
              <ns:PassengerRefs>V1_PAX.2</ns:PassengerRefs>
        </ns:OfferItem>
        <ns:OfferItem OfferItemID="OF1_OI3-eJxdzEEKgzAQBdATKfmTyWSydKHgplKNYFb--rdQS6HFd4AHC9GKGDRb4rQOQ6tE8pTNNNx4vAkFl-lVOe4rGyPcxLlVLgRDb7nD78mRV3JVn8cR-e-RxyP6fYQqvRaGE581JcM_">
              <ns:PassengerRefs>V1_PAX.3</ns:PassengerRefs>
        </ns:OfferItem>
    </ns:Offer>
</ns:Query>

Elements

Details

Mandatory/Optional

Code Block
<Offer>

To get a price quote using long sell, the client should use this tag to provide details.

M

Code Block
Owner (Attribute)

Should be always set to Airline Code

M

Code Block
OfferID (Attribute)

This is the OfferID returned in AirShoppingRS for the offer the customer wishes to book the flight

M

Code Block
<OfferItemType>

Offer item type

M

Code Block
ResponseID (Attribute)

Details for all the flight items

M

Code Block
<OrderItem>

This will contain the OfferItem associated with Offer returned in AirShoppingRS.

M

Code Block
<OfferItemID>

The client should pass the OfferItemID that is returned in AirShoppingRS for the selected offer

M

Code Block
<PassengerRefs>

Should be a reference to Passenger (s) for the selected OfferItemID

M

<DataLists>

XML

Elements

Details

Mandatory/Optional

Code Block
<PassengerList>
Code Block
<PassengerList>

List of all passengers with Passenger type code (PTC)

O

...