Respond to review
const url = 'https://api.wink.travel/api/managing-entity/e2c7b4d3-1a8f-4e9c-b5d6-3a9f0e7c2b18/extranet/review/4d7c2a6b-9e3f-4b1a-8d0c-7f5e1a9b3c62/response';const options = { method: 'PATCH', headers: { 'Wink-Version': '2.0', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: 'null'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.wink.travel/api/managing-entity/e2c7b4d3-1a8f-4e9c-b5d6-3a9f0e7c2b18/extranet/review/4d7c2a6b-9e3f-4b1a-8d0c-7f5e1a9b3c62/response \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'Wink-Version: 2.0' \ --data nullLets a hotelier post a public reply to a guest review for the given managing entity, attributing the response to the authenticated user.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Respond to review given property with this identifier
Example
e2c7b4d3-1a8f-4e9c-b5d6-3a9f0e7c2b18Respond to review with this identifier
Example
4d7c2a6b-9e3f-4b1a-8d0c-7f5e1a9b3c62Header Parameters
Section titled “Header Parameters ”Request Body required
Section titled “Request Body required ”Property response to review.
object
Textual response from hotel to guest’s review.
Example
Thank you so much for taking the time to share such wonderful feedback about your stay at The Siam Residences. We're delighted that you and your husband had such a memorable experience. We look forward to welcoming you back soon!Property approves the use of guest review text with property profile.
Example
trueProperty approves the use of guest-generated image with property profile.
Example
trueResponses
Section titled “ Responses ”OK
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 this review is associated with.
Property (hotel) identifier this review is for.
Guest who submitted the review.
object
User identifier
Guest’s first name.
Guest’s last name.
Guest’s email address.
Guest’s phone number.
Guest’s full name.
Date and time the review was submitted.
Average rating across all question answers (0-10 scale).
Guest’s answers to each review question with their scores.
object
Review question identifier that this answer responds to.
Category of the question (e.g., COMFORT, SERVICE, VALUE).
Display order of this answer within the review.
Guest’s numeric rating for this question on a 0-10 scale.
Private feedback message from guest to hotel manager. Not publicly displayed.
Hotel’s public response to the guest review.
Cloudinary image identifier for guest’s photo from their stay.
Guest’s written review text.
Hotel has approved this review text for public display on their profile.
Hotel has approved the guest’s photo for public display on their profile.
User identifiers who ‘liked’ this review.
Guest’s room number during their stay.
Guest’s personal rating of their room on a 0-10 scale.
Hotel has submitted a response to this review.
Example
{ "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
{}