Termino endpoints

Hotel update (push)

Synchronization of changed hotel info and structure.

Usage:

  • CM / PMS pushes hotel info and structure changes to Termino
post/hotel-update

Request body

accessTokenstring required

Access token to your API.

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

successboolean required

Always true.

Example response

{
  "success": true
}

Changes

Changed in 5 of the 10 revisions of this API.3710

  • b2f22ce7f100131See the full diff
    • the hotel request property type/format changed from object/ to /

      request-property-type-changed

    • removed the request property hotel/address

      request-property-removed

    • removed the request property hotel/id

      request-property-removed

    • removed the request property hotel/name

      request-property-removed

    • added the new optional request property ratePlans

      new-optional-request-property

    • removed the request property hotelId

      request-property-removed

  • 2449b1b9108911See the full diff
    • removed the request property hotel/roomTypes

      request-property-removed

    • added the new optional request property roomTypes

      new-optional-request-property

    • api tag Termino endpoints added

      api-tag-added

    • api tag Push endpoints removed

      api-tag-removed

  • e19082e0fb0f226See the full diff
    • added the new required request property hotelId

      new-required-request-property

    • the hotel request property type/format changed from / to object/

      request-property-type-changed

    • removed the request property ratePlans

      request-property-removed

    • removed the request property roomTypes

      request-property-removed

    • api tag Push endpoints added

      api-tag-added

    • api tag Termino endpoints removed

      api-tag-removed

    • added the new optional request property hotel/address

      new-optional-request-property

    • added the new optional request property hotel/id

      new-optional-request-property

    • added the new optional request property hotel/name

      new-optional-request-property

    • added the new optional request property hotel/roomTypes

      new-optional-request-property

    This revision also has 10 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog