Product Review
Class name: ProductReview
| Property | Type | Description | Required |
|---|---|---|---|
| userId | string | The ID of the user who is reviewing the product | Yes |
| productId | string | The ID of the product being reviewed | Yes |
| variationId | string | The ID of the product variation being reviewed, if this is a variable product | No |
| vendorId | string | The ID of the vendor who created the product | Yes |
| rating | number | The rating given by the user | Yes |
| title | string | The title of the review. 50 characters max | Yes |
| comment | string | The comment of the review. 300 characters max | Yes |
| status | string | The status of the review (e.g., 'pending', 'approved', 'rejected'). Defaults to approved. Set to pending when a review is reported and waiting for admin approval. | Yes |
| imageId | string | The ID of the image associated with the review | No |