In all use cases, the Actor is the developer implementing the interface between the TripServices APIs and your company's application that provides travel results to your company's end users. Actors here are not searching/booking travel for themselves but instead are implementing this data handling for input from your company's travel customers.
This use case identifies how to book multiple rooms for multiple guests.
| Prerequisites | Next steps |
|---|---|
| None required. This step books the requested rooms and completes the workflow. |
| Action | Goals and steps | Code Example |
|---|---|---|
Request |
| "ReservationQueryBuild": { "@type": "ReservationQueryBuild", "ReservationBuild": { "@type": "ReservationBuildFromCatalogOffering", "BuildFromCatalogOfferingHospitality": { "@type": "BuildFromCatalogOfferingHospitality", "NumberOfRooms": 2, "Traveler": [ { "@type": "Traveler", "PersonName": { "Given": "Mariah", "Surname": "Roberts", "Title": "Ms" }, "Telephone": [ { "@type": "TelephoneDetail", "countryAccessCode": "91", "areaCityCode": "011", "phoneNumber": "9891766469", "cityCode": "DL" } ], "Email": [ { "value": "roberts@none.com" } ], |
Response | The booking response returns room and guest count at the top of the Product object:
| { "ReservationResponse": { "Reservation": { "@type": "ReservationDetail", "Offer": [ { "@type": "Offer", "id": "O1", "Identifier": { "value": "6269ddc1-a017-40cb-bce6-140d5e74e104:cc3280205f5ae9a9b7944c1002c88b33", "authority": "TVPT" }, "Product": [ { "@type": "ProductHospitality", "Quantity": 2, "bookingCode": "T00AABT", "guests": 4, |