Product
List reviews for a product
Changed onReturns reviews scoped to the given product ID. Defaults to approved reviews only; pass status to override. Supports filtering by status and rating, with page + per_page (alias limit, max 50) pagination.
get/products/{productId}/reviews
Request
- Base URLhttp://localhost:8000/api/shop
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
productIdstring required
Product ID
Query parameters
ratinginteger
Example:5
Filter by star rating (1-5)
pageinteger
Example:1
Page number (1-based)
per_pageinteger
Example:10
Items per page (alias: limit). Default 30, max 50.
Headers
X-STOREFRONT-KEYstring required
Storefront API Key for authentication. Required for all shop/storefront API requests.
X-Localestring
Example:en
Locale code for localized data (e.g. "en", "fr", "ar"). Defaults to channel's default locale.
X-Channelstring
Example:default
Channel code (e.g. "default"). Defaults to the current channel.
X-Currencystring
Example:USD
Currency code (e.g. "USD", "EUR", "INR"). Defaults to channel's base currency.
Response
List of reviews for the product.
Changes
- warning
deleted the
queryrequest parameterstatus
- warning