Skip to content

Remove Cart Item

Remove a product item from the shopping cart.

Endpoint

DELETE /api/shop/cart/items/{itemId}

Request Headers

HeaderRequiredDescription
Content-TypeYesapplication/json
X-STOREFRONT-KEYYesYour storefront API key

Path Parameters

ParameterTypeRequiredDescription
itemIdintegerYesCart item ID

Response (200 OK)

json
{
  "message": "Item removed from cart successfully",
  "cartTotal": 2999.95
}
FieldTypeDescription
messagestringSuccess message
cartTotaldecimalUpdated cart total

Alternative Response (204 No Content)

No response body returned.

Use Cases

  • Remove unwanted items from cart
  • Delete items from cart view
  • Clear items before re-ordering
  • Remove items from review cart

Released under the MIT License.