如何在 UpdateReservationRQ 中添加 air extras

How to add air extras into UpdateReservationRQ

进入工作流程 Air Extras 搜索和预订:

  1. 使用 GetAncillaryOffersRQ 购买 Air Extras。
  2. 预订一项或多项 Air Extras 并结束交易以使用 UpdateReservationRQ 确认预订。

但是在服务 UpdateReservationRQ 中,我找不到包含每个乘客的辅助设备的模式。

<ns3:UpdateReservationRQ Version="1.19.0" EchoToken="" xmlns:ns3="http://webservices.sabre.com/pnrbuilder/v1_19">
 <ns3:RequestType>Stateless</ns3:RequestType>
 <ns3:ReturnOptions IncludeUpdateDetails="1" RetrievePNR="1" PriceQuoteServiceVersion="3.2.0"/>
 <ns3:ReservationUpdateList>
 <ns3:Locator>PNR</ns3:Locator>
    <ns3:ReservationUpdateItem>
       <ns3:SpecialServiceRequestUpdate op="C" type="H">
          <ns3:SegmentAssociationList>
             <ns3:SegmentAssociationTag>
                <ns3:CarrierCode>AV</ns3:CarrierCode>
                <ns3:FlightNumber>0461</ns3:FlightNumber>
                <ns3:DepartureDate>2018-09-19</ns3:DepartureDate>
                <ns3:BoardPoint>MEL</ns3:BoardPoint>
                <ns3:OffPoint>AUH</ns3:OffPoint>
                <ns3:ClassOfService>B</ns3:ClassOfService>
                <ns3:BookingStatus>HK</ns3:BookingStatus>
             </ns3:SegmentAssociationTag>
          </ns3:SegmentAssociationList>
          <ns3:SpecialService>
             <ns3:Code>ABAG</ns3:Code>
             <ns3:Text>TEST ABAG</ns3:Text>
          </ns3:SpecialService>
       </ns3:SpecialServiceRequestUpdate>
    </ns3:ReservationUpdateItem>
    <ns3:ReceivedFrom>
       <ns3:AgentName>HELLO</ns3:AgentName>
    </ns3:ReceivedFrom>
 </ns3:ReservationUpdateList>
</ns3:UpdateReservationRQ>

我不是 100% 肯定,但我认为您只能通过使用 GetReservationRQ API 来查看该数据,我相信您可以在调用 UpdateReservationRQ 之后立即调用它。 schema for that API 确实将 Air Extras 作为响应的一个元素。

<stl19:GetReservationRS xmlns:stl19="http://webservices.sabre.com/pnrbuilder/v1_19" xmlns:ns6="http://services.sabre.com/res/orr/v0" xmlns:or114="http://services.sabre.com/res/or/v1_14" xmlns:raw="http://tds.sabre.com/itinerary" xmlns:ns4="http://webservices.sabre.com/pnrconn/ReaccSearch" Version="1.19.0">
<stl19:Reservation numberInParty="1" numberOfInfants="0" NumberInSegment="1" isMultiCarrierPlatform="true">
<stl19:BookingDetails>
<stl19:RecordLocator>IJKZUQ</stl19:RecordLocator>
<stl19:CreationTimestamp>2018-12-20T16:05:00</stl19:CreationTimestamp>
<stl19:SystemCreationTimestamp>2018-12-20T16:05:00</stl19:SystemCreationTimestamp>
<stl19:UpdateTimestamp>2018-12-21T11:15:28</stl19:UpdateTimestamp>
<stl19:PNRSequence>3</stl19:PNRSequence>
<stl19:DivideSplitDetails/>
<stl19:EstimatedPurgeTimestamp>2019-04-23T00:00:00</stl19:EstimatedPurgeTimestamp>
<stl19:UpdateToken>74191f26c43e897e966e712381980a19988e77d510b11710</stl19:UpdateToken>
</stl19:BookingDetails>
<stl19:POS AirExtras="false" InhibitCode="U">

这是一个对我有用的示例,让我添加通过 GetAncillaryOffers 获得的辅助工具。我从那里获得了产品 ID 和数据,他们开始使用 UpdateReservationRQ 预订这些产品 ID 和数据。请记住,根据辅助设备的不同,您可能还需要向运营商发送 SSR 消息,我建议您联系服务台以获取更多详细信息:

<UpdateReservationRQ Version="1.12.0" xmlns="http://webservices.sabre.com/pnrbuilder/v1_12" xmlns:ns2="http://services.sabre.com/res/or/v1_5">
    <RequestType>Stateful</RequestType>
    <ReturnOptions IncludeUpdateDetails="true" RetrievePNR="true"/>
    <ReservationUpdateList>
        <ReservationUpdateItem UpdateId="1">
        <AncillaryServicesUpdate op="C">
                <NameAssociationList>
                    <NameAssociationTag>
                        <LastName>TEST</LastName>
                        <FirstName>TEST</FirstName>
                        <NameRefNumber>01.01</NameRefNumber>
                    </NameAssociationTag>
                </NameAssociationList>
                <SegmentAssociationList>
                    <SegmentAssociationTag>
                        <CarrierCode>LH</CarrierCode>
                        <FlightNumber>2011</FlightNumber>
                        <DepartureDate>2019-10-28</DepartureDate>
                        <BoardPoint>DUS</BoardPoint>
                        <OffPoint>MUC</OffPoint>
                        <ClassOfService>H</ClassOfService>
                        <BookingStatus>HK</BookingStatus>
                    </SegmentAssociationTag>
                </SegmentAssociationList>
                <CommercialName>OXYGEN</CommercialName>
                <RficCode>E</RficCode>
                <RficSubcode>0B4</RficSubcode>
                <SSRCode>AOXY</SSRCode>
                <OwningCarrierCode>LH</OwningCarrierCode>
                <Vendor>ATP</Vendor>
                <EMDType>2</EMDType>
                <TTLPrice>
                    <Price>10800</Price>
                    <Currency>RUB</Currency>
                </TTLPrice>
                <OriginalBasePrice>
                    <Price>150.00</Price>
                    <Currency>EUR</Currency>
                </OriginalBasePrice>
            <RefundIndicator>N</RefundIndicator>
                <BoardPoint>FRA</BoardPoint>
                <OffPoint>YVR</OffPoint>
