Create review
Reviews
Create review
Create a product review.
POST
Create review
Request
Headers
| Header | Type | Description |
|---|---|---|
Authorization | string | Provide the customer token as Bearer <jwt>. |
x-shop-id | string | Identify the shop. |
Content-Type | string | Always set to application/json. |
Body parameters
| Field | Type | Required | Description |
|---|---|---|---|
productId | string | Yes | Product identifier to review. |
orderId | string | Yes | Order ID that includes the product. |
rating | integer | Yes | Rating from 1 to 5. |
title | string | No | Review title. |
comment | string | No | Review text. |
images | array | No | Array of image URLs to attach to the review. |
Successful response
Error response
Authorizations
JWT issued by the Salesive Store API for authenticated shoppers.
Optional storefront identifier sent as a header to scope responses to a specific shop. Try It requests remember this value once provided.
Headers
Optional identifier that scopes responses to a specific storefront when the referer cannot be inferred.
Body
application/json
Response
201
Review created

