cartUpdateItem
Update an existing item in the shopping cart.
Modifies cart item properties such as quantity, configuration, or custom pricing. Cart totals are automatically recalculated after the update.
Possible errors:
- CART_NOT_FOUND_ERROR: Cart with the specified ID does not exist
- CART_ITEM_NOT_FOUND_ERROR: Cart item with the specified ID does not exist
- CART_ITEM_UPDATE_ERROR: Failed to update the cart item
- CART_ITEM_NOT_UPDATABLE_ERROR: Cart item cannot be updated in its current state
cartUpdateItem(
id: String!
itemId: String!
input: CartUpdateItemInput!
): Cart!
Arguments
cartUpdateItem.id
● String!
non-null scalar
Unique identifier of the cart containing the item.
Must be a valid UUID format representing an existing cart.
cartUpdateItem.itemId
● String!
non-null scalar
Unique identifier of the cart item to update.
Must be a valid UUID format representing an existing item in the specified cart.
cartUpdateItem.input
● CartUpdateItemInput!
non-null input
Updated item information.
Contains the item properties to update such as quantity, configuration, or pricing. Only provided fields will be changed.
Type
Cart
object
Shopping cart entity for managing customer purchases.
Represents a shopping session containing products, customer information, addresses, payment preferences, and all data needed for order processing. Carts can be associated with different customer types and support various business models.