cartLinesUpdate mutation

Updates one or more merchandise lines on a cart.

Required access

unauthenticated_write_checkouts access scope.

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.

lines ( [CartLineUpdateInput!]! ) required

The merchandise lines to update.

CartLineUpdateInput fields

  • attributes ([AttributeInput!])

    An array of key-value pairs that contains additional information about the merchandise line.

  • id (ID)

    The identifier of the merchandise line.

  • merchandiseId (ID)

    The identifier of the merchandise for the line item.

  • quantity (Int)

    The quantity of the line item.

  • sellingPlanId (ID)

    The identifier of the selling plan that the merchandise is being purchased with.

Return fields

  • cart (Cart)

    The updated cart.

  • userErrors ([CartUserError!]!)

    List of errors that occurred from executing the mutation.