Respond to Review
const url = 'https://api.wink.travel/api/managing-entity/hotel-1/extranet/review/review-1/response';const options = { method: 'PATCH', headers: {'Wink-Version': '2.0', '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/hotel-1/extranet/review/review-1/response \ --header 'Content-Type: application/json' \ --header 'Wink-Version: 2.0' \ --data nullRespond to a unique review for a hotel identified by its identifier
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Respond to review given hotel with this identifier
Example
hotel-1Respond to review with this identifier
Example
review-1Header Parameters
Section titled “Header Parameters ”Request Body required
Section titled “Request Body required ”Property response to review.
object
Texual response from hotel to user’s review.
Example
Thank you for coming. Lovely to hear you enjoyed your stay.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 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.
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
{}