Skip to main content

Review Data Types

On this page, you will find the definitions of the objects used for managing product feedback and reviews. webround.com distinguishes between the full object returned by the system (ReviewItem) and the minimum data required for submission or modification (ReviewSubmitData).

ReviewItem

Represents a complete review within the system, including user and product metadata.

PropertyTypeDescription
idstring (UUID)Unique identifier for the review.
storeIdstring (UUID)ID of the store it belongs to.
productIdstring (UUID)ID of the associated root product.
variantIdstring (UUID)ID of the specific variant being reviewed.
customerIdstring (UUID)ID of the user who wrote the review.
customerNamestringUser's display name.
ratingnumberScore assigned (e.g., from 1 to 5).
titlestringBrief title of the review.
commentstringFull feedback text.
verifiedPurchasebooleanFlag indicating if the purchase was verified by the system.
productVariantNamestringName of the variant at the time of the review.
coverUrlstringnull
createdAtDatestring
updatedAtDatestring

ReviewSubmitData

This object represents the payload required by the createReview and updateReview methods to submit or update feedback.

PropertyTypeDescription
ratingnumberNumerical rating (required).
titlestringFeedback title.
commentstringDescriptive text of the review.

Rating Validation

Ensure that the rating value sent via ReviewSubmitData is consistent with the backend configuration: an integer from 1 to 5.