The request body for Hotels Reviews Request method
hotelId | string (Hotel ID) ID of the hotel to retrieve reviews for |
locale | string (Locale) Locale that the results are returned in. e.g. |
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. | |
sort | string (Sorting type) Default: "SORT_ORDER_TYPE_UNSPECIFIED" Enum: "SORT_ORDER_TYPE_UNSPECIFIED" "SORT_ORDER_TYPE_RECOMMENDED" "SORT_ORDER_TYPE_RATING_DESC" "SORT_ORDER_TYPE_RATING_ASCENDING" "SORT_ORDER_TYPE_MOST_RECENT"
|
Array of objects (Filters) Filters to be applied on the query. Reviews not matching an applied filter are excluded. A maximum of 1 of each filter type can be specified. |
{- "hotelId": "string",
- "locale": "string",
- "pagination": {
- "offset": 0,
- "limit": 0
}, - "sort": "SORT_ORDER_TYPE_UNSPECIFIED",
- "filters": [
- {
- "guestTypeFilter": {
- "value": "GUEST_TYPE_UNSPECIFIED"
}, - "localeFilter": {
- "value": "string"
}, - "travellerRatingFilter": {
- "value": "TRAVELLER_RATING_UNSPECIFIED"
}, - "tagFilter": {
- "value": "TAG_FILTER_UNSPECIFIED"
}
}
]
}
{- "availableReviewCount": 0,
- "reviews": [
- {
- "agentId": "string",
- "content": "string",
- "locale": "string",
- "guestType": "GUEST_TYPE_UNSPECIFIED",
- "rating": 0.1,
- "reviewDate": {
- "year": 0,
- "month": 0,
- "day": 0
}, - "hotelReply": {
- "content": "string",
- "date": {
- "year": 0,
- "month": 0,
- "day": 0
}, - "locale": "string"
}, - "checkinDate": {
- "year": 0,
- "month": 0,
- "day": 0
}, - "logoUrl": "string",
- "translationType": "TRANSLATION_TYPE_UNSPECIFIED",
- "title": "string",
- "countryCode": "string",
- "countryName": "string",
- "agentUrl": "string",
- "additionalReview": {
- "content": "string",
- "date": {
- "year": 0,
- "month": 0,
- "day": 0
}, - "locale": "string"
}
}
]
}