# 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 ```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(input: { merchandiseId: 12345 quantity: 2 customizations: [ { groupId: 1 optionId: 5 } ] }) { cart { id lines { merchandiseId quantity } } } } ``` ## Related Types - [CustomizationGroupOptionInput](/docs/api/input-types/customization-group-option-input)