Skip to Content

CartLineInput

Input for a cart line item. This input type is used to specify the merchandise and quantity to add to a cart, along with any customizations.

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(input: { merchandiseId: 12345 quantity: 2 customizations: [ { groupId: 1 optionId: 5 } ] }) { cart { id lines { merchandiseId quantity } } } }