How to create a test booking for PTI on Production


34
views
0
8 months ago by

1. Submit an availability request

Using https://apps.travel.cloud navigate to Hotels and search for the hotel that the test is for.
Log into your AWS Prod account and navigate to:
Services -> Lambda -> sfs-hotels-PTI-searchHotels -> Monitoring -> View Logs In Cloudwatch
Find the request in the logs, copy the xml to clipboard and paste into a text editor. Edit the values to match those in the dummy booking supplied by PTI.

Postman
POST to https://bookings.premierinn.com/csp/sql/Agency.Booking2.cls
Headers: Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Body: soap_method: ProcessMethod
XMLIn:
<Parameters MessageType="AvailabilityRequest"><Login UserName="**********" Password="**********"/><HotelCode>LEIHEA</HotelCode><StayDateRange Start="2017-12-08" End="2017-12-09"/><CellCode/><Rooms NumberofRooms="1"><RoomDetails Cots="No" Number="1" Double="Yes" Disabled="No" Smoking="No" Adults="1" Children="0"/></Rooms></Parameters>

2. Submit an availability update request
Head back to AWS and find an AvailabilityUpdateRequest in the sfs-hotels-PTI-book logs. Copy/paste the xml to a text editor. Update the SessionID to be the one from the response in step 1. Also ensure all fields are updated as those in the dummy booking.

Postman
POST to https://bookings.premierinn.com/csp/sql/Agency.Booking2.cls
Headers: Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Body: soap_method: ProcessMethod
XMLIn: <Parameters MessageType="AvailabilityUpdateRequest"><Login UserName="**********" Password="***********"/><Session ID="DhCpe6RSHEILwOat"/><HotelCode>LEIHEA</HotelCode><StayDateRange Start="2017-12-08" End="2017-12-09"/><CellCode></CellCode><RatePlan RatePlanCode="RT408"><Rooms NumberofRooms="1"><RoomDetails Cots="No" Number="1" Double="Yes" Disabled="No" Smoking="No" Adults="1" Children="0" RoomType="TBS"/></Rooms></RatePlan></Parameters>

3, Submit a book request
Finally grab an example book request from the logs in the same way as before and update with the values from the response in step 2, ensuring SessionID etc are correct.

Postman
POST to https://bookings.premierinn.com/csp/sql/Agency.Booking2.cls
Headers: Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Body: soap_method: ProcessMethod
XMLIn:<Parameters MessageType="BookingConfirmRequest">
<Login Password="********" UserName="********"/>
<Session ID="DhCpe6RSHEILwOat"/>
<PaymentCard CardType="AT" CardNumber="3089********0862" ExpiryDate="09/19"
<CardHolderName>Aidan Walshe</CardHolderName>
<BusinessAccount>
<CardNotPresentAuth>Yes/</CardNotPresentAuth>
<AtosUserName></AtosUserName>
<AtosPassword>********</AtosPassword>
<BreakfastCodeReq>11</BreakastCodeReq>
<DinnerAllowance>20.00</DinnerAllowance>
<AlcoholAllowed>No</AlcoholAllowed>
<CarParkingAllowed>No</CarParkingAllowed>
<WifiAllowed>No</WifiAllowed>
<OtherChargesAllowed>No</OtherChargesAllowed>
</BusinessAccount>
</PaymentCard>
<Rooms NumberofRooms="1">
<RoomDetails Number="1">
<GuestName>
<Title>Mr</Title>
<Initials>T</Initials>
<Surname>Test</Surname>
</GuestName>
</RoomDetails>
</Rooms>
<Address>
<AddressLine1>Suffolk Street, Queensway</AddressLine1>
<AddressLine2/>
<AddressLine3>Birmingham</AddressLine3>
<AddressLine4>West Midlands</AddressLine4>
<AddressLine5/>
<PostCode>B1 1TT</PostCode>
<TelephoneNumber>08447459023</TelephoneNumber>
<EmailAddress>supplier@travel.cloud</EmailAddress>
</Address>
<BookingCompanyName>Eurofins</BookingCompanyName>
<BookerDetails>
<BookerName>
<Title>Mr</Title>
<Initials>T</Initials>
<Surname>Test-bennett</Surname>
</BookerName>
<BookerAddress>
<AddressLine1>Suffolk Street, Queensway</AddressLine1>
<AddressLine2/>
<AddressLine3>Birmingham</AddressLine3>
<AddressLine4>West Midlands</AddressLine4>
<AddressLine5/>
<PostCode>B1 1TT</PostCode>
<TelephoneNumber>08447459023</TelephoneNumber>
<EmailAddress>supplier@travel.cloud</EmailAddress>
</BookerAddress>
</BookerDetails>
<ArrivalTime>1800</ArrivalTime>
<ElectronicInvoice>Yes</ElectronicInvoice>
<BookingType>Business</BookingType>
</Parameters>


Similar posts:
Search »
  • Nothing matches yet.