---
title: CartLineParentInput - Storefront API
description: The parent line item of the cart line.
api_version: 2026-10
source_url:
  html: >-
    https://shopify.dev/docs/api/storefront/latest/input-objects/CartLineParentInput
  md: >-
    https://shopify.dev/docs/api/storefront/latest/input-objects/CartLineParentInput.md
api_name: storefront
api_type: graphql
type: input-object
---

# Cart​Line​Parent​Input

input\_object

The parent line item of the cart line.

## Fields

* line​Id

  [ID](https://shopify.dev/docs/api/storefront/latest/scalars/ID)

  The id of the parent line item.

* merchandise​Id

  [ID](https://shopify.dev/docs/api/storefront/latest/scalars/ID)

  The ID of the parent line merchandise.

***

## Input objects using this input

* [Cart​Line​Input.parent](https://shopify.dev/docs/api/storefront/latest/input-objects/CartLineInput#fields-parent)

  INPUT OBJECT

  The input fields for adding a merchandise line to a cart. Each line represents a [`ProductVariant`](https://shopify.dev/docs/api/storefront/current/objects/ProductVariant) the buyer intends to purchase, along with the quantity and optional [`SellingPlan`](https://shopify.dev/docs/api/storefront/current/objects/SellingPlan) for subscriptions.

  Used by the [`cartCreate`](https://shopify.dev/docs/api/storefront/current/mutations/cartCreate) mutation when creating a cart with initial items, and the [`cartLinesAdd`](https://shopify.dev/docs/api/storefront/current/mutations/cartLinesAdd) mutation when adding items to an existing cart.

***

## Map

### Input objects using this input

* [Cart​Line​Input.parent](https://shopify.dev/docs/api/storefront/latest/input-objects/CartLineInput#fields-parent)
