Versions Compared

Key

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

...

Info

Note: This functionality supported for limited suppliers. Please check with GP Travel HUB development if you are interested in specific supplier.

12.5. SEE PRICE FOR CANCELLATION ON RETRIEVE

On Retrieve after Cancellation you can see the total price of the booking and the total price of the cancellation.

RoomStays/RoomStay/RoomRates/RoomRate/Total/@AmountAfterTax - is the total price of the booking (even if the reservation has already been cancelled for free). This Amount has the same value that we show on Reservation.

RoomStays/RoomStay/Total/@AmountAfterTax - is the actual total price for the booking. This Amount is the price of the cancellation.

Expand
titleReservation Confirmation Response
Code Block
languagexml
<OTA_HotelResRS xmlns="http://www.opentravel.org/OTA/2003/05" EchoToken="Test" Version="2.0">
  <Success/>
  <HotelReservations>
    <HotelReservation ResStatus="Waitlisted">
      <RoomStays>
        <RoomStay>
          <RoomTypes>
            <RoomType RoomTypeCode="SRNACRISSRNRMA" SupplierRoomCategoryCode="DB" SupplierRoomTypeCode="SRNACRISSRNRMA">
              <RoomDescription Name="Double">
                <Text>Double, 1 Bedroom Balcony Suite (Double or Twin)</Text>
              </RoomDescription>
            </RoomType>
          </RoomTypes>
          <RatePlans>
            <RatePlan RatePlanCode="1|">
              <RatePlanDescription>
                <Text>Continental Breakfast</Text>
              </RatePlanDescription>
              <MealsIncluded Breakfast="true" Dinner="false" Lunch="false" MealPlanCodes="6"/>
            </RatePlan>
          </RatePlans>
          <RoomRates>
            <RoomRate InexactPrice="false" InvBlockCode="1" NumberOfUnits="1" RatePlanCode="1|" RoomTypeCode="SRNACRISSRNRMA" SupplierNumberOfUnitsInd="false">
              <Rates>
                <Rate AgeQualifyingCode="10" RateSource="Calculated">
                  <Total AmountAfterTax="106.50" CurrencyCode="AUD"/>
                </Rate>
                <Rate AgeQualifyingCode="10" RateSource="Calculated">
                  <Total AmountAfterTax="106.50" CurrencyCode="AUD"/>
                </Rate>
              </Rates>
              <RoomRateDescription Name="SRNACRISSRNRMA">
                <Text>Existing Bedding:
                                1 Queen and 
                                1 Single.
                                Additional Bedding:
                                No additional bedding available.
                </Text>
              </RoomRateDescription>
              <Services>
                <Service Inclusive="true" IsPerRoom="true" ReservationStatusType="Waitlisted" ServiceRPH="1" SpecialServiceType="Meal">
                  <Price>
                    <Base AmountAfterTax="34.00" CurrencyCode="AUD"/>
                  </Price>
                  <ServiceDetails ShortName="Continental Breakfast">
                    <ServiceDescription>
                      <Text>Continental Breakfast</Text>
                    </ServiceDescription>
                  </ServiceDetails>
                </Service>
              </Services>
              <Total AmountAfterTax="213.00" CurrencyCode="AUD"/>
            </RoomRate>
          </RoomRates>
          <TimeSpan End="2021-08-03" Start="2021-08-02"/>
          <CancelPenalties>
            <CancelPenalty End="2021-08-02T23:59:59" Start="2021-07-30T00:00:00">
              <AmountPercent Amount="213.00" CurrencyCode="AUD"/>
            </CancelPenalty>
          </CancelPenalties>
          <Total AmountAfterTax="213.00" CurrencyCode="AUD"/>
          <BasicPropertyInfo HotelCityCode="R-100" HotelCode="SRNACRISSRN" HotelCodeContext="pacificaot" HotelName="Risby Cove">
            <Award Provider="Hotel" Rating="4"/>
            <Award Provider="Supplier" Rating="4"/>
          </BasicPropertyInfo>
        </RoomStay>
      </RoomStays>
      <ResGuests>
        <ResGuest AgeQualifyingCode="10" ResGuestRPH="1">
          <Profiles>
            <ProfileInfo>
              <UniqueID ID="1" Type="1"/>
              <Profile>
                <Customer BirthDate="1985-02-28">
                  <PersonName>
                    <NamePrefix>Mr</NamePrefix>
                    <GivenName>Tesdghdg</GivenName>
                    <Surname>Meow</Surname>
                  </PersonName>
                  <Telephone PhoneNumber="+4489898989"/>
                  <Email>dog@test.com</Email>
                  <CitizenCountryName Code="BR"/>
                </Customer>
              </Profile>
            </ProfileInfo>
          </Profiles>
        </ResGuest>
        <ResGuest AgeQualifyingCode="10" ResGuestRPH="1">
          <Profiles>
            <ProfileInfo>
              <UniqueID ID="2" Type="1"/>
              <Profile>
                <Customer BirthDate="1980-02-28">
                  <PersonName>
                    <NamePrefix>Mr</NamePrefix>
                    <GivenName>Tegghjye</GivenName>
                    <Surname>Meownss</Surname>
                  </PersonName>
                  <CitizenCountryName Code="RU"/>
                </Customer>
              </Profile>
            </ProfileInfo>
          </Profiles>
        </ResGuest>
      </ResGuests>
      <ResGlobalInfo>
        <Comments>
          <Comment>
            <Text>requested</Text>
          </Comment>
        </Comments>
        <DepositPayments>
          <GuaranteePayment Type="AcceptedPaymentForms">
            <AcceptedPayments>
              <AcceptedPayment CostCenterID="pacificaot"/>
            </AcceptedPayments>
          </GuaranteePayment>
        </DepositPayments>
        <HotelReservationIDs>
          <HotelReservationID ResID_Source="agent" ResID_Value="99gdfdjga"/>
          <HotelReservationID ResID_Source="client" ResID_Value="99gdfdjga"/>
          <HotelReservationID ResID_Source="supplier" ResID_Value="AIIFKT2044/17767761"/>
        </HotelReservationIDs>
      </ResGlobalInfo>
    </HotelReservation>
  </HotelReservations>
