Home > @shopware-pwa/shopware-6-client > getProductReviews

# getProductReviews() function

Get product reviews

Signature:

export declare function getProductReviews(productId: string, criteria?: ShopwareSearchParams, contextInstance?: ShopwareApiInstance): Promise<EntityResult<"ProductReview", ProductReview[]>>;

# Parameters

Parameter Type Description
productId string
criteria ShopwareSearchParams
contextInstance ShopwareApiInstance

Returns:

Promise<EntityResult<"ProductReview", ProductReview[]>>

# Exceptions

ClientApiError