curl --request GET \
--url https://api.opencals.com/storefront/feedback-questions/{productId}/translations/{language} \
--header 'x-api-key: <api-key>'import requests
url = "https://api.opencals.com/storefront/feedback-questions/{productId}/translations/{language}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.opencals.com/storefront/feedback-questions/{productId}/translations/{language}', 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.opencals.com/storefront/feedback-questions/{productId}/translations/{language}",
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-api-key: <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.opencals.com/storefront/feedback-questions/{productId}/translations/{language}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<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.opencals.com/storefront/feedback-questions/{productId}/translations/{language}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.opencals.com/storefront/feedback-questions/{productId}/translations/{language}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"internalName": "Service Quality Rating Question",
"required": true,
"type": "rating",
"order": 1,
"alwaysShow": false,
"createdAt": "2023-01-01T00:00:00Z",
"updatedAt": "2023-01-15T00:00:00Z",
"deletedAt": "2023-06-03T09:45:00Z",
"storeId": "store-uuid",
"translations": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"questionId": "550e8400-e29b-41d4-a716-446655440000",
"title": "How would you rate our service?",
"description": "Please rate your overall satisfaction with our service.",
"options": [
"Poor",
"Fair",
"Good",
"Very Good",
"Excellent"
],
"languageCode": "en",
"createdAt": "2023-01-01T00:00:00Z",
"updatedAt": "2023-01-15T00:00:00Z"
}
],
"fileConfig": {
"categories": [
"images",
"pdf"
],
"maxSizeBytes": 26214400,
"maxFiles": 5
}
}
]List feedback questions translations
curl --request GET \
--url https://api.opencals.com/storefront/feedback-questions/{productId}/translations/{language} \
--header 'x-api-key: <api-key>'import requests
url = "https://api.opencals.com/storefront/feedback-questions/{productId}/translations/{language}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.opencals.com/storefront/feedback-questions/{productId}/translations/{language}', 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.opencals.com/storefront/feedback-questions/{productId}/translations/{language}",
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-api-key: <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.opencals.com/storefront/feedback-questions/{productId}/translations/{language}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<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.opencals.com/storefront/feedback-questions/{productId}/translations/{language}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.opencals.com/storefront/feedback-questions/{productId}/translations/{language}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"internalName": "Service Quality Rating Question",
"required": true,
"type": "rating",
"order": 1,
"alwaysShow": false,
"createdAt": "2023-01-01T00:00:00Z",
"updatedAt": "2023-01-15T00:00:00Z",
"deletedAt": "2023-06-03T09:45:00Z",
"storeId": "store-uuid",
"translations": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"questionId": "550e8400-e29b-41d4-a716-446655440000",
"title": "How would you rate our service?",
"description": "Please rate your overall satisfaction with our service.",
"options": [
"Poor",
"Fair",
"Good",
"Very Good",
"Excellent"
],
"languageCode": "en",
"createdAt": "2023-01-01T00:00:00Z",
"updatedAt": "2023-01-15T00:00:00Z"
}
],
"fileConfig": {
"categories": [
"images",
"pdf"
],
"maxSizeBytes": 26214400,
"maxFiles": 5
}
}
]Authorizations
Storefront API key (sfk_...)
Path Parameters
ID of the product
"550e8400-e29b-41d4-a716-446655440000"
Language code Language code for this translation
af, ak, am, ar, as, az, be, bg, bm, bn, bo, br, bs, ca, ce, cs, cu, cy, da, de, dz, ee, el, en, eo, es, et, eu, fa, ff, fi, fo, fr, fy, ga, gd, gl, gu, gv, ha, he, hi, hr, hu, hy, ia, id, ig, ii, is, it, ja, jv, ka, ki, kk, kl, km, kn, ko, ks, ku, kw, ky, lb, lg, ln, lo, lt, lu, lv, mg, mi, mk, ml, mn, mr, ms, mt, my, nb, nd, ne, nl, nn, no, om, or, os, pa, pl, ps, pt, pt_br, pt_pt, qu, rm, rn, ro, ru, rw, sd, se, sg, si, sk, sl, sn, so, sq, sr, su, sv, sw, ta, te, tg, th, ti, tk, to, tr, tt, ug, uk, ur, uz, vi, vo, wo, xh, yi, yo, zh, zh_cn, zh_tw, zu Response
Feedback questions with translations
Unique identifier for the feedback question
"550e8400-e29b-41d4-a716-446655440000"
Internal name for the question (not shown to customers)
"Service Quality Rating Question"
Whether the question is required to be answered
true
Type of input for the question
single-line-text-field, multi-line-text-field, dropdown, rating, checkbox, file-upload "rating"
Display order of the question (lower numbers appear first)
1
Whether this question is shown for all products in the store
false
Date and time when the question was created
"2023-01-01T00:00:00Z"
Date and time when the question was last updated
"2023-01-15T00:00:00Z"
Date when the question was soft-deleted
"2023-06-03T09:45:00Z"
ID of the store that owns this question
"store-uuid"
Translations of this question (filtered to the requested language)
Show child attributes
Show child attributes
File-upload constraints (allowed categories, max size, max files). Only set when type is file-upload.
{ "categories": ["images", "pdf"], "maxSizeBytes": 26214400, "maxFiles": 5 }
Was this page helpful?