cartUpdate
Update an existing cart's information and settings.
Modifies cart properties including addresses, payment preferences, shipping options, notes, and other cart metadata. Cart items are updated separately using dedicated item mutations.
Possible errors:
- CART_NOT_FOUND_ERROR: Cart with the specified ID does not exist
- CART_UPDATE_ERROR: Failed to update the cart
- CART_INVALID_STATUS_ERROR: Cart is in a status that doesn't allow updates
cartUpdate(
id: String!
input: CartUpdateInput!
): Cart!
Arguments
cartUpdate.id
● String!
non-null scalar
Unique identifier of the cart to update.
Must be a valid UUID format representing an existing cart.
cartUpdate.input
● CartUpdateInput!
non-null input
Updated cart information.
Contains the cart properties to update. Only provided fields will be changed, others remain unchanged.
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.