Delete Compare Item
Remove a single product from the authenticated customer's comparison list.
Endpoint
DELETE /api/shop/compare-items/{id}Request Headers
| Header | Required | Description |
|---|---|---|
Content-Type | Yes | application/json |
X-STOREFRONT-KEY | Yes | Your storefront API key |
Authorization | Yes | Customer Bearer token (Bearer <accessToken>) |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | Compare item ID to delete |
Response (200 OK)
json
{
"message": "Item removed from compare list successfully"
}TIP
Confirm the exact success status (200 with body vs 204 no content) against the live endpoint for your installation.
Validation
- The compare item must exist and belong to the authenticated customer.
Use Cases
- Remove a single product from the comparison page
- Drop a product from a comparison table

