Skip Navigation

Create

Important! A lodging segment can only be added with an API. Adding lodging using host commands is not supported.

To add a lodging product to the PNR, utilize the following APIs:

  • UpdateReservationRQ

or

  • CreateReservationRQ

3.3.1 Sample Request for UpdateReservationRQ

This example shows a request that uses only basic, mandatory fields necessary to receive a successful response. Refer to the design documentation located in the Resources tab for all elements that can be used.

Note: Some of the fields from the example below are mandatory or optional depending on the Reservation Source (GDS, Aggregator). The request below contains all elements that are required for both of these sources.

To add lodging products using UpdateReservationRQ, the proper type of operation must be provided in ProductUpdate: op=ā€œCā€ (Create).

<UpdateReservationRQ xmlns="http://webservices.sabre.com/pnrbuilder/v1_19" Version="1.19.0">
    <ReturnOptions RetrievePNR="true" IncludeUpdateDetails="true"/>
    <ReservationUpdateList>
        <ReservationUpdateItem UpdateId="ID_3">
            <ProductUpdate op="C">
                <Product>
                    <or:ProductDetails xmlns:or="http://services.sabre.com/res/or/v1_14">
                        <or:ProductName type="HHL">Lodging</or:ProductName>
                        <or:Lodging>
                            <or:ResGlobalInfo>
                                <or:BookingInfo Email="Orville.Wright@sabre.com">
                                    <or:BookingKey>50a4039b-01a5-4a5e-a15e- c455b9e2cbf5</or:BookingKey>
                                </or:BookingInfo>
                            </or:ResGlobalInfo>
                            <or:Rooms>
                                <or:Room RoomIndex=" 1 ">
                                    <or:Guests>
                                        <or:Guest Email="Orville.Wright@sabre.com" FirstName="John" Index=" 1 " LastName="Smith" LeadGuest="true" Type=" 10 ">
                                            <or:Contact Phone=" 817 - 555 - 1212 "/>
                                        </or:Guest>
                                    </or:Guests>
                                </or:Room>
                            </or:Rooms>
                            <or:PaymentInformation Type="DEPOSIT">
                                <or:FormOfPaymentReference newRef=" 1 "/>
                            </or:PaymentInformation>
                            <or:POS>
                                <or:Source AgencyName="SABRE" PseudoCityCode="TM61">
                                    <or:RequestorID Id=" 99999999 " IdContext="IATA" Type=" 5 "/>
                                    <or:AgencyAddress>
                                        <or:AddressLine1>3150 SABRE DRIVE</or:AddressLine1>
                                        <or:CountryName Code="US"/>
                                    </or:AgencyAddress>
                                </or:Source>
                            </or:POS>
                        </or:Lodging:>
                    </or:ProductDetails>
                </Product>
            </ProductUpdate>
        </ReservationUpdateItem>
        <ReservationUpdateItem>
            <OpenReservationElementUpdate id=" 1 " op="C">
                <OpenReservationElement id=" 1 " type="FP">
                    <or:FormOfPayment xmlns:or="http://services.sabre.com/res/or/v1_14">
                        <or:PaymentCard>
                            <or:PaymentType>CC</or:PaymentType>
                            <or:CardCode>AX</or:CardCode>
                            <or:CardNumber tokenized="false"> 341111111111111</or:CardNumber>
                            <or:ExpiryMonth>-- 10 </or:ExpiryMonth>
                            <or:ExpiryYear> 2020 </or:ExpiryYear>
                            <or:FullCardHolderName>
                                <or:FirstName>John</or:FirstName>
                                <or:LastName>Smith</or:LastName>
                                <or:Email>Orville.Wright@mailprovider.com</or:Email>
                            </or:FullCardHolderName>
                            <or:CSC> 737 </or:CSC>
                            <or:Address>
                                <or:AddressLine>Wadowicka 6</or:AddressLine>
                                <or:AddressLine>Entrance D</or:AddressLine>
                                <or:CityName>Cracow</or:CityName>
                                <or:CountryCodes>
                                    <or:Code>PL</or:Code>
                                </or:CountryCodes>
                            </or:Address>
                            <or:Phone>
                                <or:PhoneNumber> 42342 - 234 - 24 </or:PhoneNumber>
                            </or:Phone>
                        </or:PaymentCard>
                    </or:FormOfPayment>
                </OpenReservationElement>
            </OpenReservationElementUpdate>
        </ReservationUpdateItem>
    </ReservationUpdateList>
</UpdateReservationRQ>

3.3.2 Sample Request for CreateReservationRQ

Adding a lodging product with CreateReservationRQ requires the same elements as UpdateReservationRQ. The example below shows some additional fields provided in the request like RoomExtras or SpecialInstructions.

Refer to the design documentation located in the Resources tab for all elements that can be used.

