Sifr Wahid Developers

API reference / Reviews

Get review

One review

GET https://s.zo.sa/api/public/v1/reviews/{id}
Scope reviews.read

Request

Path parameters

NameTypeRequiredDescription
idintegerrequiredAt least 1

cURL

curl -sS "https://s.zo.sa/api/public/v1/reviews/88" \
  -H "Authorization: Bearer $ZO_API_KEY" \
  -H "Accept: application/json"

JavaScript

const response = await fetch('https://s.zo.sa/api/public/v1/reviews/88', {
  headers: {
    Authorization: `Bearer ${process.env.ZO_API_KEY}`,
    Accept: 'application/json',
  },
});
console.log(response.status, await response.json());

PHP

<?php

$ch = curl_init('https://s.zo.sa/api/public/v1/reviews/88');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer ' . getenv('ZO_API_KEY'),
        'Accept: application/json',
    ],
]);
$body = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);

echo $status, PHP_EOL, $body, PHP_EOL;

Python

import os

import requests

response = requests.get(
    "https://s.zo.sa/api/public/v1/reviews/88",
    headers={
        "Authorization": f"Bearer {os.environ['ZO_API_KEY']}",
        "Accept": "application/json",
    },
    timeout=30,
)
print(response.status_code, response.json())
Response 200
{
  "data": {
    "id": 1,
    "type": "product",
    "product_id": null,
    "order_id": null,
    "customer": {
      "id": 1,
      "name": null
    },
    "stars": 1,
    "factors": {},
    "body": null,
    "media": [
      "string"
    ],
    "status": "pending",
    "reply": {
      "body": "string",
      "at": null
    },
    "created_at": "2026-11-23T06:01:53Z",
    "updated_at": "2026-11-23T06:01:53Z"
  }
}

Example generated from the schema.

Responses

200The row.
Response schema
  • dataobjectrequired
    13 fields
    • idintegerrequired
    • typestringrequired
      One of product, store, shipping
    • product_idintegerrequirednullable
    • order_idintegerrequirednullable
    • customerobjectrequirednullable
      Null for a review with no customer record.
      2 fields
      • idintegerrequired
      • namestringrequirednullable
        Null when the reviewer asked to hide their name.
    • starsintegerrequired
      1 to 5
    • factorsobjectrequirednullable
      Per-criterion ratings the shopper gave.
    • bodystringrequirednullable
    • mediaarray of stringsrequired
      Picture addresses.
    • statusstringrequired
      One of pending, approved
    • replyobjectrequirednullable
      2 fields
      • bodystringrequired
      • atstring (date-time)requirednullable
    • created_atstring (date-time)required
    • updated_atstring (date-time)required
401Missing, unknown, revoked or expired key.

An error object: {"error": {"code", "message", "fields"}}.

402The store's plan does not include this feature (error code feature_locked, with the feature and the plan that has it). Every operation answers it with feature public_api when the key's store is not on the Pro plan.

An error object: {"error": {"code", "message", "fields"}}.

403The key lacks the scope (code insufficient_scope, naming it in scope), the caller's address is not allowed (ip_not_allowed), or the store is suspended (store_suspended: reads stay allowed, every write answers this).

An error object: {"error": {"code", "message", "fields"}}.

404No such row in this store (code not_found).

An error object: {"error": {"code", "message", "fields"}}.

429Too many requests (code rate_limited); see Retry-After.

An error object: {"error": {"code", "message", "fields"}}.