Skip to main content

checkoutLinesAdd Mutation

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
Show return type

Arguments

id ● ID

The checkout's ID.

lines ● [CheckoutLineInput!]!

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

Show deprecated

Type

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.