# CartLineInput Input for a cart line item. Used when adding or updating items in a shopping cart with optional customization options. ## Input Definition ```graphql input CartLineInput { merchandiseId: Int! quantity: Int! customizations: [CustomizationGroupOptionInput] } ``` ## Fields | Field | Type | Required | Description | |-------|------|----------|-------------| | merchandiseId | Int | Yes | The ID of the merchandise item to add to the cart | | quantity | Int | Yes | The quantity of the merchandise item to add | | customizations | [CustomizationGroupOptionInput] | No | List of customizations for the merchandise item | ## Example ```graphql mutation AddCartLine { addToCart(input: { merchandiseId: 54321 quantity: 2 customizations: [ { groupId: 1 optionId: 101 } ] }) { cart { id lineItems { merchandiseId quantity } } } } ``` ## Related Types - [CustomizationGroupOptionInput](/docs/api/inputs/customization-group-option-input)