Hotel info (reversed)
Provides same information as /hotel endpoint, but in reversed direction. This endpoint is called by CM to load room types and rate plans created on Termino side and set up mapping.
Request body
Response
Successful response
Example response
{
"hotel": {
"id": "123456",
"name": "Hotel Example",
"address": {
"street": "Pernerova 691",
"city": "Praha 8",
"country": "CZ"
}
},
"roomTypes": [
{
"id": "123456",
"name": "Double room",
"beds": 2,
"extraBeds": 1,
"roomsCount": 10,
"rooms": [
{
"id": "125",
"name": "Room 125"
}
]
}
],
"ratePlans": [
{
"id": "HB",
"name": "Half-board",
"pricingModel": "per_room"
}
]
}Changes
Changed in 3 of the 10 revisions of this API.27
- ▲
the response's body type/format changed from
/toobject/for status200response-body-type-changed
- ○
added
ErrorResponsesubschema #2to the response bodyallOflist for the response status400response-body-all-of-added
- ○
removed
HotelInfofrom the response bodyoneOflist for the response status200response-body-one-of-removed
- ○
removed
HotelNotFoundErrorfrom the response bodyoneOflist for the response status400response-body-one-of-removed
- ○
added the optional property
ratePlansto the response with the200statusresponse-optional-property-added
- ○
added the required property
hotelto the response with the200statusresponse-required-property-added
- ○
added the required property
roomTypesto the response with the200statusresponse-required-property-added
- ▲
- ○
endpoint added
endpoint-added
- ○
- ▲
api path removed without deprecation
api-path-removed-without-deprecation
This revision also has 10 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