<PurchaseByDate>2020-02-02</PurchaseByDate>
                <NumberOfItems>1</NumberOfItems>
                <SegmentIndicator>S</SegmentIndicator>
                <FirstTravelDate>190617</FirstTravelDate>
                <LastTravelDate>991231</LastTravelDate>
                <PurchaseTimestamp>2019-07-30T11:59:00</PurchaseTimestamp>
                <GroupCode>MD</GroupCode>
      </AncillaryServicesUpdate>
            </ReservationUpdateItem>
                <ReservationUpdateItem UpdateId="2">
        <AncillaryServicesUpdate op="C">
                <NameAssociationList>
                    <NameAssociationTag>
                        <LastName>AKKENT</LastName>
                        <FirstName>TULIN MR</FirstName>
                        <NameRefNumber>02.01</NameRefNumber>
                    </NameAssociationTag>
                </NameAssociationList>
                <SegmentAssociationList>
                    <SegmentAssociationTag>
                        <CarrierCode>LH</CarrierCode>
                        <FlightNumber>2011</FlightNumber>
                        <DepartureDate>2019-10-28</DepartureDate>
                        <BoardPoint>DUS</BoardPoint>
                        <OffPoint>MUC</OffPoint>
                        <ClassOfService>H</ClassOfService>
                        <BookingStatus>HK</BookingStatus>
                    </SegmentAssociationTag>
                </SegmentAssociationList>
                <CommercialName>OXYGEN</CommercialName>
                <RficCode>E</RficCode>
                <RficSubcode>0B4</RficSubcode>
                <SSRCode>AOXY</SSRCode>
                <OwningCarrierCode>LH</OwningCarrierCode>
                <Vendor>ATP</Vendor>
                <EMDType>2</EMDType>
                <TTLPrice>
                    <Price>10800</Price>
                    <Currency>RUB</Currency>
                </TTLPrice>
                <OriginalBasePrice>
                    <Price>150.00</Price>
                    <Currency>EUR</Currency>
                </OriginalBasePrice>
            <RefundIndicator>N</RefundIndicator>
                <BoardPoint>FRA</BoardPoint>
                <OffPoint>YVR</OffPoint>
                <LatestTravelDatePermitted>9999-12-31</LatestTravelDatePermitted>
                <PurchaseByDate>2020-02-02</PurchaseByDate>
                <NumberOfItems>1</NumberOfItems>
                <SegmentIndicator>S</SegmentIndicator>
                <PurchaseTimestamp>2019-07-14T01:12:00Z</PurchaseTimestamp>
                <GroupCode>MD</GroupCode>
      </AncillaryServicesUpdate>
            </ReservationUpdateItem>
            <ReservationUpdateItem UpdateId="ssr_1">
            <SpecialServiceRequestUpdate op="C" type="G">
                <NameAssociationList>
                    <NameAssociationTag>
                        <NameRefNumber>01.01</NameRefNumber>
                    </NameAssociationTag>
                </NameAssociationList>
                <SegmentAssociationList>
                    <SegmentAssociationTag>
                        <CarrierCode>LH</CarrierCode>
                        <FlightNumber>2011</FlightNumber>
                        <DepartureDate>2019-10-28</DepartureDate>
                        <BoardPoint>DUS</BoardPoint>
                        <OffPoint>MUC</OffPoint>
                        <ClassOfService>H</ClassOfService>
                        <BookingStatus>HK</BookingStatus>
                    </SegmentAssociationTag>
                </SegmentAssociationList>
                <SpecialService>
                    <Code>AOXY</Code>
                </SpecialService>
            </SpecialServiceRequestUpdate>
        </ReservationUpdateItem>
        <ReservationUpdateItem UpdateId="ssr_2">
            <SpecialServiceRequestUpdate op="C" type="G">
                <NameAssociationList>
                    <NameAssociationTag>
                        <NameRefNumber>02.01</NameRefNumber>
                    </NameAssociationTag>
                </NameAssociationList>
                <SegmentAssociationList>
                    <SegmentAssociationTag>
                        <CarrierCode>LH</CarrierCode>
                        <FlightNumber>2011</FlightNumber>
                        <DepartureDate>2019-10-28</DepartureDate>
                        <BoardPoint>DUS</BoardPoint>
                        <OffPoint>MUC</OffPoint>
                        <ClassOfService>H</ClassOfService>
                        <BookingStatus>HK</BookingStatus>
                    </SegmentAssociationTag>
                </SegmentAssociationList>
                <SpecialService>
                    <Code>AOXY</Code>
                </SpecialService>
            </SpecialServiceRequestUpdate>
        </ReservationUpdateItem>
        <ReceivedFrom>
            <AgentName>TEST</AgentName>
        </ReceivedFrom>
    </ReservationUpdateList>
    </UpdateReservationRQ>