Reviews associated with a product.
This is archived documentation. The V2 Catalog API is deprecated. For current API documentation, see the Catalog API.
Gets the reviews associated with a product. (Default sorting is by review id, from lowest to highest.)
GET /stores/{store_hash}/v2/products/{id}/reviews
There are no filter parameters specific to product reviews.
Parameters can be added to the URL query string to paginate the collection. The maximum limit is 250. If a limit isn’t provided, up to 50 product_reviews are returned by default.
Example JSON returned in the response:
Gets a product review.
GET /stores/{store_hash}/v2/products/{product_id}/reviews/{id}
Example JSON returned in the response:
Creates a new product review.
Note
The review property is the review’s text. The rating property must be a whole number between 1–5. If the optional date_created property is not specified, it defaults to the current date/time. If the optional “status” property is not specified, it defaults to 0 [Pending]. Other allowable values are 1 [Approved] or 2 [Disapproved].)
POST /stores/{store_hash}/v2/products/{product_id}/reviews
The following properties of the product review are read-only. If one or more of these properties are included in the request, it will be rejected.
The following properties of the product review are required. The request won’t be fulfilled unless these properties are valid.
Example JSON returned in the response:
Updates an existing product review. Your request may update any of the properties that are writable for the Create (POST) operation.
PUT /stores/{store_hash}/v2/products/{product_id}/reviews/{id}
The following properties of the product review are read-only. If one or more of these properties are included in the request, it will be rejected.
Example JSON returned in the response:
Deletes a specified product review. (If successful, this will typically return a 204 No Content.)
DELETE /stores/{store_hash}/v2/products/{product_id}/reviews/{id}
Deletes all reviews for the specified product. (If successful, this will typically return a 204 No Content.)
DELETE /stores/{store_hash}/v2/products/{product_id}/reviews