Browse Ratings
curl --request GET \
--url https://api.{tenant}.getomneo.com/api/v3/ratingsimport requests
url = "https://api.{tenant}.getomneo.com/api/v3/ratings"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.{tenant}.getomneo.com/api/v3/ratings', 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.{tenant}.getomneo.com/api/v3/ratings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.{tenant}.getomneo.com/api/v3/ratings"
req, _ := http.NewRequest("GET", url, nil)
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.{tenant}.getomneo.com/api/v3/ratings")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.{tenant}.getomneo.com/api/v3/ratings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": [
{
"id": 123,
"profile_id": "<string>",
"source": "<string>",
"product_id": 123,
"product_variant_id": 123,
"transaction_id": 123,
"interaction_id": 123,
"staff_id": "<string>",
"external_id": "<string>",
"status": "<string>",
"score_type": "<string>",
"score": 123,
"namespace": "<string>",
"title": "<string>",
"comment": "<string>",
"reason": "<string>",
"is_public": true,
"is_active": true,
"requires_action": true,
"meta": [
"<unknown>"
],
"created_at": "<string>",
"updated_at": "<string>"
}
]
}{
"message": "<string>"
}{
"message": "<string>"
}Rating
Browse Ratings
A GET to the /ratings endpoint allows your application to retrieve all a tenants ratings.
GET
/
v3
/
ratings
Browse Ratings
curl --request GET \
--url https://api.{tenant}.getomneo.com/api/v3/ratingsimport requests
url = "https://api.{tenant}.getomneo.com/api/v3/ratings"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.{tenant}.getomneo.com/api/v3/ratings', 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.{tenant}.getomneo.com/api/v3/ratings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.{tenant}.getomneo.com/api/v3/ratings"
req, _ := http.NewRequest("GET", url, nil)
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.{tenant}.getomneo.com/api/v3/ratings")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.{tenant}.getomneo.com/api/v3/ratings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": [
{
"id": 123,
"profile_id": "<string>",
"source": "<string>",
"product_id": 123,
"product_variant_id": 123,
"transaction_id": 123,
"interaction_id": 123,
"staff_id": "<string>",
"external_id": "<string>",
"status": "<string>",
"score_type": "<string>",
"score": 123,
"namespace": "<string>",
"title": "<string>",
"comment": "<string>",
"reason": "<string>",
"is_public": true,
"is_active": true,
"requires_action": true,
"meta": [
"<unknown>"
],
"created_at": "<string>",
"updated_at": "<string>"
}
]
}{
"message": "<string>"
}{
"message": "<string>"
}Filtering
This endpoint accepts
filter and sort query parameters. See Filtering, sorting, and search for paging and for the shared search_with, custom_field, and json_contains filters.Examples
curl -X GET "https://api.[tenant].getomneo.com/api/v3/ratings?filter[status]={status}" \
-H "Authorization: Bearer ${TOKEN}"
curl -X GET "https://api.[tenant].getomneo.com/api/v3/ratings?filter[id][nullable]=0" \
-H "Authorization: Bearer ${TOKEN}"
Operators
| Operator | Meaning | Example |
|---|---|---|
eq | Equal to. Applied when you give no operator. | filter[status]={status} |
ne | Not equal to. | filter[status][ne]={status} |
gt | Greater than. | filter[status][gt]={status} |
gte | Greater than or equal to. | filter[status][gte]={status} |
lt | Less than. | filter[status][lt]={other-status} |
lte | Less than or equal to. | filter[status][lte]={other-status} |
in | Matches any value in a comma separated list. | filter[id][in]=123,456 |
not_in | Excludes every value in a comma separated list. | filter[id][not_in]=123,456 |
nullable | 1 returns records where the attribute is empty. Any other value returns records where it is set. | filter[id][nullable]=1 |
not_has operator applies to related attributes, which this endpoint does not have.
Filter attributes
| Attribute | Attribute | Attribute |
|---|---|---|
id | profile_id | product_id |
product_variant_id | interaction_id | staff_id |
location_id | source | status |
score_type | score | namespace |
title | comment | reason |
requires_action | is_public | is_active |
transaction_id |
sort key, for example ?sort=-id for descending order.⌘I