Skip to main content
Version: 3.x

checkoutLinesAdd

Adds a checkout line to the existing checkout.If line was already in checkout, its quantity will be increased.

Triggers the following webhook events:

  • CHECKOUT_UPDATED (async): A checkout was updated.
checkoutLinesAdd(
checkoutId: ID
id: ID
lines: [CheckoutLineInput!]!
token: UUID
): CheckoutLinesAdd

Arguments

checkoutLinesAdd.checkoutId ● ID scalar

The ID of the checkout.

DEPRECATED: this field will be removed in Saleor 4.0. Use id instead.

checkoutLinesAdd.id ● ID scalar

The checkout's ID.

Added in Saleor 3.4

checkoutLinesAdd.lines ● [CheckoutLineInput!]! non-null input

A list of checkout lines, each containing information about an item in the checkout.

checkoutLinesAdd.token ● UUID scalar

Checkout token.

DEPRECATED: this field will be removed in Saleor 4.0. Use id instead.

Type

CheckoutLinesAdd object

Adds a checkout line to the existing checkout.If line was already in checkout, its quantity will be increased.

Triggers the following webhook events:

  • CHECKOUT_UPDATED (async): A checkout was updated.

Was this page helpful?