Skip to content
On this page

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

NameTypeDescription
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.

Open in StackBlitz

addProductReview has loaded