Hotel update (push)
Synchronization of changed hotel info and structure.
Usage:
- CM / PMS pushes hotel info and structure changes to Termino
Request body
Example request
{
"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"
}
]
}Response
Successful response
Example response
{
"success": true
}Changes
Changed in 5 of the 10 revisions of this API.3710
- ▲
the
hotelrequest property type/format changed fromobject/to/request-property-type-changed
- ●
removed the request property
hotel/addressrequest-property-removed
- ●
removed the request property
hotel/idrequest-property-removed
- ●
removed the request property
hotel/namerequest-property-removed
- ○
added the new optional request property
ratePlansnew-optional-request-property
- ▲
- ●
removed the request property
hotelIdrequest-property-removed
- ●
- ●
removed the request property
hotel/roomTypesrequest-property-removed
- ○
added the new optional request property
roomTypesnew-optional-request-property
- ●
- ○
api tag
Termino endpointsaddedapi-tag-added
- ○
api tag
Push endpointsremovedapi-tag-removed
- ○
- ▲
added the new required request property
hotelIdnew-required-request-property
- ▲
the
hotelrequest property type/format changed from/toobject/request-property-type-changed
- ●
removed the request property
ratePlansrequest-property-removed
- ●
removed the request property
roomTypesrequest-property-removed
- ○
api tag
Push endpointsaddedapi-tag-added
- ○
api tag
Termino endpointsremovedapi-tag-removed
- ○
added the new optional request property
hotel/addressnew-optional-request-property
- ○
added the new optional request property
hotel/idnew-optional-request-property
- ○
added the new optional request property
hotel/namenew-optional-request-property
- ○
added the new optional request property
hotel/roomTypesnew-optional-request-property
This revision also has 10 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