Home > @vsf-enterprise/sap-commerce-webservices-sdk > ProductsApi > createProductReview
ProductsApi.createProductReview() method
Creates a new customer review as an anonymous user. Creates a new customer review as an anonymous user.
Signature:
createProductReview(baseSiteId: string, productCode: string, review: Review, fields?: string, options?: any): Promise<import("axios").AxiosResponse<Review>>;
Parameters
Parameter | Type | Description |
---|---|---|
baseSiteId | string | Base site identifier |
productCode | string | Product identifier |
review | Review | Object contains review details like : rating, alias, headline, comment |
fields | string | Response configuration. This is the list of fields that should be returned in the response body. Examples: BASIC, DEFAULT, FULL |
options | any | Override http request option. |
Returns:
Promise<import("axios").AxiosResponse<Review>>
Exceptions
{RequiredError} ProductsApi