Skip to content
Last update: March 19, 2024

selectCartItems mutation

This mutation allows you to select specific cart items within a shopping cart.

Arguments

The InputChangeCartItemsSelectedType represents a set of input parameters for selecting cart items.

Field Description
cartId String The Id of the cart.
storeId String! The Id of the store.
cartName String The name or description of the cart.
userId String! The Id of the user.
currencyCode String The currency code for the cart.
cultureName String The culture or locale name for the cart.
cartType String The type of the cart.
lineItemIds [String] The list of line items Ids.

Possible returns

Possible return Description
CartType The properties and fields associated with a shopping cart.
mutation selectCartItems($command: InputChangeCartItemsSelectedType!) {
  selectCartItems(command: $command) {
    id
    items {
      id
      name
      selectedForCheckout
    }
  }
}
1
2
3
4
5
6
7
8
9
"command":{
  "storeId": "B2B-store",
  "userId": "23a7f0e9-0186-4293-b511-bf894583fd3b",
  "cartId": "3095ebfe-1de6-4a75-9774-2c4dfdb3d002",
  "currencyCode": "USD",
  "cultureName": "en-US",
  "cartName": "default",
  "lineItemIds": ["127fffb3-9840-454e-a879-c0e621d7f128", "6a282441-92de-4360-89a1-021e8b0ad986"]
}