Skip to main content
mutation

Updates one or more merchandise lines on a 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 field or setting it to null preserves existing line attributes. Pass an empty array to clear all attributes from a line.

•ID!
required

The ID of the cart.

•[CartLineUpdateInput!]!
required

The merchandise lines to update.

The input must not contain more than 250 values.


Was this section helpful?

Anchor to CartLinesUpdatePayload returnsCartLinesUpdatePayload returns

•Cart

The updated cart.

•[CartUserError!]!
non-null

The list of errors that occurred from executing the mutation.

•[CartWarning!]!
non-null

A list of warnings that occurred during the mutation.


Was this section helpful?