Google Review Automatic Event
curl --request POST \
--url https://{partner_host}/registered_url_for_google_review_events \
--header 'Content-Type: application/json' \
--data '
{
"event": "google_review.request",
"event_time": 1730189586,
"timestamp": 1730189586,
"client_id": "67978400352a61001d64e9fb",
"business_id": "174159057718553",
"data": {
"doctor_id": "174159057723920",
"google_review_link": "https://g.page/r/CRVNub8JgYWLEA0/review",
"patient_id": "174159057723925",
"appointment_id": "api-abb67007-1e53-4f0f-b428-a4bc025468a4",
"clinic_id": "67978400352a61001d64e9fb"
}
}
'import requests
url = "https://{partner_host}/registered_url_for_google_review_events"
payload = {
"event": "google_review.request",
"event_time": 1730189586,
"timestamp": 1730189586,
"client_id": "67978400352a61001d64e9fb",
"business_id": "174159057718553",
"data": {
"doctor_id": "174159057723920",
"google_review_link": "https://g.page/r/CRVNub8JgYWLEA0/review",
"patient_id": "174159057723925",
"appointment_id": "api-abb67007-1e53-4f0f-b428-a4bc025468a4",
"clinic_id": "67978400352a61001d64e9fb"
}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
event: 'google_review.request',
event_time: 1730189586,
timestamp: 1730189586,
client_id: '67978400352a61001d64e9fb',
business_id: '174159057718553',
data: {
doctor_id: '174159057723920',
google_review_link: 'https://g.page/r/CRVNub8JgYWLEA0/review',
patient_id: '174159057723925',
appointment_id: 'api-abb67007-1e53-4f0f-b428-a4bc025468a4',
clinic_id: '67978400352a61001d64e9fb'
}
})
};
fetch('https://{partner_host}/registered_url_for_google_review_events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.post("https://{partner_host}/registered_url_for_google_review_events")
.header("Content-Type", "application/json")
.body("{\n \"event\": \"google_review.request\",\n \"event_time\": 1730189586,\n \"timestamp\": 1730189586,\n \"client_id\": \"67978400352a61001d64e9fb\",\n \"business_id\": \"174159057718553\",\n \"data\": {\n \"doctor_id\": \"174159057723920\",\n \"google_review_link\": \"https://g.page/r/CRVNub8JgYWLEA0/review\",\n \"patient_id\": \"174159057723925\",\n \"appointment_id\": \"api-abb67007-1e53-4f0f-b428-a4bc025468a4\",\n \"clinic_id\": \"67978400352a61001d64e9fb\"\n }\n}")
.asString();using RestSharp;
var options = new RestClientOptions("https://{partner_host}/registered_url_for_google_review_events");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddJsonBody("{\n \"event\": \"google_review.request\",\n \"event_time\": 1730189586,\n \"timestamp\": 1730189586,\n \"client_id\": \"67978400352a61001d64e9fb\",\n \"business_id\": \"174159057718553\",\n \"data\": {\n \"doctor_id\": \"174159057723920\",\n \"google_review_link\": \"https://g.page/r/CRVNub8JgYWLEA0/review\",\n \"patient_id\": \"174159057723925\",\n \"appointment_id\": \"api-abb67007-1e53-4f0f-b428-a4bc025468a4\",\n \"clinic_id\": \"67978400352a61001d64e9fb\"\n }\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
require 'uri'
require 'net/http'
url = URI("https://{partner_host}/registered_url_for_google_review_events")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"event\": \"google_review.request\",\n \"event_time\": 1730189586,\n \"timestamp\": 1730189586,\n \"client_id\": \"67978400352a61001d64e9fb\",\n \"business_id\": \"174159057718553\",\n \"data\": {\n \"doctor_id\": \"174159057723920\",\n \"google_review_link\": \"https://g.page/r/CRVNub8JgYWLEA0/review\",\n \"patient_id\": \"174159057723925\",\n \"appointment_id\": \"api-abb67007-1e53-4f0f-b428-a4bc025468a4\",\n \"clinic_id\": \"67978400352a61001d64e9fb\"\n }\n}"
response = http.request(request)
puts response.read_bodyWebhooks
Google Review Automatic Event
When a prescription ends then automatically a webhook is sent to the registered endpoint containing the Doctor ID, Google review link, and Patient ID. The receiving system can use these details to update or manage Google review information as needed.
POST
/
registered_url_for_google_review_events
Google Review Automatic Event
curl --request POST \
--url https://{partner_host}/registered_url_for_google_review_events \
--header 'Content-Type: application/json' \
--data '
{
"event": "google_review.request",
"event_time": 1730189586,
"timestamp": 1730189586,
"client_id": "67978400352a61001d64e9fb",
"business_id": "174159057718553",
"data": {
"doctor_id": "174159057723920",
"google_review_link": "https://g.page/r/CRVNub8JgYWLEA0/review",
"patient_id": "174159057723925",
"appointment_id": "api-abb67007-1e53-4f0f-b428-a4bc025468a4",
"clinic_id": "67978400352a61001d64e9fb"
}
}
'import requests
url = "https://{partner_host}/registered_url_for_google_review_events"
payload = {
"event": "google_review.request",
"event_time": 1730189586,
"timestamp": 1730189586,
"client_id": "67978400352a61001d64e9fb",
"business_id": "174159057718553",
"data": {
"doctor_id": "174159057723920",
"google_review_link": "https://g.page/r/CRVNub8JgYWLEA0/review",
"patient_id": "174159057723925",
"appointment_id": "api-abb67007-1e53-4f0f-b428-a4bc025468a4",
"clinic_id": "67978400352a61001d64e9fb"
}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
event: 'google_review.request',
event_time: 1730189586,
timestamp: 1730189586,
client_id: '67978400352a61001d64e9fb',
business_id: '174159057718553',
data: {
doctor_id: '174159057723920',
google_review_link: 'https://g.page/r/CRVNub8JgYWLEA0/review',
patient_id: '174159057723925',
appointment_id: 'api-abb67007-1e53-4f0f-b428-a4bc025468a4',
clinic_id: '67978400352a61001d64e9fb'
}
})
};
fetch('https://{partner_host}/registered_url_for_google_review_events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.post("https://{partner_host}/registered_url_for_google_review_events")
.header("Content-Type", "application/json")
.body("{\n \"event\": \"google_review.request\",\n \"event_time\": 1730189586,\n \"timestamp\": 1730189586,\n \"client_id\": \"67978400352a61001d64e9fb\",\n \"business_id\": \"174159057718553\",\n \"data\": {\n \"doctor_id\": \"174159057723920\",\n \"google_review_link\": \"https://g.page/r/CRVNub8JgYWLEA0/review\",\n \"patient_id\": \"174159057723925\",\n \"appointment_id\": \"api-abb67007-1e53-4f0f-b428-a4bc025468a4\",\n \"clinic_id\": \"67978400352a61001d64e9fb\"\n }\n}")
.asString();using RestSharp;
var options = new RestClientOptions("https://{partner_host}/registered_url_for_google_review_events");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddJsonBody("{\n \"event\": \"google_review.request\",\n \"event_time\": 1730189586,\n \"timestamp\": 1730189586,\n \"client_id\": \"67978400352a61001d64e9fb\",\n \"business_id\": \"174159057718553\",\n \"data\": {\n \"doctor_id\": \"174159057723920\",\n \"google_review_link\": \"https://g.page/r/CRVNub8JgYWLEA0/review\",\n \"patient_id\": \"174159057723925\",\n \"appointment_id\": \"api-abb67007-1e53-4f0f-b428-a4bc025468a4\",\n \"clinic_id\": \"67978400352a61001d64e9fb\"\n }\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
require 'uri'
require 'net/http'
url = URI("https://{partner_host}/registered_url_for_google_review_events")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"event\": \"google_review.request\",\n \"event_time\": 1730189586,\n \"timestamp\": 1730189586,\n \"client_id\": \"67978400352a61001d64e9fb\",\n \"business_id\": \"174159057718553\",\n \"data\": {\n \"doctor_id\": \"174159057723920\",\n \"google_review_link\": \"https://g.page/r/CRVNub8JgYWLEA0/review\",\n \"patient_id\": \"174159057723925\",\n \"appointment_id\": \"api-abb67007-1e53-4f0f-b428-a4bc025468a4\",\n \"clinic_id\": \"67978400352a61001d64e9fb\"\n }\n}"
response = http.request(request)
puts response.read_bodyBody
application/json
Was this page helpful?

