Skip to main content

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​

Cart items updated successfully (check response for partial failures)