Delete Product Review
2/9/25Less than 1 minute
Delete Review
Description
This API allows shop owners to delete a product review by its unique ID.
Endpoint
- URL:
/v1/reviews/{reviewId}
- Method:
DELETE
Required Headers
{
"Authorization": "Bearer JWT_TOKEN",
"X-MerchantApiKey": "MERCHANT_API_KEY",
"Content-Type": "application/json"
}
Example API Call (Using Fetch)
fetch("https://api.shopsynch.com/v1/reviews/679f8f5a3b5f2173201c2582", {
method: "DELETE",
headers: {
"Authorization": "Bearer JWT_TOKEN",
"X-MerchantApiKey": "MERCHANT_API_KEY",
"Content-Type": "application/json"
}
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error("Error:", error));
✅ Sample 200 Response (Success)
{
"status": true,
"message": "Review deleted successfully"
}
❌ Sample 404 Response (Not Found)
{
"status": false,
"message": "Review not found"
}
Next Steps
- Learn more about Adding a Review
- Learn more about Fetching Product Reviews