Response
Return a 200 status to indicate that the event was properly received
{
"type": "review_created",
"payload": {
"review": {
"key": "<string>",
"org_id": 42,
"id": 34,
"business_id": "5409c35a97bbc544d8e26737",
"partner": "google_my_business",
"partner_id": "accounts/114063712393225091258/locations/74805271119400652054",
"author_name": "Castorche",
"date": "2017-07-01T16:10:23.156000+02:00",
"update_date": "2017-08-01T19:15:54.256000+02:00",
"delete_date": "<string>",
"rating": 3,
"recommended": true,
"title": "<string>",
"content": "Magasin un peu vieillot , mais personnel très sympathique, nombreuses références en rayons , un très bon choix côté vin...",
"state": "treated",
"link": "<string>",
"comments": {
"id": 82938,
"partner_id": "accounts/114063712393225091258/locations/74805271119400652054",
"created": "2019-08-01T19:15:54.256000+02:00",
"author_name": "Castorche",
"content": "Merci ❤️",
"date": "2017-08-01T19:15:54.256000+02:00",
"update_date": "2017-08-01T19:15:54.256000+02:00",
"can_edit": true,
"review_id": 34,
"parent_id": 123,
"user_id": "123456789abcdef2f60c42ff",
"is_reply_suggestion": true,
"replies": [
{}
]
},
"tags": [
{
"id": 25,
"label": "food",
"color": "#808080"
}
]
}
}
}
This event is triggered when a business receives a new review.
The event payload contains the event type and the review contents.
{
"type": "review_created",
"payload": {
"review": {
"key": "<string>",
"org_id": 42,
"id": 34,
"business_id": "5409c35a97bbc544d8e26737",
"partner": "google_my_business",
"partner_id": "accounts/114063712393225091258/locations/74805271119400652054",
"author_name": "Castorche",
"date": "2017-07-01T16:10:23.156000+02:00",
"update_date": "2017-08-01T19:15:54.256000+02:00",
"delete_date": "<string>",
"rating": 3,
"recommended": true,
"title": "<string>",
"content": "Magasin un peu vieillot , mais personnel très sympathique, nombreuses références en rayons , un très bon choix côté vin...",
"state": "treated",
"link": "<string>",
"comments": {
"id": 82938,
"partner_id": "accounts/114063712393225091258/locations/74805271119400652054",
"created": "2019-08-01T19:15:54.256000+02:00",
"author_name": "Castorche",
"content": "Merci ❤️",
"date": "2017-08-01T19:15:54.256000+02:00",
"update_date": "2017-08-01T19:15:54.256000+02:00",
"can_edit": true,
"review_id": 34,
"parent_id": 123,
"user_id": "123456789abcdef2f60c42ff",
"is_reply_suggestion": true,
"replies": [
{}
]
},
"tags": [
{
"id": 25,
"label": "food",
"color": "#808080"
}
]
}
}
}
Return a 200 status to indicate that the event was properly received
Was this page helpful?