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
Details
type CheckoutLinesAdd {
checkout: Checkout
checkoutErrors: [CheckoutError!]! @deprecated
errors: [CheckoutError!]!
}

Arguments

id ● ID

The checkout's ID.

lines ● [CheckoutLineInput!]!

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

Show deprecatedHide deprecated

checkoutId ● ID

DEPRECATED

Use id instead.

The ID of the checkout.

token ● UUID

DEPRECATED

Use id instead.

Checkout token.

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.