Skip to content
Last update: March 19, 2024

selectAllCartItems mutation

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

Arguments

The InputChangeCartItemsSelectedType represents a set of input parameters for selecting all 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.

Possible returns

Possible return Description
CartType The properties and fields associated with a shopping cart.
mutation selectAllCartItems($command: InputChangeAllCartItemsSelectedType!) {
  selectAllCartItems(command: $command) {
    id
    items {
      id
      name
      selectedForCheckout
    }
  }
}
1
2
3
4
5
6
7
8
"command":{
  "storeId": "B2B-store",
  "userId": "23a7f0e9-0186-4293-b511-bf894583fd3b",
  "cartId": "3095ebfe-1de6-4a75-9774-2c4dfdb3d002",
  "currencyCode": "USD",
  "cultureName": "en-US",
  "cartName": "default",
}