DevelopersReferenceBookings
API: List Hotels
The itinerary's hotels.
AuthorizationBearer <token>
A Travelyfe access token.
In: header
Path Parameters
id*string
The itinerary id (UUID).
Format
uuidHeader Parameters
Travelyfe-Itinerary-Shape?"clean"
Send clean on every request that reads or writes an itinerary. It is the shape this reference documents.
Value in
- "clean"
Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v1/itineraries/497f6eca-6276-4993-bfeb-53cbbbba6f08/hotels"{ "data": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "place": { "name": "string", "address": "string", "coordinate": { "latitude": -90, "longitude": -180 }, "placeId": "string", "countryCode": "string", "timeZone": "string", "code": "string" }, "checkInDate": "2019-08-24T14:15:22Z", "checkOutDate": "2019-08-24T14:15:22Z", "roomNumber": "string", "phoneNumber": "string" } ]}