cartLinesAdd mutation

Adds a merchandise line to 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.

lines ( [CartLineInput!]! ) required

A list of merchandise lines to add to the cart.

CartLineInput fields

  • attributes ([AttributeInput!])

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

  • merchandiseId (ID!) Required

    The identifier of the merchandise that the buyer intends to purchase.

  • quantity (Int)

    The quantity of the merchandise.

  • sellingPlanId (ID)

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

Return fields

  • cart (Cart)

    The updated cart.

  • userErrors ([CartUserError!]!)

    The list of errors that occurred from executing the mutation.

Adds a merchandise line to 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.

lines ( [CartLineInput!]! ) required

A list of merchandise lines to add to the cart.

CartLineInput fields

  • attributes ([AttributeInput!])

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

  • merchandiseId (ID!) Required

    The identifier of the merchandise that the buyer intends to purchase.

  • quantity (Int)

    The quantity of the merchandise.

  • sellingPlanId (ID)

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

Return fields

  • cart (Cart)

    The updated cart.

  • userErrors ([CartUserError!]!)

    The list of errors that occurred from executing the mutation.

Adds a merchandise line to 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.

lines ( [CartLineInput!]! ) required

A list of merchandise lines to add to the cart.

CartLineInput fields

  • attributes ([AttributeInput!])

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

  • merchandiseId (ID!) Required

    The identifier of the merchandise that the buyer intends to purchase.

  • quantity (Int)

    The quantity of the merchandise.

  • sellingPlanId (ID)

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

Return fields

  • cart (Cart)

    The updated cart.

  • userErrors ([CartUserError!]!)

    The list of errors that occurred from executing the mutation.

Adds a merchandise line to 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.

lines ( [CartLineInput!]! ) required

A list of merchandise lines to add to the cart.

CartLineInput fields

  • attributes ([AttributeInput!])

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

  • merchandiseId (ID!) Required

    The identifier of the merchandise that the buyer intends to purchase.

  • quantity (Int)

    The quantity of the merchandise.

  • sellingPlanId (ID)

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

Return fields

  • cart (Cart)

    The updated cart.

  • userErrors ([CartUserError!]!)

    The list of errors that occurred from executing the mutation.