@plentymarkets/shop-api / getReviewAverage
Function: getReviewAverage() ​
getReviewAverage(
context
,params
):Promise
<Data
<ReviewAverage
>>
Method getReviewAverage - Gets review stars for a product by itemId
Parameters ​
• context: PlentysystemsIntegrationContext
• params: ReviewAverageParams
Returns ​
Promise
<Data
<ReviewAverage
>>
Remarks ​
- Calls the /rest/feedbacks/feedback/helper/counts/$
- This method is used to get review average (stars) from a product.
Example ​
ts
const { data } = await useSdk().plentysystems.getReviewAverage({itemId: 109});