Skip to Content

CartLineInput

Input for a cart line item. Used when adding or updating items in a shopping cart with optional customization options.

Input Definition

input CartLineInput { merchandiseId: Int! quantity: Int! customizations: [CustomizationGroupOptionInput] }

Fields

FieldTypeRequiredDescription
merchandiseIdIntYesThe ID of the merchandise item to add to the cart
quantityIntYesThe quantity of the merchandise item to add
customizations[CustomizationGroupOptionInput]NoList of customizations for the merchandise item

Example

mutation AddCartLine { addToCart(input: { merchandiseId: 54321 quantity: 2 customizations: [ { groupId: 1 optionId: 101 } ] }) { cart { id lineItems { merchandiseId quantity } } } }