Create Review
Headers
Bearer token for authentication
Body Parameters
ID of the product to review
ID of the order containing the product
Rating from 1 to 5 stars
Review comment (max 255 characters)
Response
Success message: “Calificación guardada correctamente”
Error Responses
Error message when:
- Already reviewed this product (403)
- Product or order not found (422)
Get My Reviews
Headers
Bearer token for authentication
Response
Array of review objects
Update Review
Headers
Bearer token for authentication
Path Parameters
ID of the review to update
Body Parameters
Updated rating from 1 to 5 stars
Updated comment text
Response
Success message: “Reseña actualizada correctamente”
Error Responses
Error message when:
- Review not found or doesn’t belong to user (404)
- Invalid star rating (422)
Delete Review
Headers
Bearer token for authentication
Path Parameters
ID of the review to delete
Response
Success message: “Reseña eliminada correctamente”
Error Responses
Error message when review not found or doesn’t belong to user (404)
Get Product Reviews (Public)
Path Parameters
ID of the product
Response
Array of review objects ordered by most recent first
This endpoint does not expose sensitive user information, only the user’s ID and name.