<ns7:CreateReservationRQ xmlns:ns7="http://webservices.sabre.com/pnrbuilder/v1_19" xmlns:or="http://services.sabre.com/res/or/v1_14" Version="1.19.0">
    <ns7:RequestType commitTransaction="false" initialIgnore="false">Stateful</ns7:RequestType>
    <ns7:ReturnOptions RetrievePNR="true"/>
    <ns7:NewReservation>
        <ns7:Itinerary>
            <ns7:Product>
                <or:ProductDetails>
                    <or:ProductName type="HHL">Lodging</or:ProductName>
                    <or:Lodging>
                        <or:ResGlobalInfo>
                            <or:BookingInfo RequestorID="9999999" CorpDiscount="1234567" PromotionalCode="XJKGHLDE">
                                <or:BookingKey>6e223df1-df3d-4b34-b9df-9a27689e48a3</or:BookingKey>
                            </or:BookingInfo>
                        </or:ResGlobalInfo>
                        <or:Rooms>
                            <or:Room SegmentNumber="1" AccessibilityInformation="3" RoomIndex="1">
                                <or:Guests>
                                    <or:Guest LastName="Wrigth" Title="Mr" FirstName="Orville" Email="Orville.Wrigth@test.com" Type="10" Age="30" Index="1" LeadGuest="true" FrequentFlyerNumber="FLY12345" LoyaltyId="LOY12345">
                                    <or:Contact Phone="528444380000" Mobile="123456789"/>
                                    </or:Guest>
                                </or:Guests>
                                <or:RoomExtras>
                                    <or:RoomExtra Type="196" Quantity="1"/>
                                    <or:RoomExtra Type="91" Quantity="1"/>
                                    <or:RoomExtra Type="26" Quantity="1"/>
                                </or:RoomExtras>
                                <or:SpecialInstructions>
                                    <or:SpecialInstruction>RoadSide View Needed</or:SpecialInstruction>
                                </or:SpecialInstructions>
                            </or:Room>
                        </or:Rooms>
                        <or:SpecialInstructions>
                            <or:SpecialInstruction>PS4 Needed</or:SpecialInstruction>
                        </or:SpecialInstructions>
                        <or:PaymentInformation Type="DEPOSIT">
                            <or:FormOfPaymentReference newRef="1"/>
                        </or:PaymentInformation>
                        <or:POS>
                            <or:Source AgencyName="AgencyName"   ISOCountryCode="US" PseudoCityCode="TM61">
                            <or:RequestorID Type="5" Id="99999999"   IdContext="IATA"/>
                                <or:AgencyAddress>
                                    <or:AddressLine1>Wadowicka 6</or:AddressLine1>
                                    <or:AddressLine2>Entrance D</or:AddressLine2>
                                    <or:CityName CityCode="KRK">Krakow</or:CityName>
                                    <or:StateProv StateCode="MP">StateProv</or:StateProv>
                                    <or:PostalCode>30-718</or:PostalCode>
                                    <or:CountryName Code="PL">Poland</or:CountryName>
                                </or:AgencyAddress>
                                <or:AgencyContact Phone="1229500001" Mobile="599000303" Fax="1229500002"/>
                            </or:Source>
                        </or:POS>
                    </or:Lodging>
                </or:ProductDetails>
            </ns7:Product>
        </ns7:Itinerary>
        <ns7:PersonName>
            <ns7:Given>Orville</ns7:Given>
            <ns7:Surname>Wrigth</ns7:Surname>
        </ns7:PersonName>
        <ns7:PhoneNumber>
            <ns7:PhoneText>123123</ns7:PhoneText>
        </ns7:PhoneNumber>
        <ns7:DkNumber>123456</ns7:DkNumber>
        <ns7:ReceivedFrom>
            <ns7:Name>205300</ns7:Name>
        </ns7:ReceivedFrom>
        <ns7:OpenReservationElement id="1" type="FP">
            <or:FormOfPayment xmlns:or="http://services.sabre.com/res/or/v1_14">
                <or:PaymentCard>
                    <or:PaymentType>CC</or:PaymentType>
                    <or:CardCode>VI</or:CardCode>
                    <or:CardNumber tokenized="false">4111111111111111</or:CardNumber>
                    <or:ExpiryMonth>--01</or:ExpiryMonth>
                    <or:ExpiryYear>2020</or:ExpiryYear>
                    <or:FullCardHolderName>
                        <or:Title>Dr</or:Title>
                        <or:FirstName>Orville</or:FirstName>
                        <or:LastName>Wrigth</or:LastName>
                        <or:Email>Orville.Wrigth@mailprovider.com</or:Email>
                    </or:FullCardHolderName>
                    <or:CSC>133</or:CSC>
                    <or:Address>
                        <or:AddressLine>Wadowicka 6</or:AddressLine>
                        <or:AddressLine>Entrance D</or:AddressLine>
                        <or:CityName>Cracow</or:CityName>
                        <or:CityCodes>
                            <or:Code>KRK</or:Code>
                        </or:CityCodes>
                        <or:CountryCodes>
                            <or:Code>PL</or:Code>
                        </or:CountryCodes>
                    </or:Address>
                    <or:Phone>
                        <or:PhoneNumber>42342-234-24</or:PhoneNumber>
                    </or:Phone>
                </or:PaymentCard>
            </or:FormOfPayment>
        </ns7:OpenReservationElement>
    </ns7:NewReservation>
</ns7:CreateReservationRQ>