---
title: CartLinesUpdatePayload - Storefront API
description: Return type for `cartLinesUpdate` mutation.
api_version: 2026-04
source_url:
  html: >-
    https://shopify.dev/docs/api/storefront/latest/payloads/CartLinesUpdatePayload
  md: >-
    https://shopify.dev/docs/api/storefront/latest/payloads/CartLinesUpdatePayload.md
api_name: storefront
api_type: graphql
type: payload
---

# Cart​Lines​Update​Payload

payload

Return type for `cartLinesUpdate` mutation.

## Fields

* cart

  [Cart](https://shopify.dev/docs/api/storefront/latest/objects/Cart)

  The updated cart.

* user​Errors

  [\[Cart​User​Error!\]!](https://shopify.dev/docs/api/storefront/latest/objects/CartUserError)

  non-null

  The list of errors that occurred from executing the mutation.

* warnings

  [\[Cart​Warning!\]!](https://shopify.dev/docs/api/storefront/latest/objects/CartWarning)

  non-null

  A list of warnings that occurred during the mutation.

***

## Mutations with this payload

* [cart​Lines​Update](https://shopify.dev/docs/api/storefront/latest/mutations/cartLinesUpdate)

  mutation

  Updates one or more merchandise lines on a [`Cart`](https://shopify.dev/docs/api/storefront/2026-04/objects/Cart). You can modify the quantity, swap the merchandise, change custom attributes, or update the selling plan for each line. You can update a maximum of 250 lines per request.

  Omitting the [`attributes`](https://shopify.dev/docs/api/storefront/2026-04/mutations/cartLinesUpdate#arguments-lines.fields.attributes) field or setting it to null preserves existing line attributes. Pass an empty array to clear all attributes from a line.

  * cart​Id

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

    required

    ### Arguments

    The ID of the cart.

  * lines

    [\[Cart​Line​Update​Input!\]!](https://shopify.dev/docs/api/storefront/latest/input-objects/CartLineUpdateInput)

    required

    The merchandise lines to update.

    The input must not contain more than `250` values.

  ***

***

## Map

### Mutations with this payload

* [cart​Lines​Update](https://shopify.dev/docs/api/storefront/latest/mutations/cartLinesUpdate)
