Show Reviews
const url = 'https://api.wink.travel/api/managing-entity/hotel-1/extranet/review/grid';const options = { method: 'POST', headers: {'Wink-Version': '2.0', 'Content-Type': 'application/json'}, body: '{"skip":0,"take":30,"sort":"","filter":"","group":""}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.wink.travel/api/managing-entity/hotel-1/extranet/review/grid \ --header 'Content-Type: application/json' \ --header 'Wink-Version: 2.0' \ --data '{ "skip": 0, "take": 30, "sort": "", "filter": "", "group": "" }'Retrieve a paginated list of reviews for specified property
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Show reviews for hotel with this identifier
Example
hotel-1Header Parameters
Section titled “Header Parameters ”Request Body required
Section titled “Request Body required ”object
Number of records to be skipped by the pager.
Example
0Number of records to take.
Example
10Descriptors used for sorting result set.
object
Descriptors used for sorting result set
Example
ascData set field to sort on
Example
hotel.nameDescriptors used for filtering result set
object
Whether to filter inclusively or exclusively
Example
andDescriptors used for filtering the result set
object
Field name to filter on
Example
hotel.nameFilter operator to use on field
Example
startsWithValue to filter dataset against
Example
Happy ResMake filter comparison case insensitive. Default: Case sensitive
Example
trueDescriptors to group result sets by.
object
Field to group data set on
Example
createdDateGroup sort direction
Example
ascPrimitive aggregate data points
object
Field to run aggregate function on
Example
hotel.bookingsAggregate function
Example
countResponses
Section titled “ Responses ”OK
object
object
Document UUID
Datetime this record was first created
Datetime this record was last updated
Version property that shows how many times this document has been persisted. Document will not persist if the version property is less than current version property in the system. Result in an optimistic locking exception.
Booking identifier identifier booking this review is associated with.
Hotel identifier this booking is associated with.
User details of creator of booking.
object
User identifier
First name
Last name
Telephone
Full name
Date of review.
Total points divided by number of questions.
List of user review answers.
object
Question identifier
Question category
Sort key
Value
Private message from guest to the hotel. Is not displayed on property profile.
Property can response to traveler review. Response goes on public review profile and can be seen by others.
Reviewer can upload her best picture from the property. Cloudinary image identifier.
Free text record created by traveler
Hotel allows the review text to be displayed as part of their profile.
Hotel allows the user-generated image to be displayed as part of their profile.
List of member identifiers who liked the textual review
Guest’s room number during their stay.
Guest’s room rating
Returns true if property has responded to the review given by the guest.
object
object
object
Example
{ "content": [ { "id": "", "createdDate": "", "lastUpdate": "", "version": "", "bookingIdentifier": "", "hotelIdentifier": "", "user": "", "reviewDate": "", "averageScore": "", "answers": [ "" ], "messageFromGuest": "", "responseFromHotel": "", "imageIdentifier": "", "text": "", "approvedText": false, "approvedImage": false, "likes": [ "" ], "roomNumber": "", "roomRating": "", "responded": false } ]}Bad Request
object
object
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "instance": "https://example.com", "properties": { "additionalProperty": "example" }}object
object
object
object
object
object
object
object
Unauthorized
object
object
Forbidden
object
object
Internal Server Error
object
Example generated
{}