Retrieve Reservation Details
Scope
This use case shows the code necessary to retrieve a booked reservation. The booking record contains all existing data on a reservation, including details for the room/s, traveler/s, form of payment and payment, terms and conditions, and locator codes.
Prerequisites |
Next steps |
|
None. |
Use case
|
Action |
Goals and steps |
Code Example |
|---|---|---|
|
Request |
Send a Reservation Retrieve request:
Hotel bookings return multiple locator codes. For the aggregator code, at booking note the value in the instance of Receipt with Confirmation/Locator/locatorType=PNR Locator. See Locator Codes for more about locator codes.
|
Endpoint: GET https://api.travelport.com/11/hotel/book/reservations/K8TCLR |
|
Response |
The response returns all details currently on the booking. You can confirm the correct booking was retrieved with the aggregator/PNR locator code returned in Locator/value, in the instance of Confirmation with locatorType PNR Locator. |
|