Content (Static Content)

On this page you will learn how to manage content data such as hotels, boards, categories, etc. in your site.

Hotels

Hotels Query returns a hotel list from one supplier’s access. This entity contains static data about the hotel requested, such as code, name, location, and other information - You can find all these fields in the graph. You can receive hotels with hotel codes or with minimal destination codes, you can also filter the results based on rank. In this sense, note that there are mandatory and optional fields that allow filtering the hotels returned in the response. As for the response, the full response is split into pages: By default, the maximum number of hotels returned in each page (response) is 1000, but it is allowed to request between 100 and 10000 hotels by filling in the field maxSize in the criteria. In order to obtain the next page of hotels, you need to fill in the token field, accordingly. Input parameters are explained above.

Criteria

Mandatory fields
- access-> It represents the access for which you want to receive the hotels information.

Optional fields
- hotelCodes-> it allows to filter by hotel codes
- ranks-> it allows to filter by ranks
- maxSize-> it allows to specify the number of elements per page

Token

The token allows to request the next page of hotels. The correct way of obtaining multiple pages of hotels is mantaining this field empty for the first execution, and request the token field in the response graph. Then, send subsequent queries filling in the token field with the value returned in the previous response.

Playground Samples

  • Hotels

Destinations

Destinations Query returns a list of static data about destinations for a supplier access. By default, if you donโ€™t set any destination codes, you will receive all the codes. As it is the case with the Query Hotels, you will be able to receive subsequent pages of destinations by filling in the continuation token field. It is possible that you filter by language and you receive the texts only in the language specified by parameter in DestinationData /texts/languages.

Playground Samples

  • Destinations

Boards

Boards Query returns a simple boards map that can include translations to other languages.

Playground Samples

  • Boards

Rooms

Rooms Query returns a simple rooms map that can include translations to other languages. You can search by room codes, if you don’t introduce any room codes, you will receive all of them. The full response is split into pages. By default, the number of rooms in each page is 1000, however, you can choose the size with a value between 100 and 10000.

Criteria

Mandatory fields
- access-> It represents the access for which you want to receive the room description.

Optional fields
- roomCodes-> it allows to filter by room codes
- maxSize-> it allows to specify the number of elements per page

Token

The token allows to request the next page of rooms. The correct way of obtaining multiple pages of rooms is mantaining this field empty for the first execution and request the token field in the response graph. Then, subsequent queries filling in the token field with the value returned in the previous response.

Playground Samples

  • Rooms

Categories

Category static data returns a simple categories map that can include translations to other languages.

Playground Samples

  • Categories

Comments