Skip to content

Delete Product Review

Delete an existing product review. Only the review author can delete their own review.

Endpoint

DELETE /api/shop/products/{productId}/reviews/{reviewId}

Request Headers

HeaderRequiredDescription
Content-TypeYesapplication/json
X-STOREFRONT-KEYYesYour storefront API key
AuthorizationYesBearer token (review author required)

Path Parameters

ParameterTypeRequiredDescription
productIdintegerYesProduct ID
reviewIdintegerYesReview ID to delete

Response (204 No Content)

No response body

Alternative Response (200 OK)

json
{
  "message": "Review deleted successfully"
}

Use Cases

  • Allow customers to remove their reviews
  • Delete inappropriate or accidental reviews
  • Clean up old reviews
  • Remove reviews if product opinion changes

Permissions

  • Only review author can delete their review
  • Admin users can delete any review
  • Deletion is permanent

Released under the MIT License.