Skip to main content

Remove multiple items from cart

DELETE 

/api/v1/sdk/cart/store/:storeId/items/bulk

This endpoint removes multiple items from the cart in a single operation. More efficient than multiple single-item delete calls.

Authentication: Requires customer authentication (JWT token with verified phone). Optional API key for additional store validation.

Use Cases:

  • Bulk removal of unavailable items
    • Cart cleanup operations
    • Removing multiple selected items from cart UI

Error Scenarios:

  • 400 BAD REQUEST - Invalid request format or too many items (Error code: INVALID_REQUEST)
    • 404 NOT FOUND - Store or cart items not found (Error code: STORE_NOT_FOUND or CART_ITEM_NOT_FOUND)
    • 401 UNAUTHORIZED - Customer not authenticated (Error code: UNAUTHORIZED)
    • 403 FORBIDDEN - API key doesn't have access to this store (Error code: NO_STORE_ACCESS)

Request​

Responses​

Cart items removed successfully (check response for partial failures)