Cart V2

Remove cart item

Changed on

Remove item from cart

Deletes a cart item by:

  1. Validating cart item exists and belongs to user
  2. Deleting cart item record

Requirements:

  • 33.1: DELETE /api/v2/cart/:id endpoint
  • 33.2: Validate cart item exists and belongs to user
  • 33.3: Delete cart_items_v2 entry
  • 33.4: Return 404 if cart item not found
  • 33.5: Return 403 if cart item belongs to different user
  • 33.6: Log cart deletions to audit trail
  • 33.7: Invalidate cart cache after deletion
delete/cart/{id}

Request

  • Base URL: /api/v2 (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/v2/cart/{id}
  • Auth: loggedin (a scheme the document does not define)

Path parameters

idstring required

Cart item UUID

Response

Success message

messagestring required

Changes

    • ○

      the endpoint scheme security loggedin was added to the API

    • ○

      the endpoint scheme security jwt was removed from the API