Skip to main content
mutation

Adds one or more merchandise lines to an existing Cart. Each line specifies the product variant to purchase. Quantity defaults to 1 if not provided.

You can add up to 250 lines in a single request. Use CartLineInput to configure each line's merchandise, quantity, selling plan, custom attributes, and any parent relationships for nested line items such as warranties or add-ons.

•ID!
required

The ID of the cart.

•[CartLineInput!]!
required

A list of merchandise lines to add to the cart.

The input must not contain more than 250 values.


Was this section helpful?

Anchor to CartLinesAddPayload returnsCartLinesAddPayload 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?