</OTA_HotelResRS>
Expand
titleHotel Cancellation Response
Code Block
languagexml
<OTA_CancelRS xmlns="http://www.opentravel.org/OTA/2003/05" EchoToken="Test" Status="Cancelled" Version="2.0">
  <Success/>
  <UniqueID ID="99gdfdjga" ID_Context="agent" Type="10"/>
  <UniqueID ID="99gdfdjga" ID_Context="client" Type="10"/>
  <UniqueID ID="AIIFKT2044/17767761" ID_Context="supplier" Type="10"/>
  <CancelInfoRS>
    <CancelRules>
      <CancelRule Amount="0.00" CurrencyCode="AUD"/>
    </CancelRules>
  </CancelInfoRS>
</OTA_CancelRS>
Expand
titleHotel Booking Retrieval Quote Response
Code Block
languagexml
<OTA_HotelResRS xmlns="http://www.opentravel.org/OTA/2003/05" EchoToken="tok1" Version="2.0">
  <Success/>
  <HotelReservations>
    <HotelReservation ResStatus="Cancelled">
      <RoomStays>
        <RoomStay>
          <RoomTypes>
            <RoomType RoomTypeCode="SRNACRISSRNRMA" SupplierRoomCategoryCode="DB" SupplierRoomTypeCode="SRNACRISSRNRMA">
              <RoomDescription Name="Double">
                <Text>Double, 1 Bedroom Balcony Suite (Double or Twin)</Text>
              </RoomDescription>
            </RoomType>
          </RoomTypes>
          <RatePlans>
            <RatePlan RatePlanCode="1|">
              <RatePlanDescription>
                <Text>Continental Breakfast</Text>
              </RatePlanDescription>
              <MealsIncluded Breakfast="true" Dinner="false" Lunch="false" MealPlanCodes="6"/>
            </RatePlan>
          </RatePlans>
          <RoomRates>
            <RoomRate InexactPrice="false" InvBlockCode="1" NumberOfUnits="1" RatePlanCode="1|" RoomTypeCode="SRNACRISSRNRMA" SupplierNumberOfUnitsInd="false">
              <Rates>
                <Rate AgeQualifyingCode="10" RateSource="Calculated">
                  <Total AmountAfterTax="106.50" CurrencyCode="AUD"/>
                </Rate>
                <Rate AgeQualifyingCode="10" RateSource="Calculated">
                  <Total AmountAfterTax="106.50" CurrencyCode="AUD"/>
                </Rate>
              </Rates>
              <RoomRateDescription Name="SRNACRISSRNRMA">
                <Text>Existing Bedding:
                                1 Queen and 
                                1 Single.
                                Additional Bedding:
                                No additional bedding available.
                </Text>
              </RoomRateDescription>
              <Services>
                <Service Inclusive="true" IsPerRoom="true" ReservationStatusType="Cancelled" ServiceRPH="1" SpecialServiceType="Meal">
                  <Price>
                    <Base AmountAfterTax="34.00" CurrencyCode="AUD"/>
                  </Price>
                  <ServiceDetails ShortName="Continental Breakfast">
                    <ServiceDescription>
                      <Text>Continental Breakfast</Text>
                    </ServiceDescription>
                  </ServiceDetails>
                </Service>
              </Services>
              <Total AmountAfterTax="213.00" CurrencyCode="AUD"/>
            </RoomRate>
          </RoomRates>
          <TimeSpan End="2021-08-03" Start="2021-08-02"/>
          <CancelPenalties>
            <CancelPenalty End="2021-08-02T23:59:59" Start="2021-07-30T00:00:00">
              <AmountPercent Amount="213.00" CurrencyCode="AUD"/>
            </CancelPenalty>
          </CancelPenalties>
          <Total AmountAfterTax="0.00" CurrencyCode="AUD"/>
          <BasicPropertyInfo HotelCityCode="R-100" HotelCode="SRNACRISSRN" HotelCodeContext="pacificaot" HotelName="Risby Cove">
            <Award Provider="Hotel" Rating="4"/>
            <Award Provider="Supplier" Rating="4"/>
          </BasicPropertyInfo>
        </RoomStay>
      </RoomStays>
      <ResGuests>
        <ResGuest AgeQualifyingCode="10" ResGuestRPH="1">
          <Profiles>
            <ProfileInfo>
              <UniqueID ID="1" Type="1"/>
              <Profile>
                <Customer BirthDate="1985-02-28">
                  <PersonName>
                    <NamePrefix>Mr</NamePrefix>
                    <GivenName>Tesdghdg</GivenName>
                    <Surname>Meow</Surname>
                  </PersonName>
                </Customer>
              </Profile>
            </ProfileInfo>
          </Profiles>
        </ResGuest>
        <ResGuest AgeQualifyingCode="10" ResGuestRPH="1">
          <Profiles>
            <ProfileInfo>
              <UniqueID ID="2" Type="1"/>
              <Profile>
                <Customer BirthDate="1980-02-28">
                  <PersonName>
                    <NamePrefix>Mr</NamePrefix>
                    <GivenName>Tegghjye</GivenName>
                    <Surname>Meownss</Surname>
                  </PersonName>
                </Customer>
              </Profile>
            </ProfileInfo>
          </Profiles>
        </ResGuest>
      </ResGuests>
      <ResGlobalInfo>
        <Comments>
          <Comment>
            <Text>requested</Text>
          </Comment>
        </Comments>
        <DepositPayments>
          <GuaranteePayment Type="AcceptedPaymentForms">
            <AcceptedPayments>
              <AcceptedPayment CostCenterID="pacificaot"/>
            </AcceptedPayments>
          </GuaranteePayment>
        </DepositPayments>
        <HotelReservationIDs>
          <HotelReservationID ResID_Source="agent" ResID_Value="99gdfdjga"/>
          <HotelReservationID ResID_Source="client" ResID_Value="99gdfdjga"/>
          <HotelReservationID ResID_Source="supplier" ResID_Value="AIIFKT2044/17767761"/>
        </HotelReservationIDs>
      </ResGlobalInfo>
    </HotelReservation>
  </HotelReservations>
</OTA_HotelResRS>