checkoutLineItemsAdd - storefront - MUTATION
Version: 2024-04
Description:
Adds a list of line items to a checkout.
Access Scopes
`unauthenticated_write_checkouts` access scope.
Arguments
-
checkoutId:
ID! -
The ID of the checkout.
-
lineItems:
CheckoutLineItemInput! -
A list of line item objects to add to the checkout.
The input must not contain more than `250` values.
Returns
-
checkout:
Checkout
The updated checkout object.
-
checkoutUserErrors:
CheckoutUserError!
The list of errors that occurred from executing the mutation.
-
userErrors:
UserError!
The list of errors that occurred from executing the mutation.
Examples