CartStartInput
Input for initializing a new shopping cart session.
Contains optional configuration for cart creation including customer association, language preferences, and business context. Supports both B2B (contact/company) and B2C (customer) scenarios with proper validation to ensure only one customer type is specified.
input CartStartInput {
userId: Int
contactId: Int
customerId: Int
companyId: Int
language: String
}
Fields
CartStartInput.userId
● Int
scalar
User identifier for cart association (deprecated).
Legacy field for associating carts with user accounts. Use contactId/companyId for B2B scenarios or customerId for B2C scenarios instead.
CartStartInput.contactId
● Int
scalar
Business contact identifier for B2B cart sessions.
Associates the cart with a specific business contact person. Must be used in combination with companyId to establish the complete B2B relationship context.
CartStartInput.customerId
● Int
scalar
Individual customer identifier for B2C cart sessions.
Associates the cart with an individual customer account for personalized pricing, order history, and customer-specific features. Cannot be used with contactId or companyId.
CartStartInput.companyId
● Int
scalar
Company identifier for B2B cart sessions.
Associates the cart with a specific company for B2B pricing, terms, and business rules. Must be used in combination with contactId to identify both the company and the contact person within that company.
CartStartInput.language
● String
scalar
Cart language preference for localization.
Two-character ISO 639-1 language code (e.g., 'en', 'nl', 'de') that determines the language for cart content, pricing display, and communication. Affects product names, descriptions, and checkout flow.
Member Of
cartStart
mutation