Skip to main content

CartSetUserInput

Input for associating a cart with a user, contact, or customer.

Supports multiple user association patterns including legacy user IDs, B2B contacts with companies, and B2C customers. Only one association type should be specified per request.

input CartSetUserInput {
userId: Int
contactId: Int
customerId: Int
companyId: Int
}

Fields

CartSetUserInput.userId ● Int scalar

CartSetUserInput.contactId ● Int scalar

Business contact identifier for B2B cart association.

Must be used in combination with companyId to establish the business relationship. Cannot be used with userId or customerId.

CartSetUserInput.customerId ● Int scalar

Individual customer identifier for B2C cart association.

Used for direct customer relationships. Cannot be used with userId, contactId, or companyId.

CartSetUserInput.companyId ● Int scalar

Company identifier for B2B cart association.

Must be used in combination with contactId to establish the business relationship. Cannot be used with customerId.

Member Of

cartSetUser mutation