Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions api_calls/reference/host_reviews/create-draft-request.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"host_reviews": [
{
"comment": "It was awesome!",
"expires_at": "2021-06-07T12:00:00Z",
"source_id": 1,
"shareable": false
}
]
}
29 changes: 29 additions & 0 deletions api_calls/reference/host_reviews/create-submitted-request.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"host_reviews": [
{
"comment": "Awesome guest",
"submitted_at": "2020-06-06T12:00:00Z",
"expires_at": "2020-06-07T12:00:00Z",
"is_guest_recommended": true,
"shareable": false,
"comment": "It was awesome!",
"source_id": 1,
"criteria": {
"cleanliness": {
"rating": "4.5",
"comment": null
},
"communication": {
"rating": "5.0",
"comment": null
},
"respect_house_rules": {
"rating": "5.0",
"comment": "Everything great!"
}
}
}
]
}


Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"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": "2021-06-07T12:00:00Z",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"expires_at": "2021-06-07T12:00:00Z",
"expires_at": "2021-06-07T12:00:00Z",
"dismissed_at": null

"created_at": "CREATED_AT",
"updated_at": "UPDATED_AT"
}
],
"meta": {}
}
34 changes: 34 additions & 0 deletions api_calls/reference/host_reviews/public-scope-response.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"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",
"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,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"is_guest_recommended": true,
"is_guest_recommended": true,
"dismissed_at": null

"expires_at": "2021-06-07T12:00:00Z",
"created_at": "CREATED_AT",
"updated_at": "UPDATED_AT"
}
],
"meta": {}
}
35 changes: 35 additions & 0 deletions api_calls/reference/host_reviews/reviews_write-scope-response.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"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": "2021-06-07T12:00:00Z",
"created_at": "CREATED_AT",
"updated_at": "UPDATED_AT"
}
],
"meta": {}
}
27 changes: 27 additions & 0 deletions api_calls/reference/host_reviews/submit-draft-request.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"host_reviews": [
{
"comment": "Awesome guest",
"submitted_at": "2020-06-06T12:00:00Z",
"expires_at": "2020-06-07T12:00:00Z",
"is_guest_recommended": true,
"comment": "It was awesome!",
"criteria": {
"cleanliness": {
"rating": "4.5",
"comment": null
},
"communication": {
"rating": "5.0",
"comment": null
},
"respect_house_rules": {
"rating": "5.0",
"comment": "Everything great!"
}
}
}
]
}


Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"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": "2020-06-06T12:00:00Z",
"is_guest_recommended": true,
"expires_at": "2021-06-07T12:00:00Z",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"expires_at": "2021-06-07T12:00:00Z",
"expires_at": "2021-06-07T12:00:00Z",
"dismissed_at": null

"created_at": "CREATED_AT",
"updated_at": "UPDATED_AT"
}
],
"meta": {}
}
9 changes: 9 additions & 0 deletions api_calls/reference/host_reviews/update-draft-request.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"host_reviews": [
{
"comment": "It was awesome!"
}
]
}


7 changes: 7 additions & 0 deletions api_calls/reference/review_replies/create-request.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"review_replies": [
{
"message": "Merci!"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"links": {
"review_replies.booking": "https://www.bookingsync.com/api/v3/bookings/{review_replies.booking}",
"review_replies.host_review": "https://www.bookingsync.com/api/v3/rentals/{review_replies.host_review}",
"review_replies.review": "https://www.bookingsync.com/api/v3/rentals/{review_replies.review}",
"review_replies.account": "https://www.bookingsync.com/api/v3/rentals/{review_replies.account}"
},
"review_replies": [
{
"links": {
"host_review": "96f9e3f1-ed2a-4c8c-8e2f-1d3e1d0c8356",
"review": null,
"booking": 4,
"account": 1
},
"id": "c7bd77d3-0c74-4da8-8a64-5461f80ff81b",
"reply": "Merci!",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"reply": "Merci!",
"message": "Merci!",

"replied_at": "CREATED_AT",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"replied_at": "CREATED_AT",
"submitted_at": "CREATED_AT",

"created_at": "CREATED_AT",
"updated_at": "UPDATED_AT"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"links": {
"review_replies.booking": "https://www.bookingsync.com/api/v3/bookings/{review_replies.booking}",
"review_replies.host_review": "https://www.bookingsync.com/api/v3/rentals/{review_replies.host_review}",
"review_replies.review": "https://www.bookingsync.com/api/v3/rentals/{review_replies.review}",
"review_replies.account": "https://www.bookingsync.com/api/v3/rentals/{review_replies.account}"
},
"review_replies": [
{
"links": {
"host_review": null,
"review": 14,
"booking": 4,
"account": 1
},
"id": "c7bd77d3-0c74-4da8-8a64-5461f80ff81b",
"reply": "Merci!",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"reply": "Merci!",
"message": "Merci!",

"replied_at": "CREATED_AT",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"replied_at": "CREATED_AT",
"submitted_at": "CREATED_AT",

"created_at": "CREATED_AT",
"updated_at": "UPDATED_AT"
}
]
}
23 changes: 20 additions & 3 deletions api_calls/reference/reviews/create-request.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,26 @@
{
"reviews": [
{
"comment": "It was awesome!",
"rating": 5,
"title": "Awesome"
"comment": "Amazing stay",
"private_comment": "I left my glasses",
"submitted_at": "2020-06-06T12:00:00Z",
"rating": 4.6,
"shareable": false,
"source_id": 1,
"criteria": {
"cleanliness": {
"rating": "4.5",
"comment": null
},
"communication": {
"rating": "5.0",
"comment": null
},
"value_for_money": {
"rating": "4.0",
"comment": "A bit too expansive"
}
}
}
]
}
Original file line number Diff line number Diff line change
@@ -1,22 +1,51 @@
{
"links": {
"reviews.source": "https://www.bookingsync.com/api/v3/sources/{reviews.source}",
"reviews.reply": "https://www.bookingsync.com/api/v3/review_replies/{reviews.reply}",
"reviews.booking": "https://www.bookingsync.com/api/v3/bookings/{reviews.booking}",
"reviews.rental": "https://www.bookingsync.com/api/v3/rentals/{reviews.rental}"
"reviews.rental": "https://www.bookingsync.com/api/v3/rentals/{reviews.rental}",
"reviews.account": "https://www.bookingsync.com/api/v3/accounts/{reviews.account}"
},
"reviews": [
{
"links": {
"rental": 87,
"booking": 4
"account": 11375,
"booking": 15447834,
"rental": 115170,
"reply": null,
"source": 1
},
"id": 1,
"id": 4211675,
"rating": 5,
"comment": "It was awesome!",
"name": "John S.",
"title": "Awesome",
"country_code": "FR",
"comment": "Amazing stay",
"name": null,
"title": "Amazing stay",
"country_code": null,
"created_at": "CREATED_AT",
"updated_at": "UPDATED_AT"
"updated_at": "UPDATED_AT",
"rating_accurate": "4.6",
"shareable": false,
"private_comment": "I left my glasses",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"private_comment": "I left my glasses",
"private_comment": "I left my glasses",
"dismissed_at": null

"criteria": {
"cleanliness": {
"rating": "4.5",
"comment": null
},
"checkin": null,
"communication": {
"rating": "5.0",
"comment": null
},
"location": null,
"facilities": null,
"comfort": null,
"staff": null,
"value_for_money": {
"rating": "4.0",
"comment": "A bit too expansive"
},
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
},
},
"property_condition": null,
"eco_friendliness": null,

"accuracy": null
}
}
]
}
Loading