@plentymarkets/shop-api / doReview
Function: doReview() ​
doReview(
context,params):Promise<Data<DoReviewResponse>>
Defined in: api/doReview/index.ts:33
Method doReview - Create a new product review.
Parameters ​
context ​
PlentysystemsIntegrationContext
params ​
Returns ​
Promise<Data<DoReviewResponse>>
Remarks ​
- Calls /rest/storefront/feedbacks/feedback
- This method is used to create a new product review.
Example ​
ts
const { data } = await useSdk().plentysystems.doReview({
ratingValue: 3,
authorName: 'John Doe',
title: 'Great product',
message: 'That's an awesome product',
type: 'review',
targetId: 1890,
honeypot: '',
titleMissing: false,
ratingMissing: false,
});