Home > @vsf-enterprise/sap-commerce-webservices-sdk > ProductsApi > getProductReviews
ProductsApi.getProductReviews() method
Returns the reviews for a product with a given product code. Get reviews for a product
Signature:
getProductReviews(baseSiteId: string, productCode: string, fields?: string, maxCount?: number, options?: any): Promise<import("axios").AxiosResponse<ReviewList>>;
Parameters
Parameter | Type | Description |
---|---|---|
baseSiteId | string | Base site identifier |
productCode | string | Product identifier |
fields | string | Response configuration. This is the list of fields that should be returned in the response body. Examples: BASIC, DEFAULT, FULL |
maxCount | number | Maximum count of reviews |
options | any | Override http request option. |
Returns:
Promise<import("axios").AxiosResponse<ReviewList>>
Exceptions
{RequiredError} ProductsApi