Skip to content

Published reviews of a product (« Avis vérifiés »)​

GET
/public/products/{productId}/reviews

Published reviews only, newest first, with the rating summary of the same set. Marketplace = the request's tenant (default marketplace when unresolved). productId is the id the storefront holds (GET /products/{slug} → id); a vendor SOURCE product id is mapped to its copy in the marketplace.

authorDisplay is « Prénom + initiale » (e.g. Hedii T.) — never an e-mail or phone (falls back to Client). verifiedPurchase = the stored is_verified flag: always true for a review posted through POST (it requires a delivered order). variantLabel = the variation bought (reviews linked to an order), else null. sellerName = the seller of the line reviewed. sellerReply = the latest published reply (vendor or marketplace), else null.

Cacheable: Cache-Control: public, max-age=60, s-maxage=300, stale-while-revalidate=600.

Errors: { ok:false, error:{ code, message }, message }.

Auth: None (public).

Parameters​

Path Parameters

productId*
Type
string
Required

Query Parameters

page
Type
integer
Minimum
1
Maximum
1000
Default
1
limit
Type
integer
Minimum
1
Maximum
50
Default
10

Responses​

One page of published reviews + the summary.

application/json
JSON
{
  
"ok": true,
  
"data": {
  
  
"summary": {
  
  
  
"average": 0,
  
  
  
"count": 0,
  
  
  
"distribution": {
  
  
  
  
"1": 0,
  
  
  
  
"2": 0,
  
  
  
  
"3": 0,
  
  
  
  
"4": 0,
  
  
  
  
"5": 0
  
  
  
}
  
  
},
  
  
"items": [
  
  
  
{
  
  
  
  
"id": "string",
  
  
  
  
"rating": 0,
  
  
  
  
"title": "string",
  
  
  
  
"body": "string",
  
  
  
  
"authorDisplay": "string",
  
  
  
  
"verifiedPurchase": true,
  
  
  
  
"variantLabel": "string",
  
  
  
  
"sellerName": "string",
  
  
  
  
"createdAt": "2024-01-01T00:00:00Z",
  
  
  
  
"sellerReply": {
  
  
  
  
  
"body": "string",
  
  
  
  
  
"createdAt": "2024-01-01T00:00:00Z"
  
  
  
  
}
  
  
  
}
  
  
],
  
  
"pagination": {
  
  
  
"page": 0,
  
  
  
"limit": 0,
  
  
  
"total": 0
  
  
}
  
}
}

Playground​

Variables
Key
Value

Samples​

Powered by VitePress OpenAPI

Tarifs : contactez-nous — contact@marketkit.ai