# Insert of eshop review Creates a new eshop review. This endpoint is available only when the 'Rating' module is active. Also, the e-shop must have store ratings enabled in the administration settings. Endpoint: POST /api/reviews/eshop Version: 1.0.0 Security: shoptetAccessToken, shoptetPrivateApiToken ## Header parameters: - `Content-Type` (string, required) ## Request fields (application/json): - `data` (object, required) - `data.date` (string,null) Review creation date. Can be null - `data.orderCode` (null,string) Order code related to review. Can be null. - `data.rating` (number, required) Number from 1 to 5 representing stars of review's rating. - `data.description` (null,string) Text of the review. Can be null only if 'Comment and name is required' setting is disabled. - `data.fullName` (null,string) Fullname of review's author. Can be null only if 'Comment and name is required' setting is disabled. - `data.email` (string) Email of the review author. - `data.customerGuid` (null,string) Customer guid related to review. Can be null. - `data.visible` (boolean) - `data.ipAddress` (string,null) IP address of the client who made the review - `data.reaction` (object) - `data.reaction.reactionCreated` (string,null) Date of creation of reaction. Can be null. - `data.reaction.reactionFullName` (null,string) Fullname of reaction author. Can be null. - `data.reaction.reactionEmail` (null,string) Email of the reaction author. - `data.reaction.reactionText` (null,string) Text of the reaction. ## Response 201 fields (application/json): - `data` (object, required) - `data.review` (object, required) - `data.review.id` (integer, required) Review id. - `data.review.date` (string,null, required) Review creation date. - `data.review.orderCode` (null,string, required) Order code related to review. Can be null. - `data.review.rating` (number, required) Number from 1 to 5 representing stars of review's rating. - `data.review.description` (null,string, required) Review text. Can be null. - `data.review.fullName` (null,string, required) Fullname of review's author. Can be null. - `data.review.email` (null,string, required) Email of the review author. Can be null. - `data.review.customerGuid` (null,string, required) Customer guid related to review. Can be null. - `data.review.visible` (boolean, required) flag, whether the review is visible - `data.review.ipAddress` (string,null, required) IP address of the client who made the review. Can be null. - `data.review.reaction` (object) - `data.review.reaction.reactionCreated` (string,null, required) Date of creation of reaction. Can be null. - `data.review.reaction.reactionFullName` (null,string, required) Fullname of reaction author. Can be null. - `data.review.reaction.reactionEmail` (null,string, required) Email of the reaction author. - `data.review.reaction.reactionText` (null,string, required) Text of the reaction. - `errors` (array,null, required) - `errors.errorCode` (string, required) Short text error identification - `errors.message` (string, required) Descriptive error message - `errors.instance` (string, required) Identification of the entity referenced ## Response 403 fields (application/json): - `data` (object,null) - `errors` (array,null) - `errors.errorCode` (string, required) Short text error identification - `errors.message` (string, required) Descriptive error message - `errors.instance` (string, required) Identification of the entity referenced ## Response 404 fields (application/json): - `data` (object,null) - `errors` (array,null) - `errors.errorCode` (string, required) Short text error identification - `errors.message` (string, required) Descriptive error message - `errors.instance` (string, required) Identification of the entity referenced ## Response 422 fields (application/json): - `data` (object,null) - `errors` (array) - `errors.errorCode` (string) - `errors.message` (string) - `errors.instance` (string)