Skip to main content

cartSetUser

DEPRECATED

Will be removed in the future, please use cartSetContact or cartSetCustomer mutations instead.

Associate a user with an existing cart (deprecated).

Links a user account to the cart for personalized pricing, order history, and account-specific features. This mutation is deprecated and will be removed in future versions.

Possible errors:

  • CART_NOT_FOUND_ERROR: Cart with the specified ID does not exist
  • CART_SET_USER_ERROR: Failed to associate user with cart
  • USER_NOT_FOUND_ERROR: Specified user does not exist
  • FORBIDDEN: Insufficient permissions to modify cart

AUTH: Role=[order.OWNER,order.EDITOR,order.VIEWER] OR (('user is authenticated') AND ('userId if present in input matches JWT'))

cartSetUser(
id: String!
input: CartSetUserInput!
): Cart! @deprecated

Arguments

cartSetUser.id ● String! non-null scalar

Unique identifier of the cart to associate with user.

Must be a valid UUID format representing an existing cart.

cartSetUser.input ● CartSetUserInput! non-null input

User association data.

Contains the user identifier and any additional configuration for the user-cart association.

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.