Host Reviews
Overview
This resource represents hosts' Reviews for the guest for a given Booking. Host reviews allow hosts to rate and comment on guests after their stay.
States
A Host Review can be in one of two states:
- Draft – either an empty shell or a partially-filled review with minimal validation. It can be modified any number of times and is identified by a
null
submitted_at
value. - Submitted – the final, immutable version of the review, identified by a non-null
submitted_at
value.
Restrictions
- A Booking can have only one Host Review and it must share the same
source
as the Booking. - Each Host Review can have at most one Review Reply.
Parameters
- OAuth Scopes:
- public
- reviews_write
Name | Type | Read/Write | Description |
---|---|---|---|
account | Integer | Read | Account's ID related to the Host Review |
rental | Integer | Read | Rental's ID related to the Host Review |
source | Integer | Read | Source's ID related to the Host Review |
reply | UUID | Read | Reply's (ReviewReply)'s ID related to the Host Review |
booking | Integer | Read | Booking's ID related to the Host Review |
id | UUID | Read | Host Review's ID. |
comment | Text | Read | Host Review's comment. |
private_comment | Text | Read | Private comment from the host (not meant to be exposed publicly). |
shareable | Boolean | Read | Whether Host Review is permitted for public use. |
is_guest_recommended | Boolean | Read | Whether the host recommends guest. |
criteria | Object | Read | Guest ratings in specific criteria. |
criteria.cleanliness | Object | Read | Details of given criterion. |
criteria.cleanliness.rating | Decimal | Read | Rating of guests' cleanliness |
criteria.cleanliness.comment | Text | Read | Comment on guests' cleanliness |
criteria.communication | Object | Read | Details of given criterion. |
criteria.communication.rating | Decimal | Read | Rating of guests' communication |
criteria.communication.comment | Text | Read | Comment on guests' communication |
criteria.respect_house_rules | Object | Read | Details of given criterion. |
criteria.respect_house_rules.rating | Decimal | Read | Rating of guests' respect of house rules |
criteria.respect_house_rules.comment | Text | Read | Comment on guests' respect of house rules |
created_at | Time | Read | Host Review's create time. |
updated_at | Time | Read | Host Review's update time. |
submitted_at | Time | Read | Host Review's submission time. Once filled, no further updates are possible for given object. |
expires_at | Time | Read | Host Review's expiry time. Once that time is passed, submission will no longer be possible. |
dismissed_by | String | Read | Whom the Host Review was dismissed by |
dismissal_reason | String | Read | The Reason why the Host Review was dismissed |
dismissed_at | Time | Read | When the Host Review was dismissed |
Name | Type | Read/Write | Description | Constraints |
---|---|---|---|---|
account | Integer | Read | Account's ID related to the Host Review | |
rental | Integer | Read | Rental's ID related to the Host Review | |
source | Integer | Read | Source's ID related to the Host Review | |
reply | UUID | Read | Reply's (ReviewReply)'s ID related to the Host Review | |
booking | Integer | Read | Booking's ID related to the Host Review | |
id | UUID | Read | Host Review's ID. | |
host_review_id | UUID | Write | Host Review's ID for dismiss action | Required for dismiss action only |
source_id | Integer | Write | Source's ID related to the Host Review | Required for creation, cannot be modified afterwards |
comment | Text | Read/Write | Host Review's comment. | Required for submission, optional for draft |
private_comment | Text | Read/Write | Private comment from the host (not meant to be exposed publicly). | |
shareable | Boolean | Read/Write | Whether Host Review is permitted for public use. | Required for creation, cannot be modified afterwards |
is_guest_recommended | Boolean | Read/Write | Whether the host recommends guest. | Required for submission, optional for draft |
criteria | Object | Read/Write | Guest ratings in specific criteria. | Required for submission, optional for draft |
criteria.cleanliness | Object | Read/Write | Details of given criterion. | Required for submission, optional for draft |
criteria.cleanliness.rating | Decimal | Read/Write | Rating of guests' cleanliness | Required only when sending parent node, must be between 1 and 5 |
criteria.cleanliness.comment | Text | Read/Write | Comment on guests' cleanliness | |
criteria.communication | Object | Read/Write | Details of given criterion. | Required for submission, optional for draft |
criteria.communication.rating | Decimal | Read/Write | Rating of guests' communication | Required only when sending parent node, must be between 1 and 5 |
criteria.communication.comment | Text | Read/Write | Comment on guests' communication | |
criteria.respect_house_rules | Object | Read/Write | Details of given criterion. | Required for submission, optional for draft |
criteria.respect_house_rules.rating | Decimal | Read/Write | Rating of guests' respect of house rules | Required only when sending parent node, must be between 1 and 5 |
criteria.respect_house_rules.comment | Text | Read/Write | Comment on guests' respect of house rules | |
created_at | Time | Read | Host Review's create time. | |
updated_at | Time | Read | Host Review's update time. | |
submitted_at | Time | Read/Write | Host Review's submission time. | Required for submission, defaults to current timestamp |
expires_at | Time | Read/Write | Host Review's expiry time. Once that time is passed, submission will no longer be possible. | |
dismissed_by | String | Read | Whom the Host Review was dismissed by | |
dismissal_reason | String | Read | The Reason why the Host Review was dismissed | |
dismissed_at | Time | Read | When the Host Review was dismissed |
List host reviews
List all host reviews (from host to guest) for a given account(s).
GET /host_reviews
- OAuth Scopes:
- public
- reviews_write
{
"links": {
"host_reviews.source": "https://www.bookingsync.com/api/v3/sources/{host_reviews.source}",
"host_reviews.booking": "https://www.bookingsync.com/api/v3/bookings/{host_reviews.booking}",
"host_reviews.rental": "https://www.bookingsync.com/api/v3/rentals/{host_reviews.rental}",
"host_reviews.account": "https://www.bookingsync.com/api/v3/accounts/{host_reviews.account}",
"host_reviews.reply": "https://www.bookingsync.com/api/v3/review_replies/{host_reviews.reply}"
},
"host_reviews": [
{
"links": {
"account": 111,
"booking": 222,
"rental": 333,
"reply": null,
"source": 444
},
"id": "555-6666-7777-8888-999999999999",
"comment": "Great guests! They were very respectful of the property and left everything clean and tidy.",
"private_comment": null,
"shareable": true,
"is_guest_recommended": true,
"criteria": {
"cleanliness": {
"rating": "5.0",
"comment": "Left the property in excellent condition"
},
"communication": {
"rating": "4.5",
"comment": "Good communication throughout the stay"
},
"respect_house_rules": {
"rating": "5.0",
"comment": "Followed all house rules perfectly"
}
},
"submitted_at": "2023-12-01T11:00:00Z",
"expires_at": "2023-12-15T23:59:59Z",
"created_at": "2023-12-01T11:00:00Z",
"updated_at": "2023-12-01T11:00:00Z",
"dismissed_at": null,
"dismissed_by": null,
"dismissal_reason": null
}
],
"meta": {}
}
{
"links": {
"host_reviews.source": "https://www.bookingsync.com/api/v3/sources/{host_reviews.source}",
"host_reviews.booking": "https://www.bookingsync.com/api/v3/bookings/{host_reviews.booking}",
"host_reviews.rental": "https://www.bookingsync.com/api/v3/rentals/{host_reviews.rental}",
"host_reviews.account": "https://www.bookingsync.com/api/v3/accounts/{host_reviews.account}",
"host_reviews.reply": "https://www.bookingsync.com/api/v3/review_replies/{host_reviews.reply}"
},
"host_reviews": [
{
"links": {
"account": 1,
"booking": 96,
"rental": 1,
"reply": null,
"source": 1
},
"id": "04356dc9-1349-4e05-b818-09ccdac8d5dd",
"comment": "Awesome\n place",
"private_comment": null,
"shareable": true,
"criteria": {
"cleanliness": {
"rating": "4.5",
"comment": null
},
"communication": null,
"respect_house_rules": {
"rating": "5.0",
"comment": "Everything great!"
}
},
"submitted_at": null,
"is_guest_recommended": true,
"expires_at": "2023-12-15T23:59:59Z",
"created_at": "2023-12-01T11:00:00Z",
"updated_at": "2023-12-01T11:00:00Z",
"dismissed_at": null,
"dismissed_by": null,
"dismissal_reason": null
}
],
"meta": {}
}
Get a single host review
Returns a single host review identified by ID.
GET /host_reviews/:host_review_id
- OAuth Scopes:
- public
- reviews_write
{
"links": {
"host_reviews.source": "https://www.bookingsync.com/api/v3/sources/{host_reviews.source}",
"host_reviews.booking": "https://www.bookingsync.com/api/v3/bookings/{host_reviews.booking}",
"host_reviews.rental": "https://www.bookingsync.com/api/v3/rentals/{host_reviews.rental}",
"host_reviews.account": "https://www.bookingsync.com/api/v3/accounts/{host_reviews.account}",
"host_reviews.reply": "https://www.bookingsync.com/api/v3/review_replies/{host_reviews.reply}"
},
"host_reviews": [
{
"links": {
"account": 111,
"booking": 222,
"rental": 333,
"reply": null,
"source": 444
},
"id": "555-6666-7777-8888-999999999999",
"comment": "Great guests! They were very respectful of the property and left everything clean and tidy.",
"private_comment": null,
"shareable": true,
"is_guest_recommended": true,
"criteria": {
"cleanliness": {
"rating": "5.0",
"comment": "Left the property in excellent condition"
},
"communication": {
"rating": "4.5",
"comment": "Good communication throughout the stay"
},
"respect_house_rules": {
"rating": "5.0",
"comment": "Followed all house rules perfectly"
}
},
"submitted_at": "2023-12-01T11:00:00Z",
"expires_at": "2023-12-15T23:59:59Z",
"created_at": "2023-12-01T11:00:00Z",
"updated_at": "2023-12-01T11:00:00Z",
"dismissed_at": null,
"dismissed_by": null,
"dismissal_reason": null
}
],
"meta": {}
}
{
"links": {
"host_reviews.source": "https://www.bookingsync.com/api/v3/sources/{host_reviews.source}",
"host_reviews.booking": "https://www.bookingsync.com/api/v3/bookings/{host_reviews.booking}",
"host_reviews.rental": "https://www.bookingsync.com/api/v3/rentals/{host_reviews.rental}",
"host_reviews.account": "https://www.bookingsync.com/api/v3/accounts/{host_reviews.account}",
"host_reviews.reply": "https://www.bookingsync.com/api/v3/review_replies/{host_reviews.reply}"
},
"host_reviews": [
{
"links": {
"account": 1,
"booking": 96,
"rental": 1,
"reply": null,
"source": 1
},
"id": "04356dc9-1349-4e05-b818-09ccdac8d5dd",
"comment": "Awesome\n place",
"private_comment": null,
"shareable": true,
"criteria": {
"cleanliness": {
"rating": "4.5",
"comment": null
},
"communication": null,
"respect_house_rules": {
"rating": "5.0",
"comment": "Everything great!"
}
},
"submitted_at": null,
"is_guest_recommended": true,
"expires_at": "2023-12-15T23:59:59Z",
"created_at": "2023-12-01T11:00:00Z",
"updated_at": "2023-12-01T11:00:00Z",
"dismissed_at": null,
"dismissed_by": null,
"dismissal_reason": null
}
],
"meta": {}
}
Create a new host review
Create submitted host review
Creates a submitted host review for given booking.
Such a host review will be no longer editable and requires all data to be filled (comment
, shareable
, is_guest_recommended
, source_id
, submitted_at
, all criteria
with at least rating
).
POST /bookings/:booking_id/host_reviews
- OAuth Scopes:
- reviews_write
{
"host_reviews": [
{
"comment": "Great guests! They were very respectful of the property and left everything clean and tidy.",
"private_comment": "Would definitely welcome them back again.",
"submitted_at": "2023-12-01T11:00:00Z",
"expires_at": "2023-12-15T23:59:59Z",
"is_guest_recommended": true,
"shareable": true,
"source_id": 111,
"criteria": {
"cleanliness": {
"rating": "5.0",
"comment": "Left the property in excellent condition"
},
"communication": {
"rating": "4.5",
"comment": "Good communication throughout the stay"
},
"respect_house_rules": {
"rating": "5.0",
"comment": "Followed all house rules perfectly"
}
}
}
]
}
{
"links": {
"host_reviews.source": "https://www.bookingsync.com/api/v3/sources/{host_reviews.source}",
"host_reviews.booking": "https://www.bookingsync.com/api/v3/bookings/{host_reviews.booking}",
"host_reviews.rental": "https://www.bookingsync.com/api/v3/rentals/{host_reviews.rental}",
"host_reviews.account": "https://www.bookingsync.com/api/v3/accounts/{host_reviews.account}",
"host_reviews.reply": "https://www.bookingsync.com/api/v3/review_replies/{host_reviews.reply}"
},
"host_reviews": [
{
"links": {
"account": 1,
"booking": 96,
"rental": 1,
"reply": null,
"source": 1
},
"id": "04356dc9-1349-4e05-b818-09ccdac8d5dd",
"comment": "It was awesome!",
"private_comment": null,
"shareable": false,
"criteria": {
"cleanliness": {
"rating": "4.5",
"comment": null
},
"communication": {
"rating": "5.0",
"comment": null
},
"respect_house_rules": {
"rating": "5.0",
"comment": "Everything great!"
}
},
"submitted_at": "2023-12-01T11:00:00Z",
"is_guest_recommended": true,
"expires_at": "2023-12-15T23:59:59Z",
"created_at": "2023-12-01T11:00:00Z",
"updated_at": "2023-12-01T11:00:00Z",
"dismissed_at": null,
"dismissed_by": null,
"dismissal_reason": null
}
],
"meta": {}
}
Create draft host review
Creates a draft host review for given booking.
Such a host review will be editable until submitted, it requires bare minimum for a successful creation (shareable
, source_id
)
POST /bookings/:booking_id/host_reviews/draft
- OAuth Scopes:
- reviews_write
{
"host_reviews": [
{
"comment": "It was awesome!",
"expires_at": "2023-12-15T23:59:59Z",
"source_id": 1,
"shareable": false
}
]
}
{
"links": {
"host_reviews.source": "https://www.bookingsync.com/api/v3/sources/{host_reviews.source}",
"host_reviews.booking": "https://www.bookingsync.com/api/v3/bookings/{host_reviews.booking}",
"host_reviews.rental": "https://www.bookingsync.com/api/v3/rentals/{host_reviews.rental}",
"host_reviews.account": "https://www.bookingsync.com/api/v3/accounts/{host_reviews.account}",
"host_reviews.reply": "https://www.bookingsync.com/api/v3/review_replies/{host_reviews.reply}"
},
"host_reviews": [
{
"links": {
"account": 1,
"booking": 96,
"rental": 1,
"reply": null,
"source": 1
},
"id": "04356dc9-1349-4e05-b818-09ccdac8d5dd",
"comment": "It was awesome!",
"private_comment": null,
"shareable": false,
"criteria": {
"cleanliness": null,
"communication": null,
"respect_house_rules": null
},
"submitted_at": null,
"is_guest_recommended": null,
"expires_at": "2023-12-15T23:59:59Z",
"created_at": "2023-12-01T11:00:00Z",
"updated_at": "2023-12-01T11:00:00Z",
"dismissed_at": null,
"dismissed_by": null,
"dismissal_reason": null
}
],
"meta": {}
}
Edit draft review
Submit draft host review
Submits host review making it final and no longer editable. Apart from shareable
and source_id
which can be set only during creation, all other attibutes (comment
, is_guest_recommended
, submitted_at
, all criteria
with at least rating
) are required.
PUT /host_reviews/draft/:host_review_id/submit
- OAuth Scopes:
- reviews_write
{
"host_reviews": [
{
"comment": "It was awesome!",
"submitted_at": "2023-12-01T11:00:00Z",
"expires_at": "2023-12-15T23:59:59Z",
"is_guest_recommended": true,
"criteria": {
"cleanliness": {
"rating": "4.5",
"comment": null
},
"communication": {
"rating": "5.0",
"comment": null
},
"respect_house_rules": {
"rating": "5.0",
"comment": "Everything great!"
}
}
}
]
}
{
"links": {
"host_reviews.source": "https://www.bookingsync.com/api/v3/sources/{host_reviews.source}",
"host_reviews.booking": "https://www.bookingsync.com/api/v3/bookings/{host_reviews.booking}",
"host_reviews.rental": "https://www.bookingsync.com/api/v3/rentals/{host_reviews.rental}",
"host_reviews.account": "https://www.bookingsync.com/api/v3/accounts/{host_reviews.account}",
"host_reviews.reply": "https://www.bookingsync.com/api/v3/review_replies/{host_reviews.reply}"
},
"host_reviews": [
{
"links": {
"account": 1,
"booking": 96,
"rental": 1,
"reply": null,
"source": 1
},
"id": "04356dc9-1349-4e05-b818-09ccdac8d5dd",
"comment": "It was awesome!",
"private_comment": null,
"shareable": false,
"criteria": {
"cleanliness": {
"rating": "4.5",
"comment": null
},
"communication": {
"rating": "5.0",
"comment": null
},
"respect_house_rules": {
"rating": "5.0",
"comment": "Everything great!"
}
},
"submitted_at": "2023-12-01T11:00:00Z",
"is_guest_recommended": true,
"expires_at": "2023-12-15T23:59:59Z",
"created_at": "2023-12-01T11:00:00Z",
"updated_at": "2023-12-01T11:00:00Z",
"dismissed_at": null,
"dismissed_by": null,
"dismissal_reason": null
}
],
"meta": {}
}
Modify draft host review without submitting
Updates host review attributes without submitting it, thus allowing for further editions. Apart from shareable
and source_id
which can be set only during creation, all other attibutes are optional.
PUT /host_reviews/draft/:host_review_id
- OAuth Scopes:
- reviews_write
{
"host_reviews": [
{
"comment": "It was awesome!"
}
]
}
{
"links": {
"host_reviews.source": "https://www.bookingsync.com/api/v3/sources/{host_reviews.source}",
"host_reviews.booking": "https://www.bookingsync.com/api/v3/bookings/{host_reviews.booking}",
"host_reviews.rental": "https://www.bookingsync.com/api/v3/rentals/{host_reviews.rental}",
"host_reviews.account": "https://www.bookingsync.com/api/v3/accounts/{host_reviews.account}",
"host_reviews.reply": "https://www.bookingsync.com/api/v3/review_replies/{host_reviews.reply}"
},
"host_reviews": [
{
"links": {
"account": 1,
"booking": 96,
"rental": 1,
"reply": null,
"source": 1
},
"id": "04356dc9-1349-4e05-b818-09ccdac8d5dd",
"comment": "It was awesome!",
"private_comment": null,
"shareable": false,
"criteria": {
"cleanliness": null,
"communication": null,
"respect_house_rules": null
},
"submitted_at": null,
"is_guest_recommended": null,
"expires_at": "2023-12-15T23:59:59Z",
"created_at": "2023-12-01T11:00:00Z",
"updated_at": "2023-12-01T11:00:00Z",
"dismissed_at": null,
"dismissed_by": null,
"dismissal_reason": null
}
],
"meta": {}
}