Update multiple item quantities in cart
PUT/api/v1/sdk/cart/store/:storeId/items/bulk
This endpoint updates quantities for multiple cart items in a single operation. Setting quantity to 0 removes that item.
Authentication: Requires customer authentication (JWT token with verified phone). Optional API key for additional store validation.
Use Cases:
- Bulk quantity adjustments
- Cart optimization and cleanup
- Synchronizing cart state from external systems
Error Scenarios:
- 400 BAD REQUEST - Invalid quantities or insufficient stock (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​
- 200
- 400
- 401
- 403
- 404
- 500
Cart items updated successfully (check response for partial failures)
Invalid request - check quantities and item availability
Unauthorized - Customer authentication required
Forbidden - No access to this store
Store or cart items not found
Internal server error