cartLinesRemove mutation

Removes one or more merchandise lines from the cart.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

Argument Description
cartId ( ID! ) required

The ID of the cart.

lineIds ( [ID!]! ) required

The merchandise line IDs to remove.

Return fields

  • cart (Cart)

    The updated cart.

  • userErrors ([CartUserError!]!)

    The list of errors that occurred from executing the mutation.

Removes one or more merchandise lines from the cart.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

Argument Description
cartId ( ID! ) required

The ID of the cart.

lineIds ( [ID!]! ) required

The merchandise line IDs to remove.

Return fields

  • cart (Cart)

    The updated cart.

  • userErrors ([CartUserError!]!)

    The list of errors that occurred from executing the mutation.