Skip to main content

Hotels live pricing API (1.0)

HotelsService

HotelsService_CreateSearch

Authorizations:
UserAuth
Request Body schema: application/json
required
object (Query object for request)
initialPageSize
integer <int32> (Initial Page Size)

The number of results to return, e.g. the amount of results that each page should have. The number is required to be specified and should be less or equal to 50.

Responses

Request samples

Content type
application/json
{
  • "query": {
    },
  • "initialPageSize": 0
}

Response samples

Content type
application/json
{
  • "sessionToken": "string",
  • "status": "RESULT_STATUS_UNSPECIFIED",
  • "content": {
    }
}

HotelsService_PollSearch

Authorizations:
UserAuth
path Parameters
sessionToken
required
string

Session Token

The token is usually provided by the create search response and has to be re-used for all poll calls until complete set of results is provided

Request Body schema: application/json
required
object (Sort)

Message to specify sorting type and order

object (Pagination Options)

A message specifying pagination parameters used across APIs. This message allows clients to request a specific subset of results by defining how many items to skip and how many to return.

Array of objects (Filters)

Filters to be applied on the query. Any filter added will discard any offers that don't satisfy the specific filter conditions.

Responses

Request samples

Content type
application/json
{
  • "sort": {
    },
  • "pagination": {
    },
  • "filters": [
    ]
}

Response samples

Content type
application/json
{
  • "sessionToken": "string",
  • "status": "RESULT_STATUS_UNSPECIFIED",
  • "content": {
    }
}