This version supports amendment of a booking, the amendment process is Offline and it takes time if there is aggregator dependency, normally we try to complete the amendment process within 72 hours.
This method is used to amend a booking before the check in date. Here we are offering amendment of CheckIn/CheckOut dates and guest information in rooms.
Note:
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:hot="http://TekTravel/HotelBookingApi">
<soap:Header xmlns:wsa='http://www.w3.org/2005/08/addressing'>
<hot:Credentials xmlns:hot="http://TekTravel/HotelBookingApi" UserName="testuser" Password="testpwd">
</hot:Credentials>
<wsa:Action>http://TekTravel/HotelBookingApi/Amendment</wsa:Action>
<wsa:To>http://api.tbotechnology.in/hotelapi_v7/hotelservice.svc</wsa:To>
</soap:Header>
<soap:Body>
<hot:AmendmentRequest>
<!-- if price change information required set PriceChange="InformationRequired" -->
<hot:Request Type="OfflineAmendment" PriceChange="Approved" Remarks="guest name amendment requested"/>
<hot:BookingId>1729</hot:BookingId>
<hot:AmendInformation>
<hot:CheckIn Date="2018-04-28"/>
<hot:CheckOut Date="2018-04-29"/>
<hot:Rooms>
<hot:RoomReq Amend="FirstRoom">
<hot:Guest Action="Add" ExistingName="" GuestType="Adult" Title="Mr" FirstName="Amar" LastName="Saxena" Age="24"/>
<hot:Guest Action="Rename" ExistingName="Mr Kuldeep Test" GuestType="Adult" Title="Mr." FirstName="Shyam" LastName="Srivastav" Age="25"/>
<hot:Guest Action="Delete" ExistingName="Ms Simran" GuestType="Adult" Age="0"/>
</hot:RoomReq>
</hot:Rooms>
</hot:AmendInformation>
</hot:AmendmentRequest>
</soap:Body>
</soap:Envelope>
<AmendmentResponse xmlns="http://TekTravel/HotelBookingApi">
<Status>
<StatusCode>01</StatusCode>
<Description>Successful: Status of amendment has been changed to RequestSent</Description>
</Status>
<RequestStatus>RequestSent</RequestStatus>
<BookingId>1730</BookingId>
<AmendmentMessage>Your amendment request has been successfully submitted .Our operations team will update the status soon.</AmendmentMessage>
<AmendmentRequested>
<CheckIn Date="2018-04-28" DateAction="Changed"/>
<CheckOut Date="2018-04-29" DateAction="Changed"/>
<Rooms>
<RoomRes Amended="FirstRoom">
<Guest Action="Added" GuestType="Adult" Title="Mr" FirstName="Amar" LastName="Saxena" Age="24"/>
<Guest Action="Renamed" GuestType="Adult" Title="Mr." FirstName="Shyam" LastName="Srivastav" Age="25"/>
<Guest Action="Deleted" GuestType="Adult" Age="0"/>
</RoomRes>
</Rooms>
</AmendmentRequested>
</AmendmentResponse>
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:hot="http://TekTravel/HotelBookingApi">
<soap:Header xmlns:wsa='http://www.w3.org/2005/08/addressing'>
<hot:Credentials xmlns:hot="http://TekTravel/HotelBookingApi" UserName="testuser" Password="testpwd">
</hot:Credentials>
<wsa:Action>http://TekTravel/HotelBookingApi/Amendment</wsa:Action>
<wsa:To>http://api.tbotechnology.in/hotelapi_v7/hotelservice.svc</wsa:To>
</soap:Header>
<soap:Body>
<hot:AmendmentRequest>
<hot:Request Type="CheckStatus" PriceChange="InformationRequired" Remarks="checking status of amendment request" />
<hot:BookingId>1729</hot:BookingId>
</hot:AmendmentRequest>
</soap:Body>
</soap:Envelope>
<AmendmentResponse xmlns="http://TekTravel/HotelBookingApi">
<Status>
<StatusCode>01</StatusCode>
<Description>Successful: Status of amendment: RequestSent</Description>
</Status>
<RequestStatus>RequestSent</RequestStatus>
<BookingId>1730</BookingId>
<AmendmentMessage>Your amendment request has been successfully submitted .Our operations team will update the status soon.</AmendmentMessage>
</AmendmentResponse>
</HotelCancelResponse>
<AmendmentResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Status>
<StatusCode>01</StatusCode>
<Description>Successful: Status of amendment: AgentApprovalPending</Description>
</Status>
<RequestStatus>AgentApprovalPending</RequestStatus>
<ApprovalInformation>
<Rooms>
<Room RoomIndex="FirstRoom" RoomName="Single Room Standard Single" BeforeAmendmentPrice="44.52" AfterAmendmentPrice="50.00" />
<Room RoomIndex="SecondRoom" RoomName="Single Room Standard Single" BeforeAmendmentPrice="44.52" AfterAmendmentPrice="50.00" />
</Rooms>
<TotalPrice BeforeAmendmentPrice="89.04" AfterAmendmentPrice="100.00" />
</ApprovalInformation>
<BookingId>9963</BookingId>
<AmendmentMessage>Agent approval is pending, please approve the price change</AmendmentMessage>
</AmendmentResponse>
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:hot="http://TekTravel/HotelBookingApi">
<soap:Header xmlns:wsa='http://www.w3.org/2005/08/addressing'>
<hot:Credentials xmlns:hot="http://TekTravel/HotelBookingApi" UserName="testuser" Password="testpwd">
</hot:Credentials>
<wsa:Action>http://TekTravel/HotelBookingApi/Amendment</wsa:Action>
<wsa:To>http://api.tbotechnology.in/hotelapi_v7/hotelservice.svc</wsa:To>
</soap:Header>
<soap:Body>
<hot:AmendmentRequest>
<hot:Request Type="PriceApproved" PriceChange="InformationRequired" Remarks="price information required if there is any price change"/>
<hot:BookingId>1731</hot:BookingId>
</hot:AmendmentRequest>
</soap:Body>
</soap:Envelope>
<AmendmentResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Status>
<StatusCode>01</StatusCode>
<Description>Successful: Status of amendment: Amended</Description>
</Status>
<RequestStatus>Amended</RequestStatus>
<BookingId>9963</BookingId>
<NewConfirmatioNo>LL8F232007</NewConfirmatioNo>
<AmendmentMessage>Your booking has been successfully amended.</AmendmentMessage>
</AmendmentResponse>