Submit Review
const url = 'https://api.wink.travel/api/booking/example/review';const options = { method: 'POST', headers: {'Wink-Version': '2.0', 'Content-Type': 'application/json'}, body: '{"answers":[""],"messageFromGuest":"","imageIdentifier":"","text":"","roomNumber":"","roomRating":""}'};
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/booking/example/review \ --header 'Content-Type: application/json' \ --header 'Wink-Version: 2.0' \ --data '{ "answers": [ "" ], "messageFromGuest": "", "imageIdentifier": "", "text": "", "roomNumber": "", "roomRating": "" }'Submit review for booking
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Header Parameters
Section titled “Header Parameters ”Request Body required
Section titled “Request Body required ”object
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.
Example
Dear GM, I would like to say thank you so much for taking the time to show my husband and I around the premises and the secret cave behind the property.Reviewer can upload her best picture from the property. Cloudinary image identifier.
Example
cloudinary-image-1Free text record created by traveler
Example
Our stay was amazing! Can recommend highly to all. Felt like home.Guest’s room number during their stay.
Example
501Guest’s room rating
Example
7Responses
Section titled “ Responses ”Created
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
{}