Skip to content

Delete Compare Item

Remove a single product from the authenticated customer's comparison list.

Endpoint

DELETE /api/shop/compare-items/{id}

Request Headers

HeaderRequiredDescription
Content-TypeYesapplication/json
X-STOREFRONT-KEYYesYour storefront API key
AuthorizationYesCustomer Bearer token (Bearer <accessToken>)

Path Parameters

ParameterTypeRequiredDescription
idintegerYesCompare 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

Released under the MIT License.