Reply to review
Set the store's reply to a review (replaces any earlier reply)
PUT
https://s.zo.sa/api/public/v1 /reviews/{id}/reply Scope
reviews.read_writeRequest
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | integer | required | At least 1 |
Request body
bodystringrequiredThe store's reply, shown under the review in the store.
cURL
curl -sS -X PUT "https://s.zo.sa/api/public/v1/reviews/88/reply" \
-H "Authorization: Bearer $ZO_API_KEY" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"body": "Thank you for your review. We are glad the shirt fits well."
}'JavaScript
const response = await fetch('https://s.zo.sa/api/public/v1/reviews/88/reply', {
method: 'PUT',
headers: {
Authorization: `Bearer ${process.env.ZO_API_KEY}`,
Accept: 'application/json',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"body": "Thank you for your review. We are glad the shirt fits well."
}),
});
console.log(response.status, await response.json());PHP
<?php
$ch = curl_init('https://s.zo.sa/api/public/v1/reviews/88/reply');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'PUT',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('ZO_API_KEY'),
'Accept: application/json',
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => json_encode([
'body' => 'Thank you for your review. We are glad the shirt fits well.',
]),
]);
$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.put(
"https://s.zo.sa/api/public/v1/reviews/88/reply",
headers={
"Authorization": f"Bearer {os.environ['ZO_API_KEY']}",
"Accept": "application/json",
},
json={
"body": "Thank you for your review. We are glad the shirt fits well.",
},
timeout=30,
)
print(response.status_code, response.json())The reply is published under the review on the storefront.
{
"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 review with its reply.
Response schema
dataobjectrequired13 fields
idintegerrequiredtypestringrequiredproduct_idintegerrequirednullableorder_idintegerrequirednullablecustomerobjectrequirednullableNull for a review with no customer record.2 fields
idintegerrequirednamestringrequirednullableNull when the reviewer asked to hide their name.
starsintegerrequiredfactorsobjectrequirednullablePer-criterion ratings the shopper gave.bodystringrequirednullablemediaarray of stringsrequiredPicture addresses.statusstringrequiredreplyobjectrequirednullable2 fields
bodystringrequiredatstring (date-time)requirednullable
created_atstring (date-time)requiredupdated_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"}}.
422The body is invalid (code validation_failed). fields names each invalid input by its path in the body, such as variants.0.sku or images.1.url.
An error object: {"error": {"code", "message", "fields"}}.
429Too many requests (code rate_limited); see Retry-After.
An error object: {"error": {"code", "message", "fields"}}.