curl --request GET \
--url https://api.partoo.co/v2/feedback/feedback_result/{feedback_result_id} \
--header 'x-APIKey: <api-key>'import requests
url = "https://api.partoo.co/v2/feedback/feedback_result/{feedback_result_id}"
headers = {"x-APIKey": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-APIKey': '<api-key>'}};
fetch('https://api.partoo.co/v2/feedback/feedback_result/{feedback_result_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.partoo.co/v2/feedback/feedback_result/{feedback_result_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-APIKey: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.partoo.co/v2/feedback/feedback_result/{feedback_result_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-APIKey", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.partoo.co/v2/feedback/feedback_result/{feedback_result_id}")
.header("x-APIKey", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.partoo.co/v2/feedback/feedback_result/{feedback_result_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-APIKey"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": 1,
"business_id": "abc",
"store_code": "STORE-042",
"firstname": "John",
"lastname": "Doe",
"nps": 9,
"content": "Great service, will come back!",
"state": "not_treated",
"optin": true,
"created": "2024-10-25T15:12:11+00:00",
"feedback_result_fields": [
{
"feedback_form_field": {
"id": "674d7aaa13e599deae0001b2",
"field_type": "CSAT",
"field_label": "How satisfied are you?",
"field_choices": null
},
"rating": 5,
"content": null,
"choices": null
}
],
"comments": [],
"feedback_form": {
"id": "674d791c13c9d976e20001b1",
"display_name": "Global Satisfaction",
"custom_hidden_fields": {}
},
"extra": {},
"issues": null
}{
"errors": {
"authentication": "User not authenticated"
}
}{
"errors": {
"authorization": "Operation not allowed"
}
}{
"errors": {
"json": "Resource not found"
}
}Get a feedback result by ID
The Feedback Management API is currently in BETA, therefore the following endpoints are subject to modification, given a 2 week notice.
If you are planning to use any of them, please notify us so we will be able to keep you informed about upcoming changes.
This endpoint lets you retrieve a single feedback result by its ID.
curl --request GET \
--url https://api.partoo.co/v2/feedback/feedback_result/{feedback_result_id} \
--header 'x-APIKey: <api-key>'import requests
url = "https://api.partoo.co/v2/feedback/feedback_result/{feedback_result_id}"
headers = {"x-APIKey": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-APIKey': '<api-key>'}};
fetch('https://api.partoo.co/v2/feedback/feedback_result/{feedback_result_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.partoo.co/v2/feedback/feedback_result/{feedback_result_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-APIKey: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.partoo.co/v2/feedback/feedback_result/{feedback_result_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-APIKey", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.partoo.co/v2/feedback/feedback_result/{feedback_result_id}")
.header("x-APIKey", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.partoo.co/v2/feedback/feedback_result/{feedback_result_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-APIKey"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": 1,
"business_id": "abc",
"store_code": "STORE-042",
"firstname": "John",
"lastname": "Doe",
"nps": 9,
"content": "Great service, will come back!",
"state": "not_treated",
"optin": true,
"created": "2024-10-25T15:12:11+00:00",
"feedback_result_fields": [
{
"feedback_form_field": {
"id": "674d7aaa13e599deae0001b2",
"field_type": "CSAT",
"field_label": "How satisfied are you?",
"field_choices": null
},
"rating": 5,
"content": null,
"choices": null
}
],
"comments": [],
"feedback_form": {
"id": "674d791c13c9d976e20001b1",
"display_name": "Global Satisfaction",
"custom_hidden_fields": {}
},
"extra": {},
"issues": null
}{
"errors": {
"authentication": "User not authenticated"
}
}{
"errors": {
"authorization": "Operation not allowed"
}
}{
"errors": {
"json": "Resource not found"
}
}Authorizations
Response
OK
Content of the FREE_FORM answer, or null when the survey has none.
When the survey has several FREE_FORM questions, this holds the last one only: read
feedback_result_fields to get every answer.
"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse vulputate efficitur augue, ac auctor nibh scelerisque at. Nulla facilisi. Maecenas luctus efficitur sem sit amet ullamcorper. Donec tempor augue lorem, vitae convallis sapien aliquam id. Maecenas eu odio non est pretium eleifend. Nullam at odio eu ligula ultrices tincidunt. Nulla euismod aliquet ex eget efficitur."
Was this page helpful?