Adds a list of line items to a checkout.

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.


Argument Type Default Description
checkoutId required ID!

The ID of the checkout.

lineItems required [CheckoutLineItemInput!]!

A list of line item objects to add to the checkout.

Return Fields

checkout   (Checkout)

The updated checkout object.

userErrors   ([UserError!]!)

List of errors that occurred executing the mutation.