Skip to content

A customer reviews a product they received​

POST
/public/products/{productId}/reviews

Refused (403 NOT_ELIGIBLE) unless the customer has an order with status delivered (not a grouping parent) containing this product or another seller's offer of it (same product group). orderId optionally picks which of those orders; one that is not eligible is refused the same way. One review per customer × product: a second one is 409 ALREADY_REVIEWED (the review id is deterministic, so concurrent submissions collide too).

The review lands pending (verified) and goes online when the marketplace publishes it from the moderation queue, which also recomputes the product's rating. Title/body are stored as plain text (tags stripped).

The customer id comes from the token, never the body.

Auth: Bearer JWT required; allowed realms: customer.

Authorizations​

bearerAuth

Jeton client obtenu par POST /auth/login (ou /auth/register), renouvelé par POST /auth/refresh.

Type
HTTP (bearer)

Parameters​

Path Parameters

productId*
Type
string
Required

Request Body​

application/json
JSON
{
  
"rating": 0,
  
"title": "string",
  
"body": "string",
  
"orderId": "string"
}

Responses​

Review received, awaiting moderation.

application/json
JSON
{
  
"ok": true,
  
"data": {
  
  
"id": "string",
  
  
"status": "pending",
  
  
"verifiedPurchase": true,
  
  
"orderId": "string",
  
  
"createdAt": "2024-01-01T00:00:00Z"
  
}
}

Playground​

Authorization
Variables
Key
Value
Body

Samples​

Powered by VitePress OpenAPI

Tarifs : contactez-nous — contact@marketkit.ai