Appearance
addProductReview
Definition
Add a review to specific product by its ID
Signature
ts
export async function addProductReview(
productId: string,
productReviewData: {
title: string;
content: string;
points: number;
},
contextInstance: ShopwareApiInstance = defaultInstance
): Promise<void>
Parameters
| Name | Type | Description |
|---|---|---|
| productId | string | |
| productReviewData | {
title: string;
content: string;
points: number;
} | |
| contextInstance | ShopwareApiInstance |
Return type
ts
Promise<void>
Usage example
WARNING
Example is generated automatically. Sometimes it's required to be adjusted to your needs